wok-next view xsane/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 23c3aed67cd9
children 10df65db91ad
line source
1 # SliTaz package receipt.
3 PACKAGE="xsane"
4 VERSION="0.998"
5 CATEGORY="office"
6 SHORT_DESC="XSane - graphical scanning frontend."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.xsane.org/"
11 WGET_URL="http://www.xsane.org/download/$TARBALL"
13 DEPENDS="sane-backends gtk+ tiff xorg-libXdamage lcms libv4l libltdl"
14 BUILD_DEPENDS="gtk+-dev sane-backends-dev lcms-dev udev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c
20 ./configure \
21 --prefix=/usr \
22 --mandir=/usr/share/man \
23 --disable-gimp \
24 $CONFIGURE_ARGS &&
25 make &&
26 make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share
33 cp -a $install/usr/bin $fs/usr
34 cp -a $install/usr/share/sane $fs/usr/share
35 rm -rf $fs/usr/share/sane/xsane/doc
36 }