1
0

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 $(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. 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 $(TOPDIR)/mk/host.mk
  16. include $(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
  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 ${TOPDIR}/mk/host-bottom.mk
  33. include ${TOPDIR}/mk/pkg-bottom.mk