summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2009-01-05 03:45:17 +0000
committerdbj <dbj@pkgsrc.org>2009-01-05 03:45:17 +0000
commit7503fad2a962c34f04b6626d5a83e8ff81f3add7 (patch)
treeb49c988e5e9fdffd34d3872aa2a415108ba8c6f0 /lang
parent06b5331c6d1a60aae3814c7f90b5d278b55d1e22 (diff)
downloadpkgsrc-7503fad2a962c34f04b6626d5a83e8ff81f3add7.tar.gz
add handling for darwin gcc's -install_name, -compatiblity_version and
-current_version flags. These are added by libtool and break going through f2c bump PKGREVISION
Diffstat (limited to 'lang')
-rw-r--r--lang/f2c/Makefile4
-rw-r--r--lang/f2c/files/f2c-f77.in16
2 files changed, 18 insertions, 2 deletions
diff --git a/lang/f2c/Makefile b/lang/f2c/Makefile
index edfeeeb8ad7..0f9647164b3 100644
--- a/lang/f2c/Makefile
+++ b/lang/f2c/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2008/04/30 21:38:15 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.45 2009/01/05 03:45:17 dbj Exp $
DISTNAME= f2c-20001205
-PKGREVISION= 10
+PKGREVISION= 11
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_LOCAL}
diff --git a/lang/f2c/files/f2c-f77.in b/lang/f2c/files/f2c-f77.in
index 4fe8b470747..2aa8b10fe2b 100644
--- a/lang/f2c/files/f2c-f77.in
+++ b/lang/f2c/files/f2c-f77.in
@@ -13,6 +13,7 @@ PATH=$PATH:/bin:/usr/bin:@PREFIX@/bin
# -r8 promote REAL and COMPLEX to DOUBLE REAL and DOUBLE COMPLEX
# -s to strip executible
# -v for verbose output
+# -compatibility_version, -install_name, -current_version for libtool on darwin gcc
#
# Also only pass -m* to the C compiler not f2c.
#
@@ -276,6 +277,21 @@ do
shift
;;
+ -install_name)
+ CFLAGS="$CFLAGS $1 $(shell_quote "$2")"
+ shift 2;
+ ;;
+
+ -compatibility_version)
+ CFLAGS="$CFLAGS $1 $(shell_quote "$2")"
+ shift 2;
+ ;;
+
+ -current_version)
+ CFLAGS="$CFLAGS $1 $(shell_quote "$2")"
+ shift 2;
+ ;;
+
-*) CFLAGS="$CFLAGS $(shell_quote "$1")"
CPPFLAGS="$CPPFLAGS $(shell_quote "$1")"
if test $VERBOSE = "yes"; then