Makefile 1.4 KB

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