1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
9 PKG_HASH
:= 9506e75b862f782213df61af67338eb7a23c35ff425d328affc65585477d34cd
10 PKG_DESCR
:= ecj java compiler
11 PKG_SECTION
:= dev
/lang
12 PKG_SITES
:= ftp
://sourceware.org
/pub
/java
/
14 PKG_CFLINE_ECJ
:= depends on ADK_HOST_ONLY
15 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.jar
17 include $(ADK_TOPDIR
)/mk
/host.mk
18 include $(ADK_TOPDIR
)/mk
/package.mk
20 $(eval
$(call HOST_template
,ECJ
,ecj
,$(PKG_VERSION
)-${PKG_RELEASE}))
25 env LD_LIBRARY_PATH
=$(STAGING_HOST_DIR
)/usr
/lib
:$(STAGING_HOST_DIR
)/usr
/lib64 \
26 $(STAGING_HOST_DIR
)/usr
/bin
/gcj
-lgcj
-O2
-findirect-dispatch \
27 -o
${STAGING_HOST_DIR}/usr
/bin
/ecj.native \
28 --main
=org.eclipse.jdt.internal.compiler.batch.Main \
29 $(DL_DIR
)/${PKG_NAME}-${PKG_VERSION}.jar
30 echo
"env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/ecj.native \$$@" > \
31 ${STAGING_HOST_DIR}/usr
/bin
/ecj
32 chmod u
+x
${STAGING_HOST_DIR}/usr
/bin
/ecj
33 # put a wrapper for java here
34 mv
${STAGING_HOST_DIR}/usr
/bin
/gij
${STAGING_HOST_DIR}/usr
/bin
/gij.native
35 echo
"env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
36 ${STAGING_HOST_DIR}/usr
/bin
/hostjava
37 chmod u
+x
${STAGING_HOST_DIR}/usr
/bin
/hostjava
38 echo
"env LD_LIBRARY_PATH=$(STAGING_HOST_DIR)/usr/lib:$(STAGING_HOST_DIR)/usr/lib64 ${STAGING_HOST_DIR}/usr/bin/gij.native \"\$$@\"" > \
39 ${STAGING_HOST_DIR}/usr
/bin
/gij
40 chmod u
+x
${STAGING_HOST_DIR}/usr
/bin
/gij
42 include ${ADK_TOPDIR}/mk
/host-bottom.mk
43 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk