diff options
author | gerald <gerald@FreeBSD.org> | 2004-03-15 05:33:57 +0800 |
---|---|---|
committer | gerald <gerald@FreeBSD.org> | 2004-03-15 05:33:57 +0800 |
commit | 993db5ca27b693b80097ff97c3046d03cfd30484 (patch) | |
tree | 1eb2b7167a7268e5a07f1ec4805631e70038cc59 /lang/gcc43/Makefile | |
parent | d0626a777bb9f78870720fe5d1b8f87cfd56c78b (diff) | |
download | freebsd-ports-gnome-993db5ca27b693b80097ff97c3046d03cfd30484.tar.gz freebsd-ports-gnome-993db5ca27b693b80097ff97c3046d03cfd30484.tar.zst freebsd-ports-gnome-993db5ca27b693b80097ff97c3046d03cfd30484.zip |
Add a WITHOUT_LIBJAVA know, which disables building libgcj and thus saves
quite some build time and also disk. Make this the default on sparc64 and
ia64 where libgcj has not been ported to and thus fix long-standing packaging
issues on these two platforms.
On the way, update to the 20040310 snapshot of GCC 3.4.0.
PR: 63427 (mostly)
Diffstat (limited to 'lang/gcc43/Makefile')
-rw-r--r-- | lang/gcc43/Makefile | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/lang/gcc43/Makefile b/lang/gcc43/Makefile index a72dee387e01..c07880a55db3 100644 --- a/lang/gcc43/Makefile +++ b/lang/gcc43/Makefile @@ -5,7 +5,7 @@ # # $FreeBSD$ # -SNAPDATE= 2004-02-18 +SNAPDATE= 2004-03-10 PORTNAME= gcc PORTVERSION= 3.4.0 @@ -47,6 +47,11 @@ BROKEN= "Configure broken due to renaming this architecture from x86_84." .if ${ARCH} == sparc64 BROKEN= "libgcj is not supported/packaging is broken on this platform" +WITHOUT_LIBJAVA= yes +.endif + +.if ${ARCH} == ia64 +WITHOUT_LIBJAVA= yes .endif CONFIGURE_TARGET= ${ARCH}-portbld-freebsd${OSREL} @@ -93,6 +98,13 @@ MAN1= cpp${SUFFIX}.1 \ MAN7= fsf-funding.7 gfdl.7 gpl.7 INFO= cpp cppinternals g77 gcc gccinstall gccint gcj fastjar +.if defined(WITHOUT_LIBJAVA) +CONFIGURE_ARGS+= --disable-libgcj +PLIST_SUB+= LIBJAVA="@comment " +.else +PLIST_SUB+= LIBJAVA="" +.endif + pre-everything:: @${ECHO_MSG} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT} target ${CONFIGURE_TARGET}" @@ -118,9 +130,10 @@ post-install: fake-manpages # gij and jv-convert, for example, are not built on all platforms. if [ -e ${PREFIX}/bin/${f}${SUFFIX} ]; then \ ${STRIP_CMD} ${PREFIX}/bin/${f}${SUFFIX}; \ - ( ${TEST} ! -e ${PREFIX}/man/man1/${f}.1 \ - || ${MV} -f ${PREFIX}/man/man1/${f}.1 \ - ${PREFIX}/man/man1/${f}${SUFFIX}.1 ); \ + fi + if [ -e ${PREFIX}/man/man1/${f}.1 ]; then \ + ${MV} -f ${PREFIX}/man/man1/${f}.1 \ + ${PREFIX}/man/man1/${f}${SUFFIX}.1; \ fi .endfor ${MV} -f ${PREFIX}/bin/g77${SUFFIX} ${PREFIX}/bin/g77-${SUFFIX} |