summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorschmonz <schmonz>2007-06-02 06:56:06 +0000
committerschmonz <schmonz>2007-06-02 06:56:06 +0000
commitc772b2c4b72b74d9c1ad044c2ed55e0c2728371b (patch)
tree07a2e0f4d43bfd1ad767abde4ee3097af3a970d6 /converters
parent529b549256a978b8db19782d7cf08ddc62699062 (diff)
downloadpkgsrc-c772b2c4b72b74d9c1ad044c2ed55e0c2728371b.tar.gz
Don't require c99 in USE_LANGUAGES. libiconv builds fine with gcc
2.95.4 on FreeBSD 4.11 without it; with it, pkgsrc wants gcc3-c, which results in a circular dependency. The addition of c99 to USE_LANGUAGES appears to have been intended to benefit IRIX with MIPSPro, so also restore the old behavior of appending "-c99" to CFLAGS in that case.
Diffstat (limited to 'converters')
-rw-r--r--converters/libiconv/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/converters/libiconv/Makefile b/converters/libiconv/Makefile
index 12b86800867..1c4563bd401 100644
--- a/converters/libiconv/Makefile
+++ b/converters/libiconv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 2007/04/12 10:27:15 tnn Exp $
+# $NetBSD: Makefile,v 1.50 2007/06/02 06:56:06 schmonz Exp $
DISTNAME= libiconv-1.11
CATEGORIES= converters
@@ -15,7 +15,7 @@ COMMENT= Character set conversion library
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
-USE_LANGUAGES+= c99 c++
+USE_LANGUAGES+= c c++
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
@@ -35,6 +35,13 @@ REQD_FILES= ${EGDIR}/charset.alias ${PREFIX}/lib/charset.alias
MAKE_ENV+= PAX=${PAX:Q}
MAKE_JOBS_SAFE= no # ENOENT(srclib)
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mmipspro*)
+CFLAGS+= -c99
+.endif
+
+
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" || ${OPSYS} == "OSF1"