diff options
author | gerald <gerald@FreeBSD.org> | 2011-06-03 06:11:48 +0800 |
---|---|---|
committer | gerald <gerald@FreeBSD.org> | 2011-06-03 06:11:48 +0800 |
commit | 4eb45fa6a1465ae0bd65abdcb83730301eb43b08 (patch) | |
tree | a9b8cae22fdeab2a34e2b7cfb3a6b588fdd62424 /lang/gcc46 | |
parent | 474c8674857a9dd63f7c582470b0b12d7a64040b (diff) | |
download | freebsd-ports-gnome-4eb45fa6a1465ae0bd65abdcb83730301eb43b08.tar.gz freebsd-ports-gnome-4eb45fa6a1465ae0bd65abdcb83730301eb43b08.tar.zst freebsd-ports-gnome-4eb45fa6a1465ae0bd65abdcb83730301eb43b08.zip |
Complete Java support by providing a pre-built copy of ecj.jar.
PR: 157115
Tested by: joerg, mandree
Diffstat (limited to 'lang/gcc46')
-rw-r--r-- | lang/gcc46/Makefile | 9 | ||||
-rw-r--r-- | lang/gcc46/distinfo | 2 | ||||
-rw-r--r-- | lang/gcc46/pkg-plist | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/lang/gcc46/Makefile b/lang/gcc46/Makefile index f13df2547579..dfe4a8e76c85 100644 --- a/lang/gcc46/Makefile +++ b/lang/gcc46/Makefile @@ -94,6 +94,11 @@ INFO+= gcc${SUFFIX}/libquadmath .endif .if ! defined(WITHOUT_JAVA) +ECJ_JAR= ecj-4.5.jar +MASTER_SITES+= ${MASTER_SITE_SOURCEWARE:S|$|:ecj|} +MASTER_SITE_SUBDIR+= java/:ecj +DISTFILES+= ${ECJ_JAR}:ecj +EXTRACT_ONLY= ${DISTFILES:S|${ECJ_JAR}:ecj||} BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip EXTRA_PATCHES+= ${FILESDIR}/java-patch-hier MAN1+= aot-compile${SUFFIX}.1 \ @@ -124,6 +129,10 @@ MAN3= ffi${SUFFIX}.3 \ INFO+= gcc${SUFFIX}/cp-tools \ gcc${SUFFIX}/gcj PLIST_SUB+= JAVA="" + +# Preps the source tree for the gcj build +post-patch:: + @${CP} ${DISTDIR}/${ECJ_JAR} ${SRCDIR}/ecj.jar .else CONFIGURE_ARGS+=--disable-libgcj PLIST_SUB+= JAVA="@comment " diff --git a/lang/gcc46/distinfo b/lang/gcc46/distinfo index fa444553a0cf..5bc586f14850 100644 --- a/lang/gcc46/distinfo +++ b/lang/gcc46/distinfo @@ -1,2 +1,4 @@ SHA256 (gcc-4.6-20110527.tar.bz2) = 874f29526189defa134fa0c41f89cf1f572182bbca3b989d244a66beb2a78a3f SIZE (gcc-4.6-20110527.tar.bz2) = 67833234 +SHA256 (ecj-4.5.jar) = 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781 +SIZE (ecj-4.5.jar) = 1470676 diff --git a/lang/gcc46/pkg-plist b/lang/gcc46/pkg-plist index f6e3d35e21a2..b307b7b175af 100644 --- a/lang/gcc46/pkg-plist +++ b/lang/gcc46/pkg-plist @@ -44,6 +44,7 @@ share/gcc-%%GCC_VER%%/python/libstdcxx/v6/printers.py %%JAVA%%bin/jv-convert%%SUFFIX%% %%JAVA%%bin/rebuild-gcj-db%%SUFFIX%% %%JAVA%%libdata/pkgconfig/libgcj-4.6.pc +%%JAVA%%share/java/ecj.jar %%JAVA%%share/java/libgcj-%%GCC_VER%%.jar %%JAVA%%share/java/libgcj-tools-%%GCC_VER%%.jar @comment Insert PLIST.lib here |