wok view freeimage/receipt @ rev 25465

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