wok annotate osm2pgrouting/receipt @ rev 25655

Up ntfs-3g (2022.10.3) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 06 14:41:54 2024 +0000 (4 months ago)
parents 87964cbbcd16
children
rev   line source
pascal@20216 1 # SliTaz package receipt.
pascal@20216 2
pascal@20216 3 PACKAGE="osm2pgrouting"
Hans-G?nter@24168 4 VERSION="2.3.8"
pascal@20216 5 CATEGORY="misc"
Hans-G?nter@21647 6 SHORT_DESC="Import tool for OpenStreetMap data to pgRouting database."
pascal@20216 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@20216 8 LICENSE="GPL2"
Hans-G?nter@21647 9 WEB_SITE="https://github.com/pgRouting/osm2pgrouting"
Hans-G?nter@21647 10
pascal@20216 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20216 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@20216 13
Hans-G?nter@24168 14 DEPENDS="expat gcc49-lib-base libboost-program-options libpostgresqlclient"
Hans-G?nter@24168 15 BUILD_DEPENDS="cmake expat-dev gcc49 libboost-program-options-dev
Hans-G?nter@24168 16 libpqxx pgrouting postgis postgresql-dev"
pascal@20216 17
pascal@25600 18 # What is the latest version available today?
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25600 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 23 }
pascal@24055 24
pascal@20216 25 # Rules to configure and make the package.
pascal@20216 26 compile_rules()
pascal@20216 27 {
Hans-G?nter@24168 28 export CXX=g++-49 # is essential
Hans-G?nter@21647 29
Hans-G?nter@24168 30 mkdir _build
Hans-G?nter@24168 31 cd _build
Hans-G?nter@24168 32 cmake .. \
Hans-G?nter@24168 33 -D CMAKE_INSTALL_PREFIX=/usr &&
pascal@20216 34 make &&
pascal@20216 35 make DESTDIR=$DESTDIR install
pascal@20216 36 }
pascal@20216 37
pascal@20216 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20216 39 genpkg_rules()
pascal@20216 40 {
pascal@20216 41 cp -a $install/usr $fs
pascal@20216 42 }