# SliTaz package receipt. PACKAGE="mapserver" VERSION="7.4.3" CATEGORY="misc" SHORT_DESC="Open Source platform for publishing spatial data." MAINTAINER="erjo@slitaz.org" LICENSE="MIT" WEB_SITE="https://mapserver.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="http://download.osgeo.org/mapserver/$TARBALL" DEPENDS="cairo fcgi fribidi giflib libgd libgdal libpostgresqlclient" BUILD_DEPENDS="apache-dev cairo-dev cmake curl-dev fcgi-dev freetype-dev fribidi-dev gdal-dev geos-dev giflib-dev jpeg-dev libgd libgd-dev libpng-dev libxml2-dev postgresql-dev proj-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { mkdir build && cd build && cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE="Release" \ -DWITH_PROJ=1 \ -DWITH_POSTGIS=1 \ -DWITH_GEOS=1 \ -DWITH_GDAL=1 \ -DWITH_OGR=1 \ -DWITH_GD=1 \ -DWITH_CLIENT_WMS=1 \ -DWITH_CLIENT_WFS=1 \ -DWITH_WCS=1 \ -DWITH_PROTOBUFC=0 && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/var/www/cgi-bin cp -a $install/usr/bin/mapserv $fs/var/www/cgi-bin cp -a $install/* $fs/ }