python3: allow to use libopenssl
[openadk.git] / package / ecj / Makefile
blob26bace2c8f79a5eb74238e526db09b1ed64d4add
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
6 PKG_NAME:= ecj
7 PKG_VERSION:= 4.9
8 PKG_RELEASE:= 1
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}))
22 HOST_STYLE:= manual
24 ecj-hostinstall:
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