Step 2: base dep: devel/cmake

This commit is contained in:
Ben Gras 2014-06-30 16:18:03 +00:00 committed by Lionel Sambuc
parent 24b42dab6b
commit 6f25e30c5d
6 changed files with 57 additions and 0 deletions

View File

@ -34,6 +34,13 @@ LDFLAGS.SunOS+= -lsocket -lnsl
CONFIGURE_ARGS+= --parallel=${MAKE_JOBS:Q}
.endif
.if ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix"
LDFLAGS+= -lbz2 -llzma
post-extract:
${CP} ${FILESDIR}/Minix.cmake ${WRKSRC}/Modules/Platform/
.endif # ${OPSYS} == "NetBSD" && ${OS_VARIANT} == "Minix"
PLIST_SUBST+= CMAKE_API=${CMAKE_API}
# for Source/cmDependsJavaParser.cxx

View File

@ -1727,6 +1727,7 @@ share/cmake-${CMAKE_API}/Modules/Platform/Linux-XL-CXX.cmake
share/cmake-${CMAKE_API}/Modules/Platform/Linux-XL-Fortran.cmake
share/cmake-${CMAKE_API}/Modules/Platform/Linux-como.cmake
share/cmake-${CMAKE_API}/Modules/Platform/Linux.cmake
share/cmake-${CMAKE_API}/Modules/Platform/Minix.cmake
share/cmake-${CMAKE_API}/Modules/Platform/MP-RAS.cmake
share/cmake-${CMAKE_API}/Modules/Platform/MirBSD.cmake
share/cmake-${CMAKE_API}/Modules/Platform/NetBSD.cmake

View File

@ -19,3 +19,5 @@ SHA1 (patch-Utilities_cmjsoncpp_src_lib__json_json__writer.cpp) = 52c4cb0e8f097a
SHA1 (patch-aa) = bab24334e025b7c1bf7caa2e69d6a439cc421ea9
SHA1 (patch-ab) = d1b39bdcd654f2a4fc63463cd20de656cce3cf8f
SHA1 (patch-ac) = b5cedc6a2354beaf08e06d416c150154a7dc1f05
SHA1 (patch-zz-minix-a) = 7d1fa8e45289e9c1ea3b8ad330c2093a83985e8d
SHA1 (patch-zz-minix-b) = d5c40a3aa39c8b09b3de0cb624b5b5a3be6b5126

View File

@ -0,0 +1,11 @@
SET(CMAKE_DL_LIBS "")
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") # : or empty
SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
INCLUDE(Platform/UnixPaths)

View File

@ -0,0 +1,23 @@
--- Source/kwsys/SystemInformation.cxx.orig Thu Apr 23 08:25:23 2015
+++ Source/kwsys/SystemInformation.cxx Thu Apr 23 08:25:29 2015
@@ -81,7 +81,7 @@
# include <errno.h> // extern int errno;
#endif
-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
+#if defined(__OpenBSD__) || defined(__minix) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# include <sys/param.h>
# include <sys/sysctl.h>
# include <sys/socket.h>
@@ -3703,7 +3703,11 @@
// install ours
struct sigaction sa;
sa.sa_sigaction=(SigAction)StacktraceSignalHandler;
+# if defined(__minix)
+ sa.sa_flags=SA_RESETHAND;
+# else
sa.sa_flags=SA_SIGINFO|SA_RESETHAND;
+# endif /* defined(__minix) */
# ifdef SA_RESTART
sa.sa_flags|=SA_RESTART;
# endif

View File

@ -0,0 +1,13 @@
$NetBSD$
--- Source/kwsys/ProcessUNIX.c.orig Wed Nov 3 19:58:30 2010
+++ Source/kwsys/ProcessUNIX.c
@@ -111,7 +111,7 @@ static inline void kwsysProcess_usleep(unsigned int ms
#endif
/* Some platforms do not have siginfo on their signal handlers. */
-#if defined(SA_SIGINFO) && !defined(__BEOS__)
+#if defined(SA_SIGINFO) && !defined(__BEOS__) && !defined(__minix)
# define KWSYSPE_USE_SIGINFO 1
#endif