Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c474fa9d0c35a24037c23b6e476862c1
  8. PKG_DESCR:= ant utility
  9. PKG_SECTION:= lang
  10. PKG_SITES:= http://archive.apache.org/dist/ant/source/
  11. PKG_CFLINE_ANT:= depends on ADK_HOST_ONLY
  12. DISTFILES:= apache-$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
  13. WRKDIST= $(WRKDIR)/apache-$(PKG_NAME)-$(PKG_VERSION)
  14. include $(TOPDIR)/mk/host.mk
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,ANT,ant,$(PKG_VERSION)-${PKG_RELEASE}))
  17. HOST_STYLE:= manual
  18. host-build:
  19. if [ ! -f $(WRKBUILD)/lib/optional/junit-4.9b2.jar ];then \
  20. cd $(WRKBUILD)/lib/optional; wget http://openadk.org/distfiles/junit-4.9b2.jar; \
  21. fi
  22. cp $(STAGING_HOST_DIR)/usr/share/java/ecj.jar $(WRKBUILD)/lib/optional
  23. cd ${WRKBUILD}; export BOOTJAVAC_OPTS="-bootclasspath $(STAGING_HOST_DIR)/usr/share/classpath/glibj.zip" \
  24. LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 \
  25. JAVA_HOME=$(STAGING_HOST_DIR)/usr/lib/jvm ; \
  26. $(BASH) build.sh
  27. ant-hostinstall:
  28. cd $(WRKBUILD)/dist; \
  29. $(CP) bin/* $(STAGING_HOST_DIR)/usr/bin ; \
  30. $(CP) lib/* $(STAGING_HOST_DIR)/usr/lib
  31. include ${TOPDIR}/mk/host-bottom.mk
  32. include ${TOPDIR}/mk/pkg-bottom.mk