update to latest upstream
[openadk.git] / package / ant / Makefile
bloba1cfbd567351db742d698a86ea66665b52909ec9
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= ant
7 PKG_VERSION:= 1.8.4
8 PKG_RELEASE:= 1
9 PKG_HASH:= 5de65f7ba3f67e436ffffcdc0a73f591d1006e9fb41af8632c1f1f84d4a3e0b1
10 PKG_DESCR:= java code build utility
11 PKG_SECTION:= dev/tools
12 HOST_BUILDDEP:= gcj-host
13 PKG_SITES:= http://archive.apache.org/dist/ant/source/
15 PKG_CFLINE_ANT:= depends on ADK_HOST_ONLY
17 DISTFILES:= apache-$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
18 WRKDIST= $(WRKDIR)/apache-$(PKG_NAME)-$(PKG_VERSION)
20 include $(ADK_TOPDIR)/mk/host.mk
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call HOST_template,ANT,ant,$(PKG_VERSION)-${PKG_RELEASE}))
25 HOST_STYLE:= manual
27 host-build:
28 if [ ! -f $(WRKBUILD)/lib/optional/junit-4.9b2.jar ];then \
29 cd $(WRKBUILD)/lib/optional; wget http://openadk.org/distfiles/junit-4.9b2.jar; \
31 cp $(DL_DIR)/ecj*.jar $(WRKBUILD)/lib/optional/ecj.jar
32 cd ${WRKBUILD}; export BOOTJAVAC_OPTS="-bootclasspath $(STAGING_HOST_DIR)/usr/share/classpath/glibj.zip" \
33 LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 \
34 JAVA_HOME=$(STAGING_HOST_DIR)/usr/lib/jvm ; \
35 $(BASH) build.sh
37 ant-hostinstall:
38 cd $(WRKBUILD)/dist; \
39 $(CP) bin/* $(STAGING_HOST_DIR)/usr/bin ; \
40 $(CP) lib/* $(STAGING_HOST_DIR)/usr/lib
42 include ${ADK_TOPDIR}/mk/host-bottom.mk
43 include ${ADK_TOPDIR}/mk/pkg-bottom.mk