Created
September 22, 2011 12:12
-
-
Save homme/1234636 to your computer and use it in GitHub Desktop.
Pacman PKGBUILD file for Mapserver 6.0.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=mapserver | |
pkgver=6.0.1 | |
pkgrel=1 | |
pkgdesc="Platform for publishing spatial data and interactive mapping applications to the web" | |
arch=(i686 x86_64) | |
license=('MIT') | |
url="http://www.mapserver.org" | |
depends=('libpng' 'freetype2' 'gd' 'zlib' 'gdal' 'proj' 'libjpeg' 'libxml2' 'libpqxx' 'pdflib-lite' 'geos' 'agg' 'php' 'apache') | |
replaces=('mapserver') | |
makedepends=('cfitsio') | |
source=("http://download.osgeo.org/mapserver/mapserver-$pkgver.tar.gz") | |
md5sums=('b96287449dcbca9a2fcea3a64905915a') | |
build() { | |
cd ${startdir}/src/mapserver-${pkgver} | |
./configure --prefix=/usr \ | |
--with-ogr=/usr/bin/gdal-config \ | |
--with-gdal=/usr/bin/gdal-config \ | |
--with-httpd=/usr/sbin/httpd \ | |
--with-curl-config=/usr/bin/curl-config \ | |
--with-proj=/usr \ | |
--with-tiff \ | |
--with-gd=/usr \ | |
--with-jpeg \ | |
--with-png=/usr \ | |
--with-freetype=/usr/ \ | |
--with-threads \ | |
--with-wcs \ | |
--with-wfsclient \ | |
--with-wmsclient \ | |
--with-libiconv=/usr \ | |
--with-postgis=/usr/bin/pg_config \ | |
--with-geos=/usr/bin/geos-config \ | |
--with-xml2-config=/usr/bin/xml2-config \ | |
--with-sos \ | |
--with-agg \ | |
--with-php=/usr \ | |
--enable-debug || return 1 | |
cp -f ${startdir}/mapfile.c ${startdir}/src/mapserver-${pkgver}/mapfile.c | |
cp -f ${startdir}/mapdebug.c ${startdir}/src/mapserver-${pkgver}/mapdebug.c | |
make || return 1 | |
# Install the binaries | |
mkdir -p ${startdir}/pkg/usr/bin || return 1 | |
install -m755 legend ${startdir}/pkg/usr/bin/legend || return 1 | |
install -m755 msencrypt ${startdir}/pkg/usr/bin/msencrypt || return 1 | |
install -m755 mapserv ${startdir}/pkg/usr/bin/mapserv || return 1 | |
install -m755 mapserver-config ${startdir}/pkg/usr/bin/mapserver-config || return 1 | |
install -m755 scalebar ${startdir}/pkg/usr/bin/scalebar || return 1 | |
install -m755 shp2img ${startdir}/pkg/usr/bin/scalebar || return 1 | |
install -m755 shp2mysql.pl ${startdir}/pkg/usr/bin/shp2mysql.pl || return 1 | |
#install -m755 shp2pdf ${startdir}/pkg/usr/bin/shp2pdf || return 1 | |
install -m755 shp2img ${startdir}/pkg/usr/bin/shp2img || return 1 | |
install -m755 shptree ${startdir}/pkg/usr/bin/shptree || return 1 | |
install -m755 shptreetst ${startdir}/pkg/usr/bin/shptreetst || return 1 | |
install -m755 shptreevis ${startdir}/pkg/usr/bin/shptreevis || return 1 | |
install -m755 sortshp ${startdir}/pkg/usr/bin/shptreevis || return 1 | |
install -m755 tile4ms ${startdir}/pkg/usr/bin/tile4ms || return 1 | |
# Install the PHP module | |
mkdir -p ${startdir}/pkg/usr/lib/php/modules || return 1 | |
install -m755 mapscript/php/php_mapscript.so ${startdir}/pkg/usr/lib/php/modules || return 1 | |
# Install the headers | |
mkdir -p ${startdir}/pkg/usr/include || return 1 | |
for header in `ls ./*.h`; do | |
install -m644 $header ${startdir}/pkg/usr/include/${header} || return 1 | |
done; | |
# Install the Mapserver library | |
mkdir -p ${startdir}/pkg/usr/lib | |
install -m 644 libmapserver.a ${startdir}/pkg/usr/lib/libmapserver.a || return 1 | |
} | |
# To compile with Arcgis SDE Support: | |
# --with-sde-version=90 \ | |
# --with-sde=/usr/sde/sdeexe90 \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment