wok annotate freeimage/receipt @ rev 24984

Up ufr2 (2.40-2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 10 07:46:30 2022 +0000 (2022-05-10)
parents 826c1bab582b
children 7dd01dedad38
rev   line source
jozee@2726 1 # SliTaz package receipt.
jozee@2726 2
jozee@2726 3 PACKAGE="freeimage"
pascal@21220 4 VERSION="3.18.0"
jozee@2726 5 CATEGORY="graphics"
jozee@2726 6 SHORT_DESC="library to support popular graphics image formats like PNG, BMP, JPEG, TIFF and others"
jozee@2726 7 MAINTAINER="jozee@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
jozee@2726 9 SOURCE="FreeImage"
pascal@21220 10 TARBALL="$SOURCE${VERSION//./}.zip"
jozee@2726 11 WEB_SITE="http://freeimage.sourceforge.net/"
jozee@2726 12 WGET_URL="http://downloads.sourceforge.net/$PACKAGE/$TARBALL"
jozee@2726 13
pascal@15588 14 DEPENDS="gcc-lib-base"
pascal@15588 15 BUILD_DEPENDS="gcc-lib-base"
pascal@15588 16
pascal@24361 17 # What is the latest version available today?
pascal@24361 18 current_version()
pascal@24361 19 {
pascal@24361 20 wget -O - https://sourceforge.net/projects/freeimage/files/Source%20Distribution/ 2>/dev/null | \
pascal@24361 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 22 sed '/scope="row/!d;s|.*/Source%20Distribution/||;s|/.*||;q'
pascal@24361 23 }
pascal@24361 24
jozee@2726 25 # Rules to configure and make the package.
jozee@2726 26 compile_rules()
jozee@2726 27 {
pascal@20212 28 sed -i 's|uname -m|echo i486|' Makefile.*
slaxemulator@9700 29 patch -Np1 -i $stuff/gcc4.5_ln.patch
pascal@15602 30 pkgdir=$DESTDIR
jozee@2726 31 incl=$pkgdir/usr/include
jozee@2726 32 dest=$pkgdir/usr/lib
jozee@2726 33 install -d $dest
jozee@2726 34 install -d $incl
jozee@2726 35 sed -e "s|INCDIR = /usr/include|INCDIR = $incl|g" -i Makefile.gnu
jozee@2726 36 sed -e "s|INSTALLDIR = /usr/lib|INSTALLDIR = $dest|g" -i Makefile.gnu
jozee@2726 37 sed -e "s|ldconfig||g" -i Makefile.gnu
pascal@5001 38 make &&
jozee@2726 39 make DESTDIR=$pkgdir install
jozee@2726 40 }
jozee@2726 41
jozee@2726 42 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2726 43 genpkg_rules()
jozee@2726 44 {
jozee@2726 45 mkdir -p $fs/usr/lib
pascal@15588 46 cp -a $install/usr/lib/*.so* $fs/usr/lib
jozee@2726 47
jozee@2726 48 }