public
Created

Pacman PKGBUILD file for Mapserver 6.0.1

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
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 \

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.