mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-04 00:56:07 +01:00
libraries/OpenSceneGraph: Updated for version 2.8.0
This commit is contained in:
parent
530df0a125
commit
60533a083b
4 changed files with 44 additions and 26 deletions
|
@ -2,15 +2,14 @@
|
||||||
|
|
||||||
# Slackware build script for OpenSceneGraph
|
# Slackware build script for OpenSceneGraph
|
||||||
|
|
||||||
# Written by Aleksandar B. Samardzic (<asamardzic@matf.bg.ac.yu>)
|
# Written by Aleksandar Samardzic <asamardzic@gmail.com>
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
PRGNAM=OpenSceneGraph
|
PRGNAM=OpenSceneGraph
|
||||||
VERSION=2.2.0
|
VERSION=${VERSION:-2.8.0}
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
TMP=${TMP:-/tmp/SBo}
|
TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
@ -18,10 +17,17 @@ OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
|
@ -29,21 +35,32 @@ rm -rf $PRGNAM-$VERSION
|
||||||
unzip $CWD/$PRGNAM-$VERSION.zip
|
unzip $CWD/$PRGNAM-$VERSION.zip
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
chmod -R u+w,go+r-w,a-s .
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
|
cmake \
|
||||||
|
-DCMAKE_C_FLAGS="$SLKCFLAGS" \
|
||||||
|
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
|
||||||
|
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr .
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
|
||||||
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
|
||||||
|
xargs strip --strip-unneeded 2> /dev/null
|
||||||
)
|
)
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a AUTHORS.txt ChangeLog LICENSE.txt NEWS.txt README.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a \
|
||||||
|
AUTHORS.txt ChangeLog LICENSE.txt NEWS.txt README.txt \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="OpenSceneGraph"
|
PRGNAM="OpenSceneGraph"
|
||||||
VERSION="2.2.0"
|
VERSION="2.8.0"
|
||||||
HOMEPAGE="http://www.openscenegraph.org/"
|
HOMEPAGE="http://www.openscenegraph.org/"
|
||||||
DOWNLOAD="http://www.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-2.2.0.zip"
|
DOWNLOAD=" http://www.openscenegraph.org/downloads/stable_releases/OpenSceneGraph-2.8/source/OpenSceneGraph-2.8.0.zip"
|
||||||
MD5SUM="5782f082e57a6d6874d81c88dfb480c6"
|
MD5SUM="c4c20b97274346701f6d57eab3e78bcd"
|
||||||
MAINTAINER="Aleksandar B. Samardzic"
|
MAINTAINER="Aleksandar Samardzic"
|
||||||
EMAIL="asamardzic@matf.bg.ac.yu"
|
EMAIL="asamardzic@gmail.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="dsomero"
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
The OpenSceneGraph is an OpenSource cross platform graphics toolkit for
|
The OpenSceneGraph is an open source cross platform graphics toolkit
|
||||||
the development of high performance graphics applications such as flight
|
for the development of high performance graphics applications such as
|
||||||
simulators, games, virtual reality and scientific visualization. Based
|
flight simulators, games, virtual reality and scientific
|
||||||
around the concept of a SceneGraph, it provides an object oriented
|
visualization. Based around the concept of a scene graph, it provides
|
||||||
framework on top of OpenGL freeing the developer from implementing and
|
an object oriented framework on top of OpenGL freeing the developer
|
||||||
optimizing low level graphics calls, and provides many additional
|
from implementing and optimizing low level graphics calls, and
|
||||||
utilities for rapid development of graphics applications.
|
provides many additional utilities for rapid development of graphics
|
||||||
|
applications.
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
|-----handy-ruler------------------------------------------------------|
|
|-----handy-ruler------------------------------------------------------|
|
||||||
OpenSceneGraph: OpenSceneGraph (3D graphics toolkit)
|
OpenSceneGraph: OpenSceneGraph (3D graphics toolkit)
|
||||||
OpenSceneGraph:
|
OpenSceneGraph:
|
||||||
OpenSceneGraph: The OpenSceneGraph is an open source high performance 3D
|
OpenSceneGraph: The OpenSceneGraph is an open source high performance
|
||||||
OpenSceneGraph: graphics toolkit, used by application developers in
|
OpenSceneGraph: 3D graphics toolkit, used by application developers in
|
||||||
OpenSceneGraph: fields such as visual simulation, games, virtual
|
OpenSceneGraph: fields such as visual simulation, games, virtual
|
||||||
OpenSceneGraph: reality, scientific visualization and modelling.
|
OpenSceneGraph: reality, scientific visualization and modelling.
|
||||||
OpenSceneGraph:
|
OpenSceneGraph:
|
||||||
|
|
Loading…
Reference in a new issue