[vlc-commits] tools: add Apache ANT for contribs
Sean McGovern
git at videolan.org
Sat Jul 26 01:37:35 CEST 2014
vlc/vlc-2.2 | branch: master | Sean McGovern <gseanmcg at gmail.com> | Fri Jul 25 19:21:35 2014 -0400| [b03c160c9d940a26373686f58a847ce76661907a] | committer: Jean-Baptiste Kempf
tools: add Apache ANT for contribs
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit b3050f68b407fe150fa3944ccee62293efba6407)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=b03c160c9d940a26373686f58a847ce76661907a
---
extras/tools/packages.mak | 4 ++++
extras/tools/tools.mak | 17 +++++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/extras/tools/packages.mak b/extras/tools/packages.mak
index a3d7e39..b63158c 100644
--- a/extras/tools/packages.mak
+++ b/extras/tools/packages.mak
@@ -1,4 +1,5 @@
GNU=http://ftp.gnu.org/gnu
+APACHE=http://mirror.csclub.uwaterloo.ca/apache
YASM_VERSION=1.2.0
#YASM_URL=$(CONTRIB_VIDEOLAN)/yasm-$(YASM_VERSION).tar.gz
@@ -37,3 +38,6 @@ RAGEL_URL=http://www.complang.org/ragel/ragel-$(RAGEL_VERSION).tar.gz
SED_VERSION=4.2.2
SED_URL=$(GNU)/sed/sed-$(SED_VERSION).tar.bz2
+
+ANT_VERSION=1.9.4
+ANT_URL=$(APACHE)/ant/binaries/apache-ant-$(ANT_VERSION)-bin.tar.bz2
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index d88ea63..231e86a 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -248,6 +248,23 @@ CLEAN_PKG += sed
DISTCLEAN_PKG += sed-$(SED_VERSION).tar.bz2
CLEAN_FILE += .sed
+# Apache ANT
+
+apache-ant-$(ANT_VERSION).tar.bz2:
+ $(call download,$(ANT_URL))
+
+ant: apache-ant-$(ANT_VERSION).tar.bz2
+ $(UNPACK)
+ $(MOVE)
+
+.ant: ant
+ (cp $</bin/* build/bin/; cp $</lib/* build/lib/)
+ touch $@
+
+CLEAN_PKG += ant
+DISTCLEAN_PKG += apache-ant-$(ANT_VERSION).tar.bz2
+CLEAN_FILE += .ant
+
#
#
#
More information about the vlc-commits
mailing list