2006-02-23 15:26:10 +00:00
|
|
|
# Description: Scanner frontend and GIMP plugin for sane
|
|
|
|
# URL: http://www.xsane.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: gimp, sane
|
|
|
|
|
|
|
|
name=xsane
|
2010-11-19 13:31:10 +01:00
|
|
|
version=0.998
|
2012-11-01 09:45:29 +01:00
|
|
|
release=2
|
2006-02-23 15:26:10 +00:00
|
|
|
source=(http://www.xsane.org/download/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2012-11-01 09:45:29 +01:00
|
|
|
|
|
|
|
# http://www.linuxfromscratch.org/blfs/view/svn/pst/xsane.html
|
|
|
|
sed -i -e 's/png_ptr->jmpbuf/png_jmpbuf(png_ptr)/' src/xsane-save.c
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure --prefix=/usr \
|
2009-08-15 10:32:40 +02:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 15:26:10 +00:00
|
|
|
--disable-nls \
|
|
|
|
--enable-gtk2 \
|
|
|
|
--enable-gimp2
|
|
|
|
make
|
2009-08-15 10:32:40 +02:00
|
|
|
make DESTDIR=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2009-08-15 10:32:40 +02:00
|
|
|
rm -r $PKG/usr/{sbin,share/sane/xsane/doc}
|
2006-02-23 15:26:10 +00:00
|
|
|
rm $PKG/usr/share/sane/xsane/xsane-gpl.txt
|
|
|
|
|
2009-08-15 10:32:40 +02:00
|
|
|
install -d $PKG/usr/lib/gimp/2.0/plug-ins
|
2006-02-23 15:26:10 +00:00
|
|
|
ln -s /usr/bin/xsane $PKG/usr/lib/gimp/2.0/plug-ins
|
|
|
|
}
|