diff options
author | drochner <drochner@pkgsrc.org> | 2003-07-03 16:16:30 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2003-07-03 16:16:30 +0000 |
commit | 9596b6ffa66923a3be823c658c7ade158746954e (patch) | |
tree | d82447e7661684ef8e0dabe6b47335820b47c51c /lang | |
parent | 45900e9ace70f06f09e7cdde80453305580c7a95 (diff) | |
download | pkgsrc-9596b6ffa66923a3be823c658c7ade158746954e.tar.gz |
provide a knob to turn on java support
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc3/Makefile | 12 | ||||
-rw-r--r-- | lang/gcc3/PLIST.java | 7 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile index c06961f3bc9..0b7b2b4fef0 100644 --- a/lang/gcc3/Makefile +++ b/lang/gcc3/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2003/07/03 15:56:37 drochner Exp $ +# $NetBSD: Makefile,v 1.28 2003/07/03 16:16:30 drochner Exp $ # DISTNAME= gcc-3.3 @@ -24,8 +24,10 @@ HAS_CONFIGURE= YES CONFIGURE_ARGS+= --infodir=${PREFIX}/info CONFIGURE_ARGS+= --prefix=${GCC_PREFIX} -# java deliberately omitted, we'll provide an addon +# java takes hours to build, so make it optional +.if !defined(PKG_GCC3_JAVA) CONFIGURE_ARGS+= --enable-languages="c c++ f77 objc ada" +.endif UNLIMIT_RESOURCES= datasize # as this is named gcc3, use DISTNAME instead. @@ -35,6 +37,9 @@ MESSAGE_SUBST+= PKGNAME_NOREV=${DISTNAME} TEXINFO_REQD= 4.2 INFO_FILES= cpp.info g77.info gcc.info +.if defined(PKG_GCC3_JAVA) +INFO_FILES+= fastjar.info gcj.info +.endif .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "NetBSD" && exists(/usr/include/pthread.h) @@ -96,6 +101,9 @@ post-install: ${LN} -f ${GCC_PREFIX}/bin/gcc ${GCC_PREFIX}/bin/cc # ${LN} -f ${GCC_PREFIX}/bin/g77 ${GCC_PREFIX}/bin/f77 ${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC} +.if defined(PKG_GCC3_JAVA) + ${CAT} ${PKGDIR}/PLIST.java >> ${PLIST_SRC} +.endif ${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print \ | ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \ >> ${PLIST_SRC} diff --git a/lang/gcc3/PLIST.java b/lang/gcc3/PLIST.java new file mode 100644 index 00000000000..e299f9941af --- /dev/null +++ b/lang/gcc3/PLIST.java @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST.java,v 1.1 2003/07/03 16:16:30 drochner Exp $ +@unexec ${INSTALL_INFO} --delete %D/info/fastjar.info %D/info/dir +info/fastjar.info +@exec ${INSTALL_INFO} %D/info/fastjar.info %D/info/dir +@unexec ${INSTALL_INFO} --delete %D/info/gcj.info %D/info/dir +info/gcj.info +@exec ${INSTALL_INFO} %D/info/gcj.info %D/info/dir |