summaryrefslogtreecommitdiff
path: root/geography/opencpn
diff options
context:
space:
mode:
authorbouyer <bouyer>2016-05-21 10:50:41 +0000
committerbouyer <bouyer>2016-05-21 10:50:41 +0000
commit2da411a828bf5efa57d19a5c6b7a573cf005f661 (patch)
treeae155d50ddf24b5d4748b1f182e6893de53680d4 /geography/opencpn
parentde4a6976cef16d0c204bf5a477638415f6fd9639 (diff)
downloadpkgsrc-2da411a828bf5efa57d19a5c6b7a573cf005f661.tar.gz
Make theses build (and run) on linux
Diffstat (limited to 'geography/opencpn')
-rw-r--r--geography/opencpn/distinfo15
-rw-r--r--geography/opencpn/patches/patch-CMakeLists.txt30
-rw-r--r--geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt14
-rw-r--r--geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake12
-rw-r--r--geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt23
-rw-r--r--geography/opencpn/patches/patch-plugins_demo_pi_sample_CMakeLists.txt13
-rw-r--r--geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt22
-rw-r--r--geography/opencpn/patches/patch-plugins_wmm_pi_CMakeLists.txt14
-rw-r--r--geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake12
9 files changed, 126 insertions, 29 deletions
diff --git a/geography/opencpn/distinfo b/geography/opencpn/distinfo
index 3520c6724d4..8571668d6bd 100644
--- a/geography/opencpn/distinfo
+++ b/geography/opencpn/distinfo
@@ -1,15 +1,18 @@
-$NetBSD: distinfo,v 1.7 2016/04/01 19:56:02 joerg Exp $
+$NetBSD: distinfo,v 1.8 2016/05/21 10:50:41 bouyer Exp $
SHA1 (OpenCPN-4.2.0-a555b4988b50f555be052394c184ef26c5ad0e8a.zip) = 39baa5f89ded9a5c62824e6e1445dbfc4f168578
RMD160 (OpenCPN-4.2.0-a555b4988b50f555be052394c184ef26c5ad0e8a.zip) = d344b9caffe40dabcad1d9ac148ce54d75f1573c
SHA512 (OpenCPN-4.2.0-a555b4988b50f555be052394c184ef26c5ad0e8a.zip) = 3ea2136ab777f711aeaa66f34722b3b091af91104ff60303b61c587f95354826afae6dbc8f6a9228357399ae36e96a34098596c0a278d2184ce59283c88f4051
Size (OpenCPN-4.2.0-a555b4988b50f555be052394c184ef26c5ad0e8a.zip) = 42779485 bytes
-SHA1 (patch-CMakeLists.txt) = 124a5f3836cf57b61c1452a5ded65dc7b16a4c69
+SHA1 (patch-CMakeLists.txt) = c61ed69c19d98bc5407cd28857b21d5158c9c1f9
SHA1 (patch-FindPortaudio.cmake) = e1bebe2203c6f3dc76f92ee5bdcb01eca66b6b9a
-SHA1 (patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake) = 9d6ade1c32f7d52b53848a2e382a4838d0240530
-SHA1 (patch-plugins_dashboard_pi_CMakeLists.txt) = f96234755ccdb0cf4d890b44c3983a71700e6de7
-SHA1 (patch-plugins_grib_pi_CMakeLists.txt) = fbac6b6da5c8efceb6931a6b41bec4a8ea7cbccb
-SHA1 (patch-plugins_wmm_pi_cmake_PluginConfigure.cmake) = 086de4106760df22b30330a40e3ec52d88d8b996
+SHA1 (patch-plugins_chartdldr_pi_CMakeLists.txt) = 52962f6feac45a766fc2dff08d2802e946ccfc85
+SHA1 (patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake) = 29fbfaee37e2a932b923df6ff7541dad37e14d65
+SHA1 (patch-plugins_dashboard_pi_CMakeLists.txt) = 76a6198e58f81c129f15fa6671da180c263c231e
+SHA1 (patch-plugins_demo_pi_sample_CMakeLists.txt) = 6fde2dae588e0d8250bd1e0d60a465fb20d9a599
+SHA1 (patch-plugins_grib_pi_CMakeLists.txt) = 49f997c27aa4710721d36945a681854579112a49
+SHA1 (patch-plugins_wmm_pi_CMakeLists.txt) = 88339a61dd4b78b823bbd34bd1b02863d150f046
+SHA1 (patch-plugins_wmm_pi_cmake_PluginConfigure.cmake) = f1c91cfa744ed76d938bfb5bdb4116df9f45604a
SHA1 (patch-src_chart1.cpp) = ae7c1d8a59c9a275914a613205de71e2dca89dc6
SHA1 (patch-src_chartimg.cpp) = f0e3841ab1920dcab74462a5007b74e905d794c0
SHA1 (patch-src_chcanv.cpp) = af76f36b6fd6d613720945195d5a24902012a020
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)
diff --git a/geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt
new file mode 100644
index 00000000000..5ee1fe245a4
--- /dev/null
+++ b/geography/opencpn/patches/patch-plugins_chartdldr_pi_CMakeLists.txt
@@ -0,0 +1,14 @@
+$NetBSD: patch-plugins_chartdldr_pi_CMakeLists.txt,v 1.1 2016/05/21 10:50:41 bouyer Exp $
+
+--- plugins/chartdldr_pi/CMakeLists.txt.orig 2016-05-21 11:06:35.652268145 +0200
++++ plugins/chartdldr_pi/CMakeLists.txt 2016-05-21 11:08:36.585112791 +0200
+@@ -130,6 +130,9 @@
+ ENDIF(QT_ANDROID)
+
+
++IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
++ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ INCLUDE("cmake/PluginInstall.cmake")
+ INCLUDE("cmake/PluginLocalization.cmake")
+ INCLUDE("cmake/PluginPackage.cmake")
diff --git a/geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake b/geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake
index 2b575bd772f..57d7d2aee28 100644
--- a/geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake
+++ b/geography/opencpn/patches/patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake
@@ -1,12 +1,16 @@
---- plugins/chartdldr_pi/cmake/PluginConfigure.cmake.orig 2016-02-10 17:29:03.000000000 +0100
-+++ plugins/chartdldr_pi/cmake/PluginConfigure.cmake 2016-02-10 17:29:36.000000000 +0100
-@@ -41,11 +41,9 @@
+$NetBSD: patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake,v 1.2 2016/05/21 10:50:41 bouyer Exp $
+
+--- plugins/chartdldr_pi/cmake/PluginConfigure.cmake.orig 2016-02-03 18:44:17.000000000 +0100
++++ plugins/chartdldr_pi/cmake/PluginConfigure.cmake 2016-05-21 11:07:31.835017011 +0200
+@@ -41,11 +41,12 @@
ADD_DEFINITIONS( "-Wall -Wno-unused-result -g -O2 -fexceptions" )
ENDIF(PROFILING)
- IF(NOT APPLE)
-- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
++ IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
- ELSE(NOT APPLE)
++ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ IF(APPLE)
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl -undefined dynamic_lookup")
- ENDIF(NOT APPLE)
diff --git a/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt
index 907f91e7eb8..5787011fd4a 100644
--- a/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt
+++ b/geography/opencpn/patches/patch-plugins_dashboard_pi_CMakeLists.txt
@@ -1,13 +1,24 @@
---- plugins/dashboard_pi/CMakeLists.txt.orig 2016-02-10 17:24:22.000000000 +0100
-+++ plugins/dashboard_pi/CMakeLists.txt 2016-02-10 17:24:27.000000000 +0100
-@@ -43,10 +43,9 @@
- #ADD_DEFINITIONS( "-Wall -ansi -pedantic -Wno-variadic-macros" )
- #TODO: Should we use -fno-stack-protector
+$NetBSD: patch-plugins_dashboard_pi_CMakeLists.txt,v 1.2 2016/05/21 10:50:41 bouyer Exp $
+
+--- plugins/dashboard_pi/CMakeLists.txt.orig 2016-02-03 18:44:17.000000000 +0100
++++ plugins/dashboard_pi/CMakeLists.txt 2016-05-21 11:08:40.892255884 +0200
+@@ -45,7 +45,9 @@
# IF NOT DEBUGGING CFLAGS="-O2 -march=native"
IF(NOT WIN32 AND NOT APPLE)
ADD_DEFINITIONS( "-Wall -O2 -fexceptions -fvisibility=hidden" )
- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
++ IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
++ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
ENDIF(NOT WIN32 AND NOT APPLE)
IF( APPLE )
- ADD_DEFINITIONS( "-O3 -fexceptions -fvisibility=hidden" )
+@@ -263,5 +265,8 @@
+ ENDIF(EXISTS ${PROJECT_SOURCE_DIR}/data)
+ ENDIF(WIN32)
+
++IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
++ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ INCLUDE("../PluginLocalization.cmake")
+ PLUGIN_LOCALIZATION()
diff --git a/geography/opencpn/patches/patch-plugins_demo_pi_sample_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_demo_pi_sample_CMakeLists.txt
new file mode 100644
index 00000000000..01dbb202d77
--- /dev/null
+++ b/geography/opencpn/patches/patch-plugins_demo_pi_sample_CMakeLists.txt
@@ -0,0 +1,13 @@
+$NetBSD: patch-plugins_demo_pi_sample_CMakeLists.txt,v 1.1 2016/05/21 10:50:41 bouyer Exp $
+
+--- plugins/demo_pi_sample/CMakeLists.txt.orig 2016-02-03 18:44:17.000000000 +0100
++++ plugins/demo_pi_sample/CMakeLists.txt 2016-05-21 11:07:56.299797236 +0200
+@@ -143,4 +143,7 @@
+ IF(WIN32)
+ INSTALL(TARGETS ${PACKAGE_NAME} RUNTIME DESTINATION "plugins")
+ ENDIF(WIN32)
+-
++
++IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
++ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
diff --git a/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt
index dfa38d0125d..8f4f8b09116 100644
--- a/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt
+++ b/geography/opencpn/patches/patch-plugins_grib_pi_CMakeLists.txt
@@ -1,10 +1,26 @@
---- plugins/grib_pi/CMakeLists.txt.orig 2016-02-10 17:26:23.000000000 +0100
-+++ plugins/grib_pi/CMakeLists.txt 2016-02-10 17:27:16.000000000 +0100
-@@ -44,7 +44,6 @@
+$NetBSD: patch-plugins_grib_pi_CMakeLists.txt,v 1.2 2016/05/21 10:50:41 bouyer Exp $
+
+--- plugins/grib_pi/CMakeLists.txt.orig 2016-02-03 18:44:17.000000000 +0100
++++ plugins/grib_pi/CMakeLists.txt 2016-05-21 11:08:48.884522634 +0200
+@@ -42,9 +42,11 @@
+ #ADD_DEFINITIONS( "-Wall -ansi -pedantic -Wno-variadic-macros" )
+ #TODO: Should we use -fno-stack-protector
# IF NOT DEBUGGING CFLAGS="-O2 -march=native"
++IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
++ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
IF(NOT WIN32 AND NOT APPLE)
ADD_DEFINITIONS( "-Wall -fexceptions -fvisibility=hidden" )
- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
ENDIF(NOT WIN32 AND NOT APPLE)
IF( APPLE )
+@@ -258,5 +260,8 @@
+
+ ENDIF(WIN32)
+
++IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
++ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ INCLUDE("../PluginLocalization.cmake")
+ PLUGIN_LOCALIZATION()
diff --git a/geography/opencpn/patches/patch-plugins_wmm_pi_CMakeLists.txt b/geography/opencpn/patches/patch-plugins_wmm_pi_CMakeLists.txt
new file mode 100644
index 00000000000..b3007f324cf
--- /dev/null
+++ b/geography/opencpn/patches/patch-plugins_wmm_pi_CMakeLists.txt
@@ -0,0 +1,14 @@
+$NetBSD: patch-plugins_wmm_pi_CMakeLists.txt,v 1.1 2016/05/21 10:50:41 bouyer Exp $
+
+--- plugins/wmm_pi/CMakeLists.txt.orig 2016-05-21 11:06:35.658268321 +0200
++++ plugins/wmm_pi/CMakeLists.txt 2016-05-21 11:08:53.418675661 +0200
+@@ -58,6 +58,9 @@
+ TARGET_LINK_LIBRARIES( ${PACKAGE_NAME} "-lgnustl_shared")
+ ENDIF(QT_ANDROID)
+
++IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
++ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-fPIC")
++ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ INCLUDE("cmake/PluginInstall.cmake")
+ INCLUDE("cmake/PluginLocalization.cmake")
+ INCLUDE("cmake/PluginPackage.cmake")
diff --git a/geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake b/geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake
index 6909cd6513b..3cceb0bfe38 100644
--- a/geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake
+++ b/geography/opencpn/patches/patch-plugins_wmm_pi_cmake_PluginConfigure.cmake
@@ -1,12 +1,16 @@
---- plugins/wmm_pi/cmake/PluginConfigure.cmake.orig 2016-02-10 17:29:03.000000000 +0100
-+++ plugins/wmm_pi/cmake/PluginConfigure.cmake 2016-02-10 17:30:10.000000000 +0100
-@@ -41,11 +41,9 @@
+$NetBSD: patch-plugins_wmm_pi_cmake_PluginConfigure.cmake,v 1.2 2016/05/21 10:50:41 bouyer Exp $
+
+--- plugins/wmm_pi/cmake/PluginConfigure.cmake.orig 2016-02-03 18:44:17.000000000 +0100
++++ plugins/wmm_pi/cmake/PluginConfigure.cmake 2016-05-21 11:07:42.654361498 +0200
+@@ -41,11 +41,12 @@
ADD_DEFINITIONS( "-Wall -Wno-unused-result -g -O2 -fexceptions" )
ENDIF(PROFILING)
- IF(NOT APPLE)
-- SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
++ IF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bsymbolic")
- ELSE(NOT APPLE)
++ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*Linux")
+ IF(APPLE)
SET(CMAKE_SHARED_LINKER_FLAGS "-Wl -undefined dynamic_lookup")
- ENDIF(NOT APPLE)