blob: c14323609722318a8776725caa0bf9348ab0bad3 (
plain)
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
|
# Contributor: Bjoern Schilberg <bjoern@intevation.de>
# Maintainer: Bjoern Schilberg <bjoern@intevation.de>
pkgname=mapserver
pkgver=7.2.1
pkgrel=0
pkgdesc="MapServer is CGI-based platform for publishing spatial data and interactive mapping applications to the web."
url="http://mapserver.org/"
arch="x86_64"
license="MIT"
depends="geos gdal proj4 cairo curl fcgi freetype libjpeg libpng libxml2 libpq giflib protobuf-c"
depends_dev="cmake postgresql-dev geos-dev gdal-dev jpeg-dev giflib-dev libxml2-dev proj4-dev fcgi-dev curl-dev freetype-dev cairo-dev protobuf-c-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="http://download.osgeo.org/mapserver/$pkgname-$pkgver.tar.gz
fix-build-new-proj4.patch
"
build() {
mkdir build; cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_GDAL=ON \
-DWITH_GEOS=ON \
-DWITH_OGR=ON \
-DWITH_PROJ=ON \
-DWITH_POSTGIS=ON \
-DWITH_KML=ON \
-DWITH_WCS=ON \
-DWITH_SOS=ON \
-DWITH_WMS=ON \
-DWITH_CLIENT_WMS=ON \
-DWITH_WFS=ON \
-DWITH_CLIENT_WFS=ON \
-DWITH_THREAD_SAFETY=OFF \
-DWITH_FCGI=ON \
-DWITH_CAIRO=ON \
-DWITH_CURL=ON \
-DWITH_MYSQL=OFF \
-DWITH_FRIBIDI=OFF \
-DWITH_HARFBUZZ=OFF \
-DWITH_EXEMPI=OFF \
-DWITH_PROTOBUFC=ON
make -j1
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/share/
chmod -x "$pkgdir"/usr/include/mapserver/*.h
}
sha512sums="8622488c47ee1f7c245566aa3ceb2d91074742e9acb8deaa0044f2b6a9fd71e5eaa65b388997ab37f974cc6f7272f40e41d84ef6ad3449976229bbe01e6289a4 mapserver-7.2.1.tar.gz
ab5c60a17d0266df76b8118b383a127268b5944b3dcc6797240add8029e24dc2a330a4f34f77b5f2dcd7147b73e092ddbf5bdb24661df0f09f6cce182f5b081c fix-build-new-proj4.patch"
|