mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/gdal: Added to 12.0 repository
This commit is contained in:
parent
6ab04aae9f
commit
b934b98ab3
4 changed files with 108 additions and 0 deletions
9
libraries/gdal/README
Normal file
9
libraries/gdal/README
Normal file
|
@ -0,0 +1,9 @@
|
|||
GDAL is a library for reading and writing raster geospatial data
|
||||
formats, and is released under an X/MIT style Open Source license by
|
||||
the Open Source Geospatial Foundation. As a library, it presents a
|
||||
single abstract data model to the calling application for all
|
||||
supported formats. It may also be built with a variety of useful
|
||||
command-line utilities for data translation and processing.
|
||||
|
||||
The related OGR library (which is part of the GDAL source tree)
|
||||
provides a similar capability for simple features vector data.
|
72
libraries/gdal/gdal.SlackBuild
Normal file
72
libraries/gdal/gdal.SlackBuild
Normal file
|
@ -0,0 +1,72 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for GDAL
|
||||
|
||||
# Written by Aleksandar B. Samardzic <asamardzic@matf.bg.ac.yu>
|
||||
|
||||
PRGNAM=gdal
|
||||
VERSION=1.4.2
|
||||
ARCH=${ARCH:-i486}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
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 $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-s .
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--enable-static=no
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
( cd $PKG/usr/man
|
||||
find . -type f -exec gzip -9 {} \;
|
||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
)
|
||||
|
||||
( cd $PKG
|
||||
# Remove 'special' files
|
||||
find . -name perllocal.pod \
|
||||
-o -name ".packlist" \
|
||||
-o -name "*.bs" \
|
||||
| xargs rm -f
|
||||
)
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a COMMITERS HOWTO-RELEASE NEWS PROVENANCE.TXT VERSION \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$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-$VERSION-$ARCH-$BUILD$TAG.tgz
|
8
libraries/gdal/gdal.info
Normal file
8
libraries/gdal/gdal.info
Normal file
|
@ -0,0 +1,8 @@
|
|||
PRGNAM="gdal"
|
||||
VERSION="1.4.2"
|
||||
HOMEPAGE="http://www.gdal.org/"
|
||||
DOWNLOAD="http://download.osgeo.org/gdal/gdal-1.4.2.tar.gz"
|
||||
MD5SUM="dedf5ff6a766e85b9a2b5c54c1c59221"
|
||||
MAINTAINER="Aleksandar B. Samardzic"
|
||||
EMAIL="asamardzic@matf.bg.ac.yu"
|
||||
APPROVED="rworkman"
|
19
libraries/gdal/slack-desc
Normal file
19
libraries/gdal/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------------------------------------------------------|
|
||||
gdal: GDAL (translator library for raster geospatial data formats)
|
||||
gdal:
|
||||
gdal: The Geospatial Data Abstraction Library (GDAL) is a unifying
|
||||
gdal: C/C++ API for accessing raster geospatial data, and currently
|
||||
gdal: includes formats like GeoTIFF, Erdas Imagine, Arc/Info Binary,
|
||||
gdal: CEOS, DTED, GXF, and SDTS.
|
||||
gdal:
|
||||
gdal: GDAL home page is:
|
||||
gdal: http://www.gdal.org/
|
||||
gdal:
|
||||
gdal:
|
Loading…
Reference in a new issue