summaryrefslogtreecommitdiff
path: root/x11/gtk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2006-12-02 22:32:59 +0000
committerjschauma <jschauma@pkgsrc.org>2006-12-02 22:32:59 +0000
commit721b60b433c2f8906e5064206e90937b196829ca (patch)
tree97923b6df098fa627f577ea81af4285038c9d84a /x11/gtk
parent114ef6550554f18c0cd488aa39d20668e70e4f54 (diff)
downloadpkgsrc-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 'x11/gtk')
-rw-r--r--x11/gtk/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/x11/gtk/Makefile b/x11/gtk/Makefile
index dfb6aad60b6..61317183725 100644
--- a/x11/gtk/Makefile
+++ b/x11/gtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.119 2006/06/15 20:40:16 jlam Exp $
+# $NetBSD: Makefile,v 1.120 2006/12/02 22:33:00 jschauma Exp $
DISTNAME= gtk+-1.2.10
PKGREVISION= 9
@@ -20,6 +20,7 @@ USE_DIRS+= xdg-1.1
USE_X11BASE= yes
USE_TOOLS+= gmake msgfmt perl
USE_PKGLOCALEDIR= yes
+USE_LANGUAGES+= c99
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE= gdk.pc.in
PKGCONFIG_OVERRIDE+= gtk+.pc.in
@@ -44,12 +45,6 @@ GTK_MAJOR_VERSION= ${GTK_VERSION:C/\..*//}
GTK_MINOR_VERSION= ${GTK_VERSION:C/[^.]*\.//:C/\..*//}
GTK_MICRO_VERSION= ${GTK_VERSION:C/.*\.//}
-.include "../../mk/compiler.mk"
-
-.if !empty(PKGSRC_COMPILER:Mmipspro*)
-CFLAGS+= -c99
-.endif
-
# We patch the version info in the configure scripts for reasons related to
# shared library numbering, but we don't want it to leak into the various
# installed files. Explicitly replace the version number with the correct