Makefile 1.3 KB

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