wok-6.x view freeimage/receipt @ rev 25096
created recipe for wordgrinder
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 15:13:12 2022 +0100 (2022-06-18) |
parents | 826c1bab582b |
children | 7dd01dedad38 |
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="http://freeimage.sourceforge.net/"
12 WGET_URL="http://downloads.sourceforge.net/$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 }