summaryrefslogtreecommitdiff
path: root/geography/opencpn/patches/patch-CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'geography/opencpn/patches/patch-CMakeLists.txt')
-rw-r--r--geography/opencpn/patches/patch-CMakeLists.txt30
1 files changed, 24 insertions, 6 deletions
diff --git a/geography/opencpn/patches/patch-CMakeLists.txt b/geography/opencpn/patches/patch-CMakeLists.txt
index d6189b13dd2..46c7c40ec14 100644
--- a/geography/opencpn/patches/patch-CMakeLists.txt
+++ b/geography/opencpn/patches/patch-CMakeLists.txt
@@ -1,8 +1,24 @@
-$NetBSD: patch-CMakeLists.txt,v 1.3 2016/03/14 11:01:06 bouyer Exp $
+$NetBSD: patch-CMakeLists.txt,v 1.4 2016/05/21 10:50:41 bouyer Exp $
--- CMakeLists.txt.orig 2016-02-03 18:44:17.000000000 +0100
-+++ CMakeLists.txt 2016-02-17 17:40:51.000000000 +0100
-@@ -282,7 +282,7 @@
++++ CMakeLists.txt 2016-05-21 12:06:28.121554591 +0200
+@@ -81,7 +81,6 @@
+ # SET (PACKAGE_DEPS "wxGTK mesa-libGLU mesa-libGL gettext zlib bzip2 portaudio")
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "x86_64")
+- SET (LIB_INSTALL_DIR "lib64")
+ ELSE (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "i386")
+ SET (LIB_INSTALL_DIR "lib")
+@@ -92,7 +91,6 @@
+ # SET (PACKAGE_DEPS "libwx_baseu-2_8-0-wxcontainer MesaGLw libbz2-1 portaudio")
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "x86_64")
+- SET (LIB_INSTALL_DIR "lib64")
+ ELSE (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET (ARCH "i386")
+ SET (LIB_INSTALL_DIR "lib")
+@@ -282,7 +280,7 @@
# Search for opengles, short of running a program to test the speed
# of acceleration, I simply use gles on "native linux" arm systems
@@ -11,14 +27,16 @@ $NetBSD: patch-CMakeLists.txt,v 1.3 2016/03/14 11:01:06 bouyer Exp $
find_path(OPENGLESv1_INCLUDE_DIR GLES/gl.h )
IF (OPENGLESv1_INCLUDE_DIR)
MESSAGE (STATUS "Found OpenGLESv1")
-@@ -1755,9 +1755,9 @@
+@@ -1755,9 +1753,10 @@
# Certain older Cmake FindGTK2 modules ( e.g. cmake-2.8.0-2) do not yield all of the required link libraries
# So, add them manually. These declarations may be redundant in some architectures, but do no harm.
-IF(UNIX)
-+IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
- TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} dl )
+-TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} dl )
-ENDIF(UNIX)
++IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} dl )
++ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--export-dynamic")
+ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
IF(QT_LINUX)