mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
libraries/osggis: Added to 12.0 repository
This commit is contained in:
parent
705d15ea3b
commit
9613402a98
4 changed files with 92 additions and 0 deletions
10
libraries/osggis/README
Normal file
10
libraries/osggis/README
Normal file
|
@ -0,0 +1,10 @@
|
|||
osgGIS a software package that enables you to access GIS vector data
|
||||
and visualize it in an OpenSceneGraph application. With osgGIS, you
|
||||
could:
|
||||
* Read vector data from a variety of sources and generate OSG
|
||||
geometry
|
||||
* Create custom geometry compilation scripts by using built-in
|
||||
filters or by building your own custom filters
|
||||
* Create scalable, paged data layers from GIS vector data
|
||||
|
||||
osgGIS is dependent upon OpenSceneGraph and gdal packages.
|
55
libraries/osggis/osggis.SlackBuild
Normal file
55
libraries/osggis/osggis.SlackBuild
Normal file
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for osgGIS
|
||||
|
||||
# Written by Aleksandar B. Samardzic <asamardzic@matf.bg.ac.yu>
|
||||
|
||||
PRGNAM=osggis
|
||||
VERSION=T2007-10-12_V0.1.0.r41
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
PKG_VERSION=$(echo $VERSION | tr - _)
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
cmake -DCMAKE_INSTALL_PREFIX=/usr .
|
||||
make
|
||||
make install DESTDIR=$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 "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERSION
|
||||
cp -a LICENSE.txt README.txt $PKG/usr/doc/$PRGNAM-$PKG_VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKG_VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERSION-$ARCH-$BUILD$TAG.tgz
|
8
libraries/osggis/osggis.info
Normal file
8
libraries/osggis/osggis.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="osggis"
|
||||
VERSION="T2007_10_12_V0.1.0.r41"
|
||||
HOMEPAGE="http://www.osggis.org/"
|
||||
DOWNLOAD="http://wush.net/websvn/osggis/dl.php?repname=osggis&path=%2Ftags%2FT2007-10-12_V0.1.0%2F&rev=0&isdir=1"
|
||||
MD5SUM="94745a485e8573b0d195df69fab08db1"
|
||||
MAINTAINER="Aleksandar B. Samardzic"
|
||||
EMAIL="asamardzic@matf.bg.ac.yu"
|
||||
APPROVED="rworkman"
|
19
libraries/osggis/slack-desc
Normal file
19
libraries/osggis/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
osggis: osgGIS (GIS integration library for OpenSceneGraph)
|
||||
osggis:
|
||||
osggis: The osgGIS project aims to make it easier to access,
|
||||
osggis: visualize, and query GIS vector data in OpenSceneGraph
|
||||
osggis: applications.
|
||||
osggis:
|
||||
osggis: osgGIS homepage is:
|
||||
osggis: http://www.osggis.org/
|
||||
osggis:
|
||||
osggis:
|
||||
osggis:
|
Loading…
Reference in a new issue