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