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>
This commit is contained in:
Heinz Wiesinger 2021-10-31 20:21:41 +01:00 committed by Willy Sudiarto Raharjo
parent 741c11f306
commit 999ae910b7
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 6 additions and 1 deletions

View File

@ -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 \