diff options
author | jschauma <jschauma@pkgsrc.org> | 2006-12-02 22:32:59 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2006-12-02 22:32:59 +0000 |
commit | 721b60b433c2f8906e5064206e90937b196829ca (patch) | |
tree | 97923b6df098fa627f577ea81af4285038c9d84a /devel | |
parent | 114ef6550554f18c0cd488aa39d20668e70e4f54 (diff) | |
download | pkgsrc-721b60b433c2f8906e5064206e90937b196829ca.tar.gz |
Instead of setting compiler flags in each package if it uses C99,
allow USE_LANGUAGES+=c99 and let gcc and mipspro do the right thing.
May need to be reviewed/added for other compilers.
ok rillig@
Diffstat (limited to 'devel')
-rw-r--r-- | devel/atk/Makefile | 9 | ||||
-rw-r--r-- | devel/glib2/Makefile | 10 | ||||
-rw-r--r-- | devel/gmp/Makefile | 10 |
3 files changed, 6 insertions, 23 deletions
diff --git a/devel/atk/Makefile b/devel/atk/Makefile index f27c7821851..eb344aa9ae6 100644 --- a/devel/atk/Makefile +++ b/devel/atk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.57 2006/10/17 16:51:42 drochner Exp $ +# $NetBSD: Makefile,v 1.58 2006/12/02 22:32:59 jschauma Exp $ # DISTNAME= atk-1.12.3 @@ -16,6 +16,7 @@ PKG_DESTDIR_SUPPORT= user-destdir USE_TOOLS+= gmake pkg-config msgfmt GNU_CONFIGURE= yes USE_PKGLOCALEDIR= yes +USE_LANGUAGES+= c99 USE_LIBTOOL= yes PKGCONFIG_OVERRIDE= atk.pc.in @@ -27,12 +28,6 @@ UNLIMIT_RESOURCES= stacksize BUILDLINK_API_DEPENDS.glib2+= glib2>=2.6.3 -.include "../../mk/compiler.mk" - -.if !empty(PKGSRC_COMPILER:Mmipspro*) -CFLAGS+= -c99 -.endif - .include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/glib2/buildlink3.mk" diff --git a/devel/glib2/Makefile b/devel/glib2/Makefile index a85c110c68e..5f924d06ff3 100644 --- a/devel/glib2/Makefile +++ b/devel/glib2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.109 2006/11/13 18:34:38 drochner Exp $ +# $NetBSD: Makefile,v 1.110 2006/12/02 22:32:59 jschauma Exp $ DISTNAME= glib-2.12.4 PKGNAME= ${DISTNAME:S/glib/glib2/} @@ -18,7 +18,7 @@ PKG_DESTDIR_SUPPORT= user-destdir USE_PKGLOCALEDIR= yes USE_TOOLS+= gmake msgfmt perl:run pkg-config -USE_LANGUAGES= c c++ +USE_LANGUAGES= c c++ c99 USE_LIBTOOL= yes TEST_TARGET= check @@ -54,12 +54,6 @@ CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" CPPFLAGS+= -DPKGLOCALEDIR="\"${PKGLOCALEDIR}\"" CPPFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\"" -.include "../../mk/compiler.mk" - -.if !empty(PKGSRC_COMPILER:Mmipspro*) -CFLAGS+= -c99 -.endif - .if ${OPSYS} == "FreeBSD" SUBST_CLASSES+= thr diff --git a/devel/gmp/Makefile b/devel/gmp/Makefile index 9c3c331c086..8c0f595f1c8 100644 --- a/devel/gmp/Makefile +++ b/devel/gmp/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2006/10/22 19:49:07 schwarz Exp $ +# $NetBSD: Makefile,v 1.41 2006/12/02 22:32:59 jschauma Exp $ DISTNAME= gmp-4.1.4 PKGREVISION= 1 @@ -12,7 +12,7 @@ COMMENT= Library for arbitrary precision arithmetic PKG_INSTALLATION_TYPES= overwrite pkgviews -USE_LANGUAGES= c c++ +USE_LANGUAGES= c c++ c99 USE_TOOLS+= gm4 USE_LIBTOOL= yes GNU_CONFIGURE= yes @@ -26,12 +26,6 @@ TEST_TARGET= check ABI= o32 .endif -.include "../../mk/compiler.mk" - -.if !empty(PKGSRC_COMPILER:Mmipspro) -CFLAGS+= -c99 -.endif - .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" # The configure script thinks gcc 2.95 for ARM is too buggy to use. GCC_REQD+= 3.0 |