Makefile 1.6 KB

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