aboutsummaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-10-31 20:21:41 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-11-05 22:56:47 +0700
commit999ae910b7173625133316fa30bc4137dc4ded5a (patch)
tree1bb6e2863257ef9798bc03bf06b6b1107ec21f4a /libraries
parent741c11f306c69408200dc69b174521023a870c44 (diff)
libraries/OpenSceneGraph: Move bins from /usr/share and fix libdir
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/OpenSceneGraph/OpenSceneGraph.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/libraries/OpenSceneGraph/OpenSceneGraph.SlackBuild b/libraries/OpenSceneGraph/OpenSceneGraph.SlackBuild
index e569d3d1c8518..3a5fd0e54ecf2 100644
--- a/libraries/OpenSceneGraph/OpenSceneGraph.SlackBuild
+++ b/libraries/OpenSceneGraph/OpenSceneGraph.SlackBuild
@@ -10,7 +10,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=OpenSceneGraph
VERSION=${VERSION:-3.6.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -75,12 +75,17 @@ cd build
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS -std=c++11" \
-DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_POSTFIX=$LIBDIRSUFFIX \
-DCMAKE_BUILD_TYPE=Release \
$occ \
-DBUILD_OSG_EXAMPLES=ON \
make
make install DESTDIR=$PKG
+
+ # No binaries in /usr/share. Move examples to /usr/bin
+ mv $PKG/usr/share/OpenSceneGraph/bin/* $PKG/usr/bin/
+ rm -rf $PKG/usr/share
cd ..
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \