diff options
author | bouyer <bouyer@pkgsrc.org> | 2018-07-19 17:58:57 +0000 |
---|---|---|
committer | bouyer <bouyer@pkgsrc.org> | 2018-07-19 17:58:57 +0000 |
commit | 43f171ef69b5fd0fb8dbf80311310e0224332393 (patch) | |
tree | c6fd2fa3af5b09657180a1415b8641d7cdd3e724 /geography/opencpn | |
parent | 54b786790c485419304ba3a36c2e7e6121a82276 (diff) | |
download | pkgsrc-43f171ef69b5fd0fb8dbf80311310e0224332393.tar.gz |
Do not include buildlink3 files already inclued by wxGTK30/buildlink3.mk
(especially, remove gtk2 buildlink3).
Make opencpn build with gtk3
Conservatively bump PKGREVISIONs
Diffstat (limited to 'geography/opencpn')
-rw-r--r-- | geography/opencpn/Makefile | 13 | ||||
-rw-r--r-- | geography/opencpn/distinfo | 4 | ||||
-rw-r--r-- | geography/opencpn/patches/patch-CMakeLists.txt | 27 |
3 files changed, 27 insertions, 17 deletions
diff --git a/geography/opencpn/Makefile b/geography/opencpn/Makefile index 9088ed46325..116ebde7d68 100644 --- a/geography/opencpn/Makefile +++ b/geography/opencpn/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.23 2018/04/29 21:31:42 adam Exp $ +# $NetBSD: Makefile,v 1.24 2018/07/19 17:58:57 bouyer Exp $ DISTNAME= OpenCPN-4.8.2 -PKGREVISION= 4 +PKGREVISION= 5 PKGNAME= ${DISTNAME:S/OpenCPN/opencpn/} CATEGORIES= geography MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenCPN/} @@ -14,9 +14,9 @@ HOMEPAGE= http://www.opencpn.org/ COMMENT= Concise ChartPlotter/Navigator LICENSE= gnu-gpl-v2 -USE_LANGUAGES= c c++ -USE_TOOLS= gettext -USE_CMAKE= yes +USE_LANGUAGES= c c++ +USE_TOOLS+= gettext pkg-config +USE_CMAKE= yes CMAKE_ARGS+= -DPREFIX:PATH=${PREFIX} -DPREFIX_PLUGINS:PATH=${PREFIX}/lib/opencpn CMAKE_ARGS+= -DBUNDLE_DOCS=ON -DBUNDLE_GSHHS=CRUDE -DBUNDLE_TCDATA=ON @@ -41,10 +41,7 @@ SUBST_SED.prefix= -e s,"/usr/local,"${PREFIX},g LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS} .include "../../devel/cmake/buildlink3.mk" -.include "../../x11/gtk2/buildlink3.mk" .include "../../x11/wxGTK30/buildlink3.mk" -.include "../../graphics/MesaLib/buildlink3.mk" -.include "../../graphics/glu/buildlink3.mk" .include "../../graphics/libexif/buildlink3.mk" .include "../../archivers/bzip2/buildlink3.mk" .include "../../audio/portaudio-devel/buildlink3.mk" diff --git a/geography/opencpn/distinfo b/geography/opencpn/distinfo index a4f2cdd2203..9bc5dd84b22 100644 --- a/geography/opencpn/distinfo +++ b/geography/opencpn/distinfo @@ -1,10 +1,10 @@ -$NetBSD: distinfo,v 1.19 2018/07/03 15:14:15 bouyer Exp $ +$NetBSD: distinfo,v 1.20 2018/07/19 17:58:57 bouyer Exp $ SHA1 (OpenCPN-4.8.2.zip) = 9547a99c0de739fb0f4953d37bb738ed651f5c62 RMD160 (OpenCPN-4.8.2.zip) = f217d07cc639292e657b0f89f96daa12cab2a355 SHA512 (OpenCPN-4.8.2.zip) = 53635bcb77d96171afecdbf6bb987256016dce9019eca6c644500e14b820ed0843be6cdc3c0567b537eb1a65dbee4cfcaa73fa13361d6deb1ed0aa585d0e6cba Size (OpenCPN-4.8.2.zip) = 61827184 bytes -SHA1 (patch-CMakeLists.txt) = c20b25c64790f5a595a5ef2940f430e588ffdf14 +SHA1 (patch-CMakeLists.txt) = 6d11df2c83e445050c91e23ec6657798726b4338 SHA1 (patch-FindPortaudio.cmake) = e1bebe2203c6f3dc76f92ee5bdcb01eca66b6b9a SHA1 (patch-plugins_chartdldr_pi_CMakeLists.txt) = 52962f6feac45a766fc2dff08d2802e946ccfc85 SHA1 (patch-plugins_chartdldr_pi_cmake_PluginConfigure.cmake) = 29fbfaee37e2a932b923df6ff7541dad37e14d65 diff --git a/geography/opencpn/patches/patch-CMakeLists.txt b/geography/opencpn/patches/patch-CMakeLists.txt index a821ca3eb1b..5a3d3a48ef5 100644 --- a/geography/opencpn/patches/patch-CMakeLists.txt +++ b/geography/opencpn/patches/patch-CMakeLists.txt @@ -1,8 +1,8 @@ -$NetBSD: patch-CMakeLists.txt,v 1.6 2017/04/18 13:31:55 bouyer Exp $ +$NetBSD: patch-CMakeLists.txt,v 1.7 2018/07/19 17:58:57 bouyer Exp $ ---- CMakeLists.txt.orig 2017-04-02 05:17:09.000000000 +0200 -+++ CMakeLists.txt 2017-04-18 15:03:46.000000000 +0200 -@@ -65,8 +65,21 @@ +--- CMakeLists.txt.orig 2018-02-07 12:08:26.000000000 +0100 ++++ CMakeLists.txt 2018-07-19 17:20:24.093239101 +0200 +@@ -91,8 +91,21 @@ # Based on code from nohal IF (NOT WIN32) # default @@ -25,7 +25,7 @@ $NetBSD: patch-CMakeLists.txt,v 1.6 2017/04/18 13:31:55 bouyer Exp $ IF (EXISTS /etc/debian_version) SET (PACKAGE_FORMAT "DEB") SET (PACKAGE_DEPS "libc6, libwxgtk3.0-0, wx3.0-i18n, libglu1-mesa (>= 7.0.0), libgl1-mesa-glx (>= 7.0.0), zlib1g, bzip2, libtinyxml2.6.2, libportaudio2") -@@ -99,7 +112,6 @@ +@@ -125,7 +138,6 @@ ELSE (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*") IF (CMAKE_SIZEOF_VOID_P MATCHES "8") SET (ARCH "x86_64") @@ -33,7 +33,7 @@ $NetBSD: patch-CMakeLists.txt,v 1.6 2017/04/18 13:31:55 bouyer Exp $ ELSE (CMAKE_SIZEOF_VOID_P MATCHES "8") SET (ARCH "i386") SET (LIB_INSTALL_DIR "lib") -@@ -318,7 +330,7 @@ +@@ -344,7 +356,7 @@ # Search for opengles, short of running a program to test the speed # of acceleration, I simply use gles on "native linux" arm systems @@ -42,7 +42,20 @@ $NetBSD: patch-CMakeLists.txt,v 1.6 2017/04/18 13:31:55 bouyer Exp $ find_path(OPENGLESv1_INCLUDE_DIR GLES/gl.h ) IF (OPENGLESv1_INCLUDE_DIR) MESSAGE (STATUS "Found OpenGLESv1") -@@ -1861,10 +1873,10 @@ +@@ -868,7 +880,11 @@ + + + IF(NOT WIN32 AND NOT APPLE AND NOT QT_ANDROID) +- OPTION(OCPN_FORCE_GTK3 "Force the build to use GTK3" OFF) ++ IF(CMAKE_SYSTEM_NAME MATCHES ".*NetBSD") ++ OPTION(OCPN_FORCE_GTK3 "Force the build to use GTK3" ON) ++ ELSE(CMAKE_SYSTEM_NAME MATCHES ".*NetBSD") ++ OPTION(OCPN_FORCE_GTK3 "Force the build to use GTK3" OFF) ++ ENDIF(CMAKE_SYSTEM_NAME MATCHES ".*NetBSD") + + IF(NOT OCPN_FORCE_GTK3) + FIND_PACKAGE(GTK2) +@@ -1919,10 +1935,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. |