updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / mapserver-full / PKGBUILD
blobd12dc6c24f476c6252e886e26172f82d52642692
1 pkgname=mapserver-full
2 pkgver=5.4.2
3 pkgrel=1
4 pkgdesc="Platform for publishing spatial data and interactive mapping applications to the web"
5 arch=(i686 x86_64)
6 license=('MIT')
7 url="http://www.mapserver.org"
8 depends=('libpng' 'freetype2' 'gd' 'zlib' 'gdal' 'proj' 'libjpeg' 'libxml2' 'libpqxx' 'pdflib-lite' 'geos' 'agg' 'php' 'apache')
9 replaces=('mapserver')
10 makedepends=('cfitsio')
11 options=()
12 source=("http://download.osgeo.org/mapserver/mapserver-$pkgver.tar.gz")
13 md5sums=('7c58bb90f5003fcfaec4320cc652a669')
15 build() {
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 \
22                 --with-proj=/usr \
23                 --with-tiff \
24                 --with-gd=/usr \
25                 --with-jpeg \
26                 --with-png \
27                 --with-freetype=/usr/ \
28                 --with-threads \
29                 --with-wcs \
30                 --with-wfsclient \
31                 --with-wmsclient \
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 \
36                 --with-sos \
37                 --with-agg \
38                         --with-php=/usr \
39                 --enable-debug || return 1
41   make || 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 \