wok annotate libpano13/receipt @ rev 24757

pkg-config: cheat configure
author Hans-G?nter Theisgen
date Fri Mar 18 06:53:58 2022 +0100 (2022-03-18)
parents eb55bc8c389d
children a9a8eabe376a
rev   line source
pascal@14594 1 # SliTaz package receipt.
pascal@14594 2
pascal@14594 3 PACKAGE="libpano13"
Hans-G?nter@21271 4 VERSION="2.9.19"
pascal@14594 5 CATEGORY="development"
pascal@14594 6 SHORT_DESC="Panorama tools library."
pascal@14594 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14716 8 LICENSE="GPL2"
Hans-G?nter@21271 9 WEB_SITE="http://panotools.sourceforge.net/"
Hans-G?nter@21271 10
pascal@14594 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14594 12 WGET_URL="$SF_MIRROR/panotools/$TARBALL"
pascal@14594 13
Hans-G?nter@21271 14 DEPENDS="jpeg libpng tiff"
Hans-G?nter@21271 15 BUILD_DEPENDS="bash jpeg-dev libpng-dev tiff-dev"
pascal@14594 16
pascal@24411 17 # What is the latest version available today?
pascal@24411 18 current_version()
pascal@24411 19 {
pascal@24411 20 wget -O - https://sourceforge.net/projects/panotools/files/libpano13/ 2>/dev/null | \
pascal@24411 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 22 sed '/scope="row/!d;/tar/!d;s|.*/libpano13-||;s|.tar.*||;q'
pascal@24411 23 }
pascal@24411 24
pascal@14594 25 # Rules to configure and make the package.
pascal@14594 26 compile_rules()
pascal@14594 27 {
Hans-G?nter@21271 28 ./configure \
Hans-G?nter@21271 29 --prefix=/usr \
Hans-G?nter@21271 30 --build=$HOST_SYSTEM \
pascal@14594 31 --host=$HOST_SYSTEM &&
Hans-G?nter@21271 32 make -j 1 &&
pascal@14594 33 make DESTDIR=$DESTDIR install
pascal@14594 34 }
pascal@14594 35
pascal@14594 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14594 37 genpkg_rules()
pascal@14594 38 {
pascal@14594 39 mkdir -p $fs/usr/lib
Hans-G?nter@21271 40
Hans-G?nter@21271 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21271 42 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
Hans-G?nter@21271 43 cp -a $install/usr/bin $fs/usr
pascal@14594 44 }