summaryrefslogtreecommitdiff
path: root/devel/cmake
diff options
context:
space:
mode:
authoradam <adam>2013-10-19 08:04:34 +0000
committeradam <adam>2013-10-19 08:04:34 +0000
commitd255b4353e36ce03fcb2effe49cc25f6ec38fd01 (patch)
treef5e70a862f44da227cec0bfed3d2ccfd54c51f3d /devel/cmake
parentff64131e8590d66c14963a6726e0470d537d7443 (diff)
downloadpkgsrc-d255b4353e36ce03fcb2effe49cc25f6ec38fd01.tar.gz
Fix building on SunOS
Diffstat (limited to 'devel/cmake')
-rw-r--r--devel/cmake/Makefile4
-rw-r--r--devel/cmake/distinfo4
-rw-r--r--devel/cmake/patches/patch-Source_kwsys_SystemInformation.cxx4
3 files changed, 7 insertions, 5 deletions
diff --git a/devel/cmake/Makefile b/devel/cmake/Makefile
index 9637e020d95..076f3852a8c 100644
--- a/devel/cmake/Makefile
+++ b/devel/cmake/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.79 2013/10/17 14:42:46 adam Exp $
+# $NetBSD: Makefile,v 1.80 2013/10/19 08:04:34 adam Exp $
DISTNAME= cmake-${CMAKE_API}.12
CATEGORIES= devel
@@ -25,6 +25,8 @@ CONFIGURE_ARGS+= --docdir=/share/doc/cmake-${CMAKE_API}
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --system-libs
+LDFLAGS.SunOS+= -lsocket -lnsl
+
.include "../../mk/bsd.prefs.mk"
.if !empty(MAKE_JOBS)
diff --git a/devel/cmake/distinfo b/devel/cmake/distinfo
index 83d47eb35cd..87fa026c115 100644
--- a/devel/cmake/distinfo
+++ b/devel/cmake/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.50 2013/10/17 14:42:46 adam Exp $
+$NetBSD: distinfo,v 1.51 2013/10/19 08:04:34 adam Exp $
SHA1 (cmake-2.8.12.tar.gz) = 93c93d556e702f8c967acf139fd716268ce69f39
RMD160 (cmake-2.8.12.tar.gz) = cf9853a662806747a3a2b4615df6dea6f7001632
@@ -6,7 +6,7 @@ Size (cmake-2.8.12.tar.gz) = 6064138 bytes
SHA1 (patch-CMakeLists.txt) = a37825ad9d1704b9cb716a52148c637d26733898
SHA1 (patch-Modules_FindX11.cmake) = e5c9f5fd382effb85ae75fe603de00e5e58d788a
SHA1 (patch-Modules_Platform_SunOS.cmake) = 7a53ae3c902dd69ee22ef9fe0ae2a022d5284f16
-SHA1 (patch-Source_kwsys_SystemInformation.cxx) = a622ec58b95ad26141c49f1d1c6faad28c15a3b2
+SHA1 (patch-Source_kwsys_SystemInformation.cxx) = 7f20d4c8ecfd02a091d1bbfa33214cd77e0a7352
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
index d2004f7b012..69cd4ea4f68 100644
--- a/devel/cmake/patches/patch-Source_kwsys_SystemInformation.cxx
+++ b/devel/cmake/patches/patch-Source_kwsys_SystemInformation.cxx
@@ -1,4 +1,4 @@
-$NetBSD: patch-Source_kwsys_SystemInformation.cxx,v 1.2 2013/10/17 14:42:46 adam Exp $
+$NetBSD: patch-Source_kwsys_SystemInformation.cxx,v 1.3 2013/10/19 08:04:34 adam Exp $
Use correct cmake define.
@@ -9,7 +9,7 @@ Use correct cmake define.
#endif
-#ifdef __linux
-+#if defined(__linux) || defined(__NetBSD__)
++#if defined(__linux) || defined(__NetBSD__) || defined (__sun)
# include <fenv.h>
# include <sys/socket.h>
# include <netdb.h>