New package: xsane-0.999
This commit is contained in:
parent
8bb8a9e364
commit
d106e11493
|
@ -0,0 +1 @@
|
|||
xsane
|
|
@ -0,0 +1,20 @@
|
|||
--- src/xsane-save.c 2010-11-16 22:06:00.000000000 +0100
|
||||
+++ src/xsane-save.c 2017-01-11 13:10:33.311935745 +0100
|
||||
@@ -4910,7 +4910,7 @@
|
||||
return -1; /* error */
|
||||
}
|
||||
|
||||
- if (setjmp(png_ptr->jmpbuf))
|
||||
+ if (setjmp(png_jmpbuf(png_ptr)))
|
||||
{
|
||||
snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
|
||||
xsane_back_gtk_error(buf, TRUE);
|
||||
@@ -5100,7 +5100,7 @@
|
||||
return -1; /* error */
|
||||
}
|
||||
|
||||
- if (setjmp(png_ptr->jmpbuf))
|
||||
+ if (setjmp(png_jmpbuf(png_ptr)))
|
||||
{
|
||||
snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
|
||||
xsane_back_gtk_error(buf, TRUE);
|
|
@ -0,0 +1,11 @@
|
|||
--- src/xsane.h 2007-08-13 09:20:32.000000000 +0200
|
||||
+++ src/xsane.h 2007-11-23 11:50:49.000000000 +0100
|
||||
@@ -251,7 +251,7 @@
|
||||
# elif defined(HAVE_OS2_H)
|
||||
# define DEFAULT_BROWSER "netscape"
|
||||
# else
|
||||
-# define DEFAULT_BROWSER "netscape"
|
||||
+# define DEFAULT_BROWSER "xdg-open"
|
||||
# endif
|
||||
#endif
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
# Template file for 'xsane'
|
||||
pkgname=xsane
|
||||
version=0.999
|
||||
revision=1
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="gtk+-devel lcms-devel sane-devel gimp-devel"
|
||||
depends="sane"
|
||||
short_desc="GTK-based X11 frontend for SANE"
|
||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||
license="GPL-2"
|
||||
homepage="http://www.xsane.org"
|
||||
distfiles="http://www.xsane.org/download/${pkgname}-${version}.tar.gz"
|
||||
checksum=5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b
|
||||
|
||||
do_build() {
|
||||
local _args="--prefix=/usr --sbindir=/usr/bin --mandir=/usr/share/man"
|
||||
./configure ${_args} --enable-gimp
|
||||
make ${makejobs}
|
||||
mv src/xsane{,-gimp}
|
||||
make clean
|
||||
echo "=== ./configure ${config_args} --disable-gimp"
|
||||
./configure ${_args} --disable-gimp
|
||||
sed -i 's;/usr/local;/usr;g' src/Makefile
|
||||
make ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make DESTDIR="${DESTDIR}" install
|
||||
}
|
||||
|
||||
xsane-gimp_package() {
|
||||
short_desc+=" - plugin for GIMP"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vbin src/xsane-gimp
|
||||
vmkdir usr/lib/gimp/2.0/plug-ins
|
||||
ln -s /usr/bin/xsane-gimp ${PKGDESTDIR}/usr/lib/gimp/2.0/plug-ins/xsane
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue