wok annotate proj/receipt @ rev 24780

transmission: autoconf 2.70+ bug workaround
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 19 20:17:02 2022 +0000 (2022-03-19)
parents 36e78f6fb135
children
rev   line source
erjo@11630 1 # SliTaz package receipt.
erjo@11630 2
erjo@11630 3 PACKAGE="proj"
Hans-G?nter@23447 4 VERSION="7.0.0"
erjo@11630 5 CATEGORY="misc"
erjo@11630 6 SHORT_DESC="Cartographic Projections Library."
erjo@11630 7 MAINTAINER="erjo@slitaz.org"
pascal@15375 8 LICENSE="MIT"
Hans-G?nter@21704 9 WEB_SITE="https://proj.org/"
Hans-G?nter@21704 10
erjo@11630 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@11630 12 WGET_URL="http://download.osgeo.org/proj/$TARBALL"
erjo@11630 13
Hans-G?nter@21704 14 DEPENDS="gcc83-lib-base sqlite"
Hans-G?nter@21704 15 BUILD_DEPENDS="gcc83 libtool sqlite-dev"
erjo@11630 16
pascal@24453 17 # What is the latest version available today?
pascal@24453 18 current_version()
pascal@24453 19 {
pascal@24453 20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24453 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;/RC/d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24453 22 }
pascal@24453 23
erjo@11630 24 # Rules to configure and make the package.
erjo@11630 25 compile_rules()
erjo@11630 26 {
pascal@15089 27 mkdir -p $DESTDIR/usr/bin
Hans-G?nter@21704 28
Hans-G?nter@23447 29 ./configure \
Hans-G?nter@23447 30 CC=gcc-83 \
Hans-G?nter@23447 31 CXX=g++-83 \
Hans-G?nter@23447 32 --disable-tiff \
Hans-G?nter@23447 33 --without-curl \
Hans-G?nter@23447 34 $CONFIGURE_ARGS &&
Hans-G?nter@21704 35 make &&
Hans-G?nter@21704 36 make install
erjo@11630 37 }
erjo@11630 38
erjo@11630 39 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@11630 40 genpkg_rules()
erjo@11630 41 {
Hans-G?nter@21704 42 mkdir -p $fs/usr/lib
Hans-G?nter@21704 43 mkdir -p $fs/usr/share
erjo@11630 44
Hans-G?nter@21704 45 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21704 46 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21704 47 cp -a $install/usr/share/proj $fs/usr/share
erjo@11630 48 }