From 9596b6ffa66923a3be823c658c7ade158746954e Mon Sep 17 00:00:00 2001 From: drochner Date: Thu, 3 Jul 2003 16:16:30 +0000 Subject: provide a knob to turn on java support --- lang/gcc3/Makefile | 12 ++++++++++-- lang/gcc3/PLIST.java | 7 +++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 lang/gcc3/PLIST.java (limited to 'lang/gcc3') 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 -- cgit v1.2.3