summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorhans <hans@pkgsrc.org>2011-11-01 14:47:46 +0000
committerhans <hans@pkgsrc.org>2011-11-01 14:47:46 +0000
commit07d4ff3b67fb73469813220e6c3764bade8ae801 (patch)
tree3288de82a65e677482c26bd7022afb8a02e8ce97 /devel
parent0fc8c6c52da176a94f3a7daa5cabba27aeafc263 (diff)
downloadpkgsrc-07d4ff3b67fb73469813220e6c3764bade8ae801.tar.gz
Fix build on SunOS >= 5.10 with gcc 4.6.
Gcc 4.6 on SunOS >= 5.10 defines _XOPEN_SOURCE=600 (and other things) for c++ to enable c99 features. Things start to fall apart if _XOPEN_SOURCE is redefined to some lower value.
Diffstat (limited to 'devel')
-rw-r--r--devel/ncurses/distinfo4
-rw-r--r--devel/ncurses/patches/patch-ac18
2 files changed, 18 insertions, 4 deletions
diff --git a/devel/ncurses/distinfo b/devel/ncurses/distinfo
index 63801d7930c..8fa3e829f66 100644
--- a/devel/ncurses/distinfo
+++ b/devel/ncurses/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.20 2011/04/06 14:02:47 adam Exp $
+$NetBSD: distinfo,v 1.21 2011/11/01 14:47:46 hans Exp $
SHA1 (ncurses-5.9.tar.gz) = 3e042e5f2c7223bffdaac9646a533b8c758b65b5
RMD160 (ncurses-5.9.tar.gz) = dd7dffe38fcc908230ce3e036b71ced2d270ac9e
Size (ncurses-5.9.tar.gz) = 2826473 bytes
SHA1 (patch-aa) = ff83d492f6016af789ce8397c4bf87969095e4c4
SHA1 (patch-ab) = 6bbc87f2189d184a120c77df68ac75a0b97e8e7a
-SHA1 (patch-ac) = 2a81d0d49d5bdfc5a7e88df08c062d8cb23caa86
+SHA1 (patch-ac) = 15c690a340ce349fd4b76b9a6e792288f2ebbc7d
SHA1 (patch-ad) = 82e81dec3798f81efefd1cbbaee95ae39b46350c
SHA1 (patch-cxx_cursesf.h) = 98ea07e87f00ba2c67a8c3f8e6d54693c8869f9b
SHA1 (patch-cxx_cursesm.h) = 24194189201782b457bd3e2c953dcaa34dde99ea
diff --git a/devel/ncurses/patches/patch-ac b/devel/ncurses/patches/patch-ac
index a74088b40a1..484d1d377e0 100644
--- a/devel/ncurses/patches/patch-ac
+++ b/devel/ncurses/patches/patch-ac
@@ -1,8 +1,22 @@
-$NetBSD: patch-ac,v 1.17 2011/02/28 11:02:46 adam Exp $
+$NetBSD: patch-ac,v 1.18 2011/11/01 14:47:46 hans Exp $
--- configure.orig 2011-02-21 01:40:36.000000000 +0000
+++ configure
-@@ -9640,12 +9640,7 @@ case ".$MANPAGE_RENAMES" in #(vi
+@@ -7096,6 +7096,13 @@ sco*) #(vi
+ # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
+ ;;
+ solaris2.1[0-9]) #(vi
++ case "$GCC_VERSION" in
++ 4.[67].*)
++ cf_XOPEN_SOURCE=600
++ cf_add_cflags=-std=c99
++ CPPFLAGS="$CPPFLAGS -std=c99"
++ ;;
++ esac
+ cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
+ ;;
+ solaris2.[1-9]) #(vi
+@@ -9640,12 +9647,7 @@ case ".$MANPAGE_RENAMES" in #(vi
.no) #(vi
;;
.|.yes)