summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-06-03 08:45:27 +0000
committerjperkin <jperkin@pkgsrc.org>2013-06-03 08:45:27 +0000
commit67df4ba45b84157169699b115a994ea6533d49fe (patch)
tree3e4b63cf7e421c687a5c2cac35c873c1743c8d8e
parentbadb76f1b65d7b5687345dfb039f9ff59ac32a55 (diff)
downloadpkgsrc-67df4ba45b84157169699b115a994ea6533d49fe.tar.gz
Use the correct CMake define, from wiz. Fixes SunOS build.
-rw-r--r--devel/cmake/distinfo3
-rw-r--r--devel/cmake/patches/patch-Source_kwsys_SystemInformation.cxx15
2 files changed, 17 insertions, 1 deletions
diff --git a/devel/cmake/distinfo b/devel/cmake/distinfo
index 18c87fd9018..c121573192c 100644
--- a/devel/cmake/distinfo
+++ b/devel/cmake/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.46 2013/05/29 09:59:15 adam Exp $
+$NetBSD: distinfo,v 1.47 2013/06/03 08:45:27 jperkin Exp $
SHA1 (cmake-2.8.11.tar.gz) = 7b7961402ec71d84052734da1bed2b28e6a2c4af
RMD160 (cmake-2.8.11.tar.gz) = b90d9f031eab6ea4d67c00b6c78f60603866e172
@@ -6,6 +6,7 @@ Size (cmake-2.8.11.tar.gz) = 5883643 bytes
SHA1 (patch-Modules_FindPNG.cmake) = 55de08bb7882bc98c78dcad0d1aa7016b4b03564
SHA1 (patch-Modules_FindX11.cmake) = e5c9f5fd382effb85ae75fe603de00e5e58d788a
SHA1 (patch-Modules_Platform_SunOS.cmake) = 7a53ae3c902dd69ee22ef9fe0ae2a022d5284f16
+SHA1 (patch-Source_kwsys_SystemInformation.cxx) = 8ed0972c27e23937e01333c3cd997562dbcb4ced
SHA1 (patch-Utilities_KWIML_CMakeLists.txt) = 4e8cef0eab2ad8cb27cd7076e077bb5e7425a95c
SHA1 (patch-aa) = 97bfad3d2c357e9af01677ba86057b78f0661b9b
SHA1 (patch-ab) = aee3fb2f908aed1ce6e92b7c7ccf5b06f0596502
diff --git a/devel/cmake/patches/patch-Source_kwsys_SystemInformation.cxx b/devel/cmake/patches/patch-Source_kwsys_SystemInformation.cxx
new file mode 100644
index 00000000000..3df30672950
--- /dev/null
+++ b/devel/cmake/patches/patch-Source_kwsys_SystemInformation.cxx
@@ -0,0 +1,15 @@
+$NetBSD: patch-Source_kwsys_SystemInformation.cxx,v 1.1 2013/06/03 08:45:27 jperkin Exp $
+
+Use correct cmake define.
+
+--- Source/kwsys/SystemInformation.cxx.orig 2013-05-15 17:38:13.000000000 +0000
++++ Source/kwsys/SystemInformation.cxx
+@@ -4300,7 +4300,7 @@ bool SystemInformationImplementation::Qu
+ // a 32 bit process on a 64 bit host the returned memory will be
+ // limited to 4GiB. So if this is a 32 bit process or if the sysconf
+ // method fails use the kstat interface.
+-#if SIZEOF_VOID_P == 8
++#if CMAKE_SIZEOF_VOID_P == 8
+ if (this->QueryMemoryBySysconf())
+ {
+ return true;