Makefile 1.6 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:= ecj
  5. PKG_VERSION:= 4.9
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c474fa9d0c35a24037c23b6e476862c1
  8. PKG_DESCR:= ecj java compiler
  9. PKG_SECTION:= lang
  10. PKG_CFLINE_ECJ:= depends on ADK_HOST_ONLY
  11. NO_DISTFILES:= 1
  12. include $(TOPDIR)/mk/host.mk
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call HOST_template,ECJ,ecj,$(PKG_VERSION)-${PKG_RELEASE}))
  15. HOST_STYLE:= manual
  16. ecj-hostinstall:
  17. env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 \
  18. $(STAGING_HOST_DIR)/usr/bin/gcj -lgcj -O2 -findirect-dispatch \
  19. -o ${STAGING_HOST_DIR}/usr/bin/ecj.native \
  20. --main=org.eclipse.jdt.internal.compiler.batch.Main \
  21. $(DL_DIR)/ecj.jar
  22. echo "env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/ecj.native \$$@" > \
  23. ${STAGING_HOST_DIR}/usr/bin/ecj
  24. chmod u+x ${STAGING_HOST_DIR}/usr/bin/ecj
  25. # put a wrapper for java here
  26. mv ${STAGING_HOST_DIR}/usr/bin/gij ${STAGING_HOST_DIR}/usr/bin/gij.native
  27. echo "env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
  28. ${STAGING_HOST_DIR}/usr/bin/java
  29. chmod u+x ${STAGING_HOST_DIR}/usr/bin/java
  30. echo "env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
  31. ${STAGING_HOST_DIR}/usr/bin/gij
  32. chmod u+x ${STAGING_HOST_DIR}/usr/bin/gij
  33. include ${TOPDIR}/mk/host-bottom.mk
  34. include ${TOPDIR}/mk/pkg-bottom.mk