4 pkgdesc="Platform for publishing spatial data and interactive mapping applications to the web"
7 url="http://www.mapserver.org"
8 depends=('libpng' 'freetype2' 'gd' 'zlib' 'gdal' 'proj' 'libjpeg' 'libxml2' 'libpqxx' 'pdflib-lite' 'geos' 'agg' 'php' 'apache')
10 makedepends=('cfitsio')
12 source=("http://download.osgeo.org/mapserver/mapserver-$pkgver.tar.gz")
13 md5sums=('7c58bb90f5003fcfaec4320cc652a669')
16 cd ${startdir}/src/mapserver-${pkgver}
18 ./configure --with-ogr=/usr/bin/gdal-config \
19 --with-gdal=/usr/bin/gdal-config \
20 --with-httpd=/usr/sbin/httpd \
21 --with-curl-config=/usr/bin/curl-config \
27 --with-freetype=/usr/ \
32 --with-libiconv=/usr \
33 --with-postgis=/usr/bin/pg_config \
34 --with-geos=/usr/bin/geos-config \
35 --with-xml2-config=/usr/bin/xml2-config \
39 --enable-debug || return 1
42 mkdir -p ${startdir}/pkg/usr/bin || return 1
43 install -m755 legend ${startdir}/pkg/usr/bin/legend || return 1
44 install -m755 msencrypt ${startdir}/pkg/usr/bin/msencrypt || return 1
45 install -m755 mapserv ${startdir}/pkg/usr/bin/mapserv || return 1
46 install -m755 mapserver-config ${startdir}/pkg/usr/bin/mapserver-config || return 1
47 install -m755 scalebar ${startdir}/pkg/usr/bin/scalebar || return 1
48 install -m755 shp2img ${startdir}/pkg/usr/bin/scalebar || return 1
49 install -m755 shp2mysql.pl ${startdir}/pkg/usr/bin/shp2mysql.pl || return 1
50 install -m755 shp2pdf ${startdir}/pkg/usr/bin/shp2pdf || return 1
51 install -m755 shptree ${startdir}/pkg/usr/bin/shptree || return 1
52 install -m755 shptreetst ${startdir}/pkg/usr/bin/shptreetst || return 1
53 install -m755 shptreevis ${startdir}/pkg/usr/bin/shptreevis || return 1
54 install -m755 sortshp ${startdir}/pkg/usr/bin/shptreevis || return 1
55 install -m755 tile4ms ${startdir}/pkg/usr/bin/tile4ms || return 1
57 mkdir -p ${startdir}/pkg/usr/lib/php/20060613 || return 1
58 install -m755 mapscript/php3/php_mapscript.so ${startdir}/pkg/usr/lib/php/20060613
61 # To compile with Arcgis SDE Support:
62 # --with-sde-version=90 \
63 # --with-sde=/usr/sde/sdeexe90 \