diff --git a/srcpkgs/OpenCPN-doc b/srcpkgs/OpenCPN-doc new file mode 120000 index 00000000000..b9fdd144a36 --- /dev/null +++ b/srcpkgs/OpenCPN-doc @@ -0,0 +1 @@ +OpenCPN \ No newline at end of file diff --git a/srcpkgs/OpenCPN-tcdata b/srcpkgs/OpenCPN-tcdata new file mode 120000 index 00000000000..b9fdd144a36 --- /dev/null +++ b/srcpkgs/OpenCPN-tcdata @@ -0,0 +1 @@ +OpenCPN \ No newline at end of file diff --git a/srcpkgs/OpenCPN/patches/musl.patch b/srcpkgs/OpenCPN/patches/musl.patch new file mode 100644 index 00000000000..6499c316fbb --- /dev/null +++ b/srcpkgs/OpenCPN/patches/musl.patch @@ -0,0 +1,15 @@ +--- CMakeLists.txt 2018-11-07 04:14:41.000000000 +0100 ++++ - 2018-11-26 08:12:38.571296363 +0100 +@@ -1253,8 +1253,10 @@ + ) + + IF(NOT WIN32 AND NOT APPLE AND NOT QT_ANDROID) +- SET(HDRS ${HDRS} include/crashprint.h ) +- SET(SRCS ${SRCS} src/crashprint.cpp) ++ IF(OCPN_USE_CRASHREPORT) ++ SET(HDRS ${HDRS} include/crashprint.h ) ++ SET(SRCS ${SRCS} src/crashprint.cpp) ++ ENDIF(OCPN_USE_CRASHREPORT) + ENDIF(NOT WIN32 AND NOT APPLE AND NOT QT_ANDROID) + + IF(QT_ANDROID) diff --git a/srcpkgs/OpenCPN/template b/srcpkgs/OpenCPN/template new file mode 100644 index 00000000000..5193ef47f50 --- /dev/null +++ b/srcpkgs/OpenCPN/template @@ -0,0 +1,56 @@ +# Template file for 'OpenCPN' +pkgname=OpenCPN +version=4.8.8 +revision=1 +build_style=cmake +configure_args="-DBUNDLE_GSHHS=NONE -DBUNDLE_TCDATA=ON + -DBUNDLE_DOCS=ON -DOCPN_FORCE_GTK3=ON + -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 + -DwxWidgets_CONFIG_OPTIONS=--prefix=${XBPS_CROSS_BASE}/usr + -DOCPN_USE_CRASHREPORT=$(vopt_if crashreport) + -DUSE_BUNDLED_LIBS=OFF" +hostmakedepends="pkg-config" +makedepends="gtk+3-devel libcurl-devel portaudio-devel tinyxml-devel + wxWidgets-gtk3-devel $(vopt_if exif 'libexif-devel') glu-devel + $(vopt_if libarchive 'libarchive-devel' 'libunarr-devel') $(vopt_if lzma 'liblzma-devel')" +depends="gpsd hicolor-icon-theme OpenCPN-tcdata-${version}_${revision} + OpenCPN-gshhs-crude" +short_desc="Concise ChartPlotter/Navigator" +maintainer="John " +license="GPL-2.0-or-later, GPL-3.0-or-later, LGPL-2.0-or-later, MIT, wxWidgets, JasPer-2.0, BSD-3-Clause" +homepage="https://opencpn.org/" +distfiles="https://github.com/OpenCPN/OpenCPN/archive/v${version}.tar.gz" +checksum=095097748ec45fcb9e9595ee86493ab629fad1a363eb5ec9b2ff82f0512fe875 +nocross="CMake doesn't find wx-wdigets" + +build_options="lzma libarchive exif crashreport" +build_options_default="lzma libarchive exif" +desc_option_crashreport="Enable displaying of crashreports" +desc_option_lzma="Enable support for reading compressed charts" +desc_option_exif="Enable reading of exif data of Images" +desc_option_libarchive="Use libarchive instead of bundled unarr" + +case $XBPS_TARGET_MACHINE in + *-musl);; + *) build_options_default+=" crashreport";; +esac + +post_install() { + vlicense src/glshim/LICENSE LICENSE.glshim +} + +OpenCPN-doc_package() { + short_desc+=" - Documentation" + pkg_install() { + vmove usr/share/opencpn/doc + vmove usr/share/opencpn/plugins/chartdldr_pi/data/doc + vmove usr/share/opencpn/CoC-909_2013-InlandECDIS_20170308s.pdf + } +} + +OpenCPN-tcdata_package() { + short_desc="World shoreline data for OpenCPN Navigation software" + pkg_install() { + vmove usr/share/opencpn/tcdata + } +}