From 56ebcbc4ba209a88354264a68c4ab826ff860784 Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Tue, 19 Mar 2019 15:49:36 +1000 Subject: graphics/vsxu: Fix plugins location Signed-off-by: Christoph Willing --- graphics/vsxu/00_libdir.diff | 11 +++++++++++ graphics/vsxu/vsxu.SlackBuild | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 graphics/vsxu/00_libdir.diff (limited to 'graphics') diff --git a/graphics/vsxu/00_libdir.diff b/graphics/vsxu/00_libdir.diff new file mode 100644 index 0000000000..c9becae276 --- /dev/null +++ b/graphics/vsxu/00_libdir.diff @@ -0,0 +1,11 @@ +--- vsx_platform.h.orig 2019-03-19 10:38:34.582591102 +1000 ++++ vsx_platform.h 2019-03-19 11:30:54.854922482 +1000 +@@ -66,7 +66,7 @@ + #define PLATFORM_NAME "GNU / Linux" + #define PLATFORM_FAMILY PLATFORM_FAMILY_UNIX + #define PLATFORM_SHARED_FILES vsx_string<>(get_exec_path().c_str()) + "/../share/vsxu/" +- #define VSXU_PLUGIN_LOCATION vsx_string<>(get_exec_path().c_str()) + "/../lib/vsxu/plugins" ++ #define VSXU_PLUGIN_LOCATION vsx_string<>(get_exec_path().c_str()) + "/../lib64/vsxu/plugins" + #define PLATFORM_DLL_SUFFIX ".so" + #ifdef PLATFORM_SHARED_FILES_STL + #define PLATFORM_SHARED_FILES_STLSTRING get_exec_path() + std::string("/../share/vsxu/") diff --git a/graphics/vsxu/vsxu.SlackBuild b/graphics/vsxu/vsxu.SlackBuild index 4e71eaa305..3323290a1b 100644 --- a/graphics/vsxu/vsxu.SlackBuild +++ b/graphics/vsxu/vsxu.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=vsxu VERSION=${VERSION:-0.6.3.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,6 +69,13 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +if [ "$ARCH" = "x86_64" ]; then + patch -p0 < $CWD/00_libdir.diff + for f in $(find . -name \*.desktop.in) ; do + sed -i -e 's/lib/lib64/' $f + done +fi + mkdir -p build cd build cmake \ -- cgit v1.2.3