blob: 06a7f750c4e2f3c9c2a78e1093aea1747bae3e91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# 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:= 0d9e108afcd15b820150b8085c96d2b1
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
cd $(WRKBUILD)/lib/optional; wget http://openadk.org/distfiles/junit-4.9b2.jar
cp $(STAGING_JAVA_HOST_DIR)/usr/share/java/ecj.jar $(WRKBUILD)/lib/optional
cd ${WRKBUILD}; export BOOTJAVAC_OPTS="-bootclasspath $(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
|