aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gis/opencpn-plugin-oesenc/multilib-strict.patch14
-rw-r--r--gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.SlackBuild7
-rw-r--r--gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.info6
3 files changed, 23 insertions, 4 deletions
diff --git a/gis/opencpn-plugin-oesenc/multilib-strict.patch b/gis/opencpn-plugin-oesenc/multilib-strict.patch
new file mode 100644
index 0000000000000..d1a80d8fc1ee9
--- /dev/null
+++ b/gis/opencpn-plugin-oesenc/multilib-strict.patch
@@ -0,0 +1,14 @@
+diff -up oesenc_pi-2.9.1601/CMakeLists.txt.orig1 oesenc_pi-2.9.1601/CMakeLists.txt
+--- oesenc_pi-2.9.1601/CMakeLists.txt.orig1 2019-04-03 20:56:51.982839060 -0500
++++ oesenc_pi-2.9.1601/CMakeLists.txt 2019-04-03 20:58:02.487835992 -0500
+@@ -99,6 +99,10 @@ IF (NOT WIN32)
+ ENDIF (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*")
+ ENDIF (EXISTS /etc/debian_version)
+
++ IF (EXISTS /etc/slackware-version)
++ SET (LIB_INSTALL_DIR "lib${LIB_SUFFIX}")
++ ENDIF (EXISTS /etc/slackware-version)
++
+ IF (EXISTS /etc/redhat-release)
+ SET (PACKAGE_FORMAT "RPM")
+ SET (PACKAGE_DEPS "opencpn")
diff --git a/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.SlackBuild b/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.SlackBuild
index 60bfef587b949..9d6ed6658d267 100644
--- a/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.SlackBuild
+++ b/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=opencpn-plugin-oesenc
-VERSION=${VERSION:-2.1.0}
+VERSION=${VERSION:-2.9.1601}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -74,6 +74,9 @@ find -L . \
sed -i -e 's/^ SET (LIB_INSTALL_DIR "lib")/ SET (LIB_INSTALL_DIR "lib${LIB_SUFFIX}")/' \
cmake/PluginInstall.cmake
+# fix shared object installing to wrong directory
+patch -p1 < $CWD/multilib-strict.patch
+
mkdir -p build
cd build
cmake \
@@ -82,6 +85,8 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=/usr/man \
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+ -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DCMAKE_BUILD_TYPE=Release ..
make VERBOSE=1
diff --git a/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.info b/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.info
index 169316277ba5e..0a1441d693dc9 100644
--- a/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.info
+++ b/gis/opencpn-plugin-oesenc/opencpn-plugin-oesenc.info
@@ -1,8 +1,8 @@
PRGNAM="opencpn-plugin-oesenc"
-VERSION="2.1.0"
+VERSION="2.9.1601"
HOMEPAGE="https://opencpn.org/OpenCPN/plugins/oesenc.html"
-DOWNLOAD="https://www.dropbox.com/s/uyq7up8ee61xl19/oesenc_pi-2.1.0.tar.gz"
-MD5SUM="8aeb8c117bfa57cfa6086b4d23f843c1"
+DOWNLOAD="https://www.dropbox.com/s/jflzm9ds8nyxlld/oesenc_pi-2.9.1601.tar.gz"
+MD5SUM="5ee776340af240b876187a44d2825fb5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="opencpn"