Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= ant
  5. PKG_VERSION:= 1.8.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0d9e108afcd15b820150b8085c96d2b1
  8. PKG_SITES:= http://www.apache.org/dist/ant/source/
  9. DISTFILES:= apache-$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
  10. WRKDIST= $(WRKDIR)/apache-$(PKG_NAME)-$(PKG_VERSION)
  11. include ../rules.mk
  12. install: ${STAGING_JAVA_HOST_DIR}/usr/bin/ant
  13. $(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
  14. cd $(WRKBUILD)/lib/optional; wget http://openadk.org/distfiles/junit-4.9b2.jar
  15. cp $(STAGING_JAVA_HOST_DIR)/usr/share/java/ecj.jar $(WRKBUILD)/lib/optional
  16. cd ${WRKBUILD}; export BOOTJAVAC_OPTS="-bootclasspath $(STAGING_JAVA_HOST_DIR)/usr/share/classpath/glibj.zip" \
  17. LD_LIBRARY_PATH=$(STAGING_JAVA_HOST_DIR)/usr/lib:$(STAGING_JAVA_HOST_DIR)/usr/lib64 \
  18. JAVA_HOME=$(STAGING_JAVA_HOST_DIR)/usr/lib/jvm ; \
  19. $(BASH) build.sh
  20. touch $@
  21. ${STAGING_JAVA_HOST_DIR}/usr/bin/ant: $(WRKBUILD)/.compiled
  22. cd $(WRKBUILD)/dist; \
  23. $(CP) bin/* $(STAGING_JAVA_HOST_DIR)/usr/bin ; \
  24. $(CP) lib/* $(STAGING_JAVA_HOST_DIR)/usr/lib
  25. include $(TOPDIR)/mk/tools.mk