diff options
author | Samuel Mesa | 2015-06-17 09:34:04 -0500 |
---|---|---|
committer | Samuel Mesa | 2015-06-17 09:34:04 -0500 |
commit | 8c997b5b81cfe76876fb372581e9f2708e7cdc86 (patch) | |
tree | 299f6ba599ce5a617a267631be6901233e570320 | |
download | aur-8c997b5b81cfe76876fb372581e9f2708e7cdc86.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 35 | ||||
-rw-r--r-- | PKGBUILD | 94 |
2 files changed, 129 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ed5a18f8fcf3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,35 @@ +pkgbase = mapserver + pkgdesc = Platform for publishing spatial data and interactive mapping applications to the web + pkgver = 6.4.1 + pkgrel = 2 + url = http://www.mapserver.org + arch = i686 + arch = x86_64 + license = MIT + makedepends = cfitsio + depends = libpng + depends = freetype2 + depends = gd + depends = zlib + depends = gdal + depends = proj + depends = libjpeg-turbo + depends = libxml2 + depends = libpqxx + depends = pdflib-lite + depends = geos + depends = agg + depends = apache + depends = fcgi + depends = mod_fastcgi + depends = python2 + depends = php + depends = php-apache + depends = swig + depends = libsvg-cairo + depends = php-pear + source = http://download.osgeo.org/mapserver/mapserver-6.4.1.tar.gz + md5sums = bbd17581b38b9baf9461a633551725cc + +pkgname = mapserver + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..740a34e7e792 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,94 @@ +# Maintainer: Samuel Mesa <samuelmesa@linuxmail.org> +# Contributor: Marcos Piccinini <x@nofxx.com> +# Contributor: Jonathan Hudson <jh+arch@daria.co.uk> +pkgname=mapserver +pkgver=6.4.1 +pkgrel=2 +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-turbo' 'libxml2' 'libpqxx' 'pdflib-lite' 'geos' 'agg' 'apache' 'fcgi' 'mod_fastcgi' 'python2' 'php' 'php-apache' 'swig' 'libsvg-cairo' 'php-pear' ) +makedepends=('cfitsio') +options=() +source=("http://download.osgeo.org/mapserver/mapserver-${pkgver}.tar.gz") +md5sums=('bbd17581b38b9baf9461a633551725cc') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + + if [ -f CMakeCache.txt ] + then + rm -rf CMakeCache.txt CMakeFiles + fi + rm -rf build && mkdir build + cd build + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DPYTHON_EXECUTABLE=/usr/bin/python2 \ + -DPYTHON_LIBRARIES=/usr/lib/python2.7 \ + -DPYTHON_INCLUDE_PATH=/usr/include/python2.7 \ + -DFRIBIDI_INCLUDE_DIR="/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/fribidi" \ + -DWITH_CAIRO=ON \ + -DWITH_CLIENT_WFS=ON \ + -DWITH_CLIENT_WMS=ON \ + -DWITH_CSHARP=OFF \ + -DWITH_CURL=ON \ + -DWITH_EXEMPI=OFF \ + -DWITH_FCGI=ON \ + -DWITH_FRIBIDI=ON \ + -DWITH_GD=OFF \ + -DWITH_GDAL=ON \ + -DWITH_GENERIC_NINT=OFF \ + -DWITH_GEOS=ON \ + -DWITH_GIF=ON \ + -DWITH_ICONV=ON \ + -DWITH_JAVA=OFF \ + -DWITH_KML=ON \ + -DWITH_LIBXML2=ON \ + -DWITH_MSSQL2008=OFF \ + -DWITH_MYSQL=OFF \ + -DWITH_OGR=ON \ + -DWITH_ORACLESPATIAL=OFF \ + -DWITH_ORACLE_PLUGIN=OFF \ + -DWITH_PERL=OFF \ + -DWITH_PHP=ON \ + -DWITH_POINT_Z_M=OFF \ + -DWITH_POSTGIS=ON \ + -DWITH_PROJ=ON \ + -DWITH_PYTHON=ON \ + -DWITH_RSVG=OFF \ + -DWITH_RUBY=OFF \ + -DWITH_SDE=OFF \ + -DWITH_SDE_PLUGIN=OFF \ + -DWITH_SOS=ON \ + -DWITH_SVGCAIRO=ON \ + -DWITH_THREAD_SAFETY=ON \ + -DWITH_WCS=ON \ + -DWITH_WFS=ON \ + -DWITH_WMS=ON \ + -DWITH_XMLMAPFILE=OFF \ + -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ + + make clean + make -j9 + +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + cd build + + make || return 1 + make DESTDIR=${pkgdir} install + + #Copy the headers a include for ZooWPS project + mkdir -p "$pkgdir"/usr/include/mapserver + cp "${srcdir}/${pkgname}-${pkgver}"/*.h "$pkgdir"/usr/include/mapserver/ + +} + +# To compile with Arcgis SDE Support: +# --with-sde-version=90 \ +# --with-sde=/usr/sde/sdeexe90 \ |