wok-6.x view mapserver/receipt @ rev 24666
created recipes for double-conversion and double-conversion-dev
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 15:40:49 2022 +0100 (2022-03-11) |
parents | 11ae0e257652 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mapserver"
4 VERSION="7.4.3"
5 CATEGORY="misc"
6 SHORT_DESC="Open Source platform for publishing spatial data."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://mapserver.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://download.osgeo.org/mapserver/$TARBALL"
14 DEPENDS="cairo fcgi fribidi giflib libgd libgdal libpostgresqlclient"
15 BUILD_DEPENDS="apache-dev cairo-dev cmake curl-dev fcgi-dev freetype-dev
16 fribidi-dev gdal-dev geos-dev giflib-dev jpeg-dev libgd libgd-dev
17 libpng-dev libxml2-dev postgresql-dev proj-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
23 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir build &&
30 cd build &&
31 cmake .. \
32 -DCMAKE_INSTALL_PREFIX=/usr \
33 -DCMAKE_BUILD_TYPE="Release" \
34 -DWITH_PROJ=1 \
35 -DWITH_POSTGIS=1 \
36 -DWITH_GEOS=1 \
37 -DWITH_GDAL=1 \
38 -DWITH_OGR=1 \
39 -DWITH_GD=1 \
40 -DWITH_CLIENT_WMS=1 \
41 -DWITH_CLIENT_WFS=1 \
42 -DWITH_WCS=1 \
43 -DWITH_PROTOBUFC=0 &&
44 make &&
45 make install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
52 mkdir -p $fs/var/www/cgi-bin
53 cp -a $install/usr/bin/mapserv $fs/var/www/cgi-bin
54 cp -a $install/* $fs/
55 }