summaryrefslogtreecommitdiff
path: root/lang/gcc44
diff options
context:
space:
mode:
authorhans <hans>2011-07-13 13:25:17 +0000
committerhans <hans>2011-07-13 13:25:17 +0000
commit2d4fe7f7e97e6ba15a79096a77dc0fb8abf3c255 (patch)
treeacb0ec2144631aa3493f42e395c4396a97e330d0 /lang/gcc44
parent0991b3cb0bbe80238416b653a92779c0308f00c4 (diff)
downloadpkgsrc-2d4fe7f7e97e6ba15a79096a77dc0fb8abf3c255.tar.gz
Move option-specific dependencies, tools and variables to their
respective options. Reduces dependencies when not building C++ or Java.
Diffstat (limited to 'lang/gcc44')
-rw-r--r--lang/gcc44/Makefile26
-rw-r--r--lang/gcc44/options.mk42
2 files changed, 36 insertions, 32 deletions
diff --git a/lang/gcc44/Makefile b/lang/gcc44/Makefile
index 0bd5a492100..9cf32303692 100644
--- a/lang/gcc44/Makefile
+++ b/lang/gcc44/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2011/07/12 18:05:58 hans Exp $
+# $NetBSD: Makefile,v 1.24 2011/07/13 13:25:17 hans Exp $
DISTNAME= gcc-${GCC_VERSION}
PKGNAME= gcc44-${GCC_VERSION}
@@ -14,11 +14,9 @@ LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3
PKG_DESTDIR_SUPPORT= user-destdir
-USE_TOOLS+= awk:run bash:run perl chmod \
+USE_TOOLS+= awk:run bash:run chmod \
gmake:run makeinfo bison flex gm4 \
- sed:run unzip
-
-DEPENDS+= zip-[0-9]*:../../archivers/zip
+ sed:run
GCC_VERSION= 4.4.6
@@ -71,9 +69,7 @@ REPLACE_BASH+= libstdc++-v3/scripts/run_doxygen
CONFIGURE_ARGS+= --prefix=${GCC_PREFIX:Q}
CONFIGURE_ARGS+= --enable-languages=${LANGS:Q}
-CONFIGURE_ARGS+= --with-system-zlib
CONFIGURE_ARGS+= --enable-shared
-CONFIGURE_ARGS+= --enable-__cxa_atexit
CONFIGURE_ARGS+= --enable-long-long
CONFIGURE_ARGS+= --with-local-prefix=${GCC_PREFIX:Q}
CONFIGURE_ARGS+= --disable-libssp
@@ -83,20 +79,6 @@ CONFIGURE_ARGS+= --with-mpfr=${BUILDLINK_PREFIX.mpfr}
CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL}
-# ${WRKSRC}/gcc-4.4.1/libjava/contrib/aotcompile.py.in stores the path to
-# a 'make' program so we need to make sure we give it the installed 'make' and not
-# the tool wrapped one.
-CONFIGURE_ENV+= PKGSRC_MAKE=${TOOLS_PATH.gmake}
-MAKE_ENV+= PKGSRC_MAKE=${TOOLS_PATH.gmake}
-
-# fastjar-0.93 from pkgsrc/archivers/fastjar seems to trigger a build
-# failure (seen on NetBSD-5.0/i386) when building java. So in case
-# the fastjar package is installed, make sure the configure script
-# doesn't pick it up.
-CONFIGURE_ENV+= JAR=no
-MAKE_ENV+= JAR=no
-MAKE_ENV+= ac_cv_prog_JAR=no
-
MAKE_ENV+= ICONVPREFIX=${BUILDLINK_PREFIX.iconv}
MAKE_ENV+= SHELL=${CONFIG_SHELL}
MAKE_ENV+= ac_cv_path_ac_cv_prog_chmod=${TOOLS_CHMOD}
@@ -149,7 +131,5 @@ GENERATE_PLIST+= \
| ${SORT} ;
.include "../../devel/gmp/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
-.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/gcc44/options.mk b/lang/gcc44/options.mk
index 9c8be9def68..d12994d4a0a 100644
--- a/lang/gcc44/options.mk
+++ b/lang/gcc44/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.5 2011/07/13 13:13:43 hans Exp $
+# $NetBSD: options.mk,v 1.6 2011/07/13 13:25:17 hans Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gcc44
PKG_SUPPORTED_OPTIONS= nls gcc-c++ gcc-fortran gcc-java gcc-objc #gcc-ada
@@ -32,28 +32,52 @@ CONFIGURE_ARGS+= --disable-nls
### ../gcc34-ada for guidance
###
-LANGS= c
+LANGS= c
.if !empty(PKG_OPTIONS:Mgcc-java)
. if empty(PKG_OPTIONS:Mgcc-c++)
-PKG_OPTIONS+= gcc-c++
+PKG_OPTIONS+= gcc-c++
. endif
-LANGS+= java
-REPLACE_PYTHON= libjava/contrib/aot-compile.in
+
+LANGS+= java
+REPLACE_PYTHON= libjava/contrib/aot-compile.in
+
+USE_TOOLS+= unzip
+DEPENDS+= zip-[0-9]*:../../archivers/zip
+CONFIGURE_ARGS+= --with-system-zlib
+
+# ${WRKSRC}/gcc-4.4.1/libjava/contrib/aotcompile.py.in stores the path to
+# a 'make' program so we need to make sure we give it the installed 'make' and not
+# the tool wrapped one.
+CONFIGURE_ENV+= PKGSRC_MAKE=${TOOLS_PATH.gmake}
+MAKE_ENV+= PKGSRC_MAKE=${TOOLS_PATH.gmake}
+
+# fastjar-0.93 from pkgsrc/archivers/fastjar seems to trigger a build
+# failure (seen on NetBSD-5.0/i386) when building java. So in case
+# the fastjar package is installed, make sure the configure script
+# doesn't pick it up.
+CONFIGURE_ENV+= JAR=no
+MAKE_ENV+= JAR=no
+MAKE_ENV+= ac_cv_prog_JAR=no
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../lang/python/application.mk"
.endif
.if !empty(PKG_OPTIONS:Mgcc-c++)
-LANGS+= c++
+LANGS+= c++
+USE_TOOLS+= perl
+CONFIGURE_ARGS+= --enable-__cxa_atexit
.endif
.if !empty(PKG_OPTIONS:Mgcc-fortran)
-LANGS+= fortran
+LANGS+= fortran
.endif
.if !empty(PKG_OPTIONS:Mgcc-objc)
-LANGS+= objc
+LANGS+= objc
.endif
#.if !empty(PKG_OPTIONS:Mgcc-ada)
-#LANGS+= ada
+#LANGS+= ada
#.endif