summaryrefslogtreecommitdiff
path: root/package/ecj/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-01-29 09:06:27 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2014-01-29 09:06:27 +0100
commit40fcb885d64153d3196f8a6ad8ca9a679b4a61b5 (patch)
treec65da15b51c5fcf5dd5e5f2c038fa57455b03a21 /package/ecj/Makefile
parentede0b881160024db41b69198207a3e9905eea6c9 (diff)
parent50dc4372e21202d2e285bd295ec18c759b66c4d9 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/ecj/Makefile')
-rw-r--r--package/ecj/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/ecj/Makefile b/package/ecj/Makefile
new file mode 100644
index 000000000..37a463eb1
--- /dev/null
+++ b/package/ecj/Makefile
@@ -0,0 +1,43 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= ecj
+PKG_VERSION:= 4.9
+PKG_RELEASE:= 1
+PKG_MD5SUM:= c474fa9d0c35a24037c23b6e476862c1
+PKG_DESCR:= ecj java compiler
+PKG_SECTION:= lang
+
+NO_DISTFILES:= 1
+
+PKG_ARCH_DEPENDS:= native
+
+include $(TOPDIR)/mk/host.mk
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call HOST_template,ECJ,ecj,$(PKG_VERSION)-${PKG_RELEASE}))
+
+HOST_STYLE:= manual
+
+ecj-hostinstall:
+ env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 \
+ $(STAGING_HOST_DIR)/usr/bin/gcj -lgcj -O2 -findirect-dispatch \
+ -o ${STAGING_HOST_DIR}/usr/bin/ecj.native \
+ --main=org.eclipse.jdt.internal.compiler.batch.Main \
+ $(DISTDIR)/ecj.jar
+ echo "env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/ecj.native \$$@" > \
+ ${STAGING_HOST_DIR}/usr/bin/ecj
+ chmod u+x ${STAGING_HOST_DIR}/usr/bin/ecj
+ # put a wrapper for java here
+ mv ${STAGING_HOST_DIR}/usr/bin/gij ${STAGING_HOST_DIR}/usr/bin/gij.native
+ echo "env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
+ ${STAGING_HOST_DIR}/usr/bin/java
+ chmod u+x ${STAGING_HOST_DIR}/usr/bin/java
+ echo "env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
+ ${STAGING_HOST_DIR}/usr/bin/gij
+ chmod u+x ${STAGING_HOST_DIR}/usr/bin/gij
+
+include ${TOPDIR}/mk/host-bottom.mk
+include ${TOPDIR}/mk/pkg-bottom.mk