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
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}))
28 if
[ ! -f
$(WRKBUILD
)/lib
/optional
/junit-4.9b2.jar
];then \
29 cd
$(WRKBUILD
)/lib
/optional
; wget http
://distfiles.openadk.org
/junit-4.9b2.jar
; \
31 cp
$(DL_DIR
)/ecj
*.jar
$(WRKBUILD
)/lib
/optional
/ecj.jar
33 export JAVA_HOME
=$(STAGING_HOST_DIR
)/usr
/lib
/jvm
;\
34 export CLASSPATH
=$(STAGING_HOST_DIR
)/usr
/lib
/jvm
/lib
/tools.jar
;\
35 export JAVAC
=$(STAGING_HOST_DIR
)/usr
/bin
/ecj
;\
36 export JAVACMD
=$(STAGING_HOST_DIR
)/usr
/bin
/gij
;\
40 cd
$(WRKBUILD
)/dist; \
41 $(CP
) bin
/* $(STAGING_HOST_DIR
)/usr
/bin
; \
42 $(CP
) lib
/* $(STAGING_HOST_DIR
)/usr
/lib
44 include ${ADK_TOPDIR}/mk
/host-bottom.mk
45 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk