wok annotate mapserver/receipt @ rev 25808

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