summaryrefslogtreecommitdiff
path: root/jtools/ant/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@openadk.org>2011-04-09 21:54:12 +0200
committerwbx <wbx@openadk.org>2011-04-09 21:54:12 +0200
commit9954d8b64793e7b20a04419a06408617e739c3cf (patch)
treebcac9aadcbebbc3ca651ef364864e7bf75ea2568 /jtools/ant/Makefile
parent34fc06736330cc993fd1c936ed9205cdc73aa0fd (diff)
parent5af6b940e2749b6cdc506a9d85df94f73a1c7487 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'jtools/ant/Makefile')
-rw-r--r--jtools/ant/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/jtools/ant/Makefile b/jtools/ant/Makefile
new file mode 100644
index 000000000..d2809428b
--- /dev/null
+++ b/jtools/ant/Makefile
@@ -0,0 +1,34 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= ant
+PKG_VERSION:= 1.8.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 63220327925ace13756ae334c55a3baa
+PKG_SITES:= http://www.apache.org/dist/ant/source/
+
+DISTFILES:= apache-$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
+WRKDIST= $(WRKDIR)/apache-$(PKG_NAME)-$(PKG_VERSION)
+
+include ../rules.mk
+
+install: ${STAGING_JAVA_HOST_DIR}/usr/bin/ant
+
+$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
+ cp junit* $(WRKBUILD)/lib/optional
+ cp $(STAGING_JAVA_HOST_DIR)/usr/share/ecj.jar $(WRKBUILD)/lib/optional
+ cd ${WRKBUILD}; export BOOTJAVAC_OPTS="-bootclasspath $(STAGING_JAVA_HOST_DIR)/usr/share/classpath/glibj.zip" \
+ BOOTCLASSPATH="$(STAGING_JAVA_HOST_DIR)/usr/share/jamvm/classes.zip:$(STAGING_JAVA_HOST_DIR)/usr/share/classpath/glibj.zip" \
+ LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 \
+ JAVA_HOME=$(STAGING_JAVA_HOST_DIR)/usr/lib/jvm ; \
+ $(BASH) build.sh
+ touch $@
+
+${STAGING_JAVA_HOST_DIR}/usr/bin/ant: $(WRKBUILD)/.compiled
+ cd $(WRKBUILD)/dist; \
+ $(CP) bin/* $(STAGING_JAVA_HOST_DIR)/usr/bin ; \
+ $(CP) lib/* $(STAGING_JAVA_HOST_DIR)/usr/lib
+
+include $(TOPDIR)/mk/tools.mk