Import sane-frontends 1.0.14

sane-frontends contains applications for SANE (Scanner Access Now Easy).
This package provides the graphical frontends xscanimage and xcam. Both
use the GTK+ toolkit. xscanimage is used for scanners, xcam for cameras.
xscanimage can also be used as gimp plugin. The package also provides
the command-line frontend scanadf which is based on scanimage and is
intended for scanners that use automatic document feeders.

From Antoine Jacoutot <ajacoutot@lphp.org>
This commit is contained in:
alek 2005-11-03 15:30:12 +00:00
parent 48a90bd84e
commit fa4f4f5b8a
6 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,51 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/11/03 15:30:12 alek Exp $
COMMENT= "API for accessing scanners, frontends"
DISTNAME= sane-frontends-1.0.14
CATEGORIES= graphics
HOMEPAGE= http://www.sane-project.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@lphp.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.sane-project.org/pub/sane/${DISTNAME}/ \
http://gd.tuwien.ac.at/hci/sane/${DISTNAME}/ \
ftp://gd.tuwien.ac.at/hci/sane/${DISTNAME}/ \
ftp://ftp.sane-project.org/pub/sane/old-versions/${DISTNAME}/
WANTLIB= c X11 m Xrender freetype Xft fontconfig \
pango-1.0.0.0 glib-2.0.0.0 gmodule-2.0.0.0 \
pangox-1.0.0.0 gobject-2.0.0.0 pangoxft-1.0.0.0 \
jpeg atk-1.0.0.0 usb
MODULES= devel/gettext
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig
LIB_DEPENDS= gdk-x11-2.0.0.0,gdk_pixbuf-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2 \
sane.1::graphics/sane-backends
USE_GMAKE= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
NO_REGRESS= Yes
FLAVORS= gimp
FLAVOR?=
.if ${FLAVOR:L} == "gimp"
LIB_DEPENDS+= gimp-2.0.200.0,gimpui-2.0.200.0,gimpmath-2.0.200.0,gimpwidgets-2.0.200.0,gimpbase-2.0.200.0,gimpcolor-2.0.200.0::graphics/gimp/stable
CONFIGURE_ENV+= CPPFLAGS+="-I${LOCALBASE}/include/gimp-2.0"
.else
CONFIGURE_ARGS+=--disable-gimp
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,4 @@
MD5 (sane-frontends-1.0.14.tar.gz) = c63bf7b0bb5f530cf3c08715db721cd3
RMD160 (sane-frontends-1.0.14.tar.gz) = 571599cbebbce53ffc00b701874d5e76dcd90467
SHA1 (sane-frontends-1.0.14.tar.gz) = 063e11df3e32d7a43161fd37026a4dc601d5482d
SIZE (sane-frontends-1.0.14.tar.gz) = 231892

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_xscanimage_c,v 1.1.1.1 2005/11/03 15:30:12 alek Exp $
--- src/xscanimage.c.orig Tue Oct 11 12:22:56 2005
+++ src/xscanimage.c Tue Oct 11 12:23:30 2005
@@ -1284,7 +1284,7 @@ scan_dialog (GtkWidget * widget, gpointe
{ /* We are running in standalone mode */
/* test for pnm formats */
strncpy (testfilename, preferences.filename, sizeof (testfilename));
- testfilename[sizeof (testfilename)] = 0;
+ testfilename[sizeof (testfilename) - 1] = 0;
g_strreverse (testfilename);
if (!((!strncmp (testfilename, "mnp.", 4)) ||
(!strncmp (testfilename, "mgp.", 4)) ||

View File

@ -0,0 +1,9 @@
sane-frontends contains applications for SANE (Scanner Access Now Easy).
This package provides the graphical frontends xscanimage and xcam. Both
use the GTK+ toolkit. xscanimage is used for scanners, xcam for cameras.
xscanimage can also be used as gimp plugin. The package also provides
the command-line frontend scanadf which is based on scanimage and is
intended for scanners that use automatic document feeders.
Available flavors:
gimp - Build the gimp xscanimage plugin

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.gimp,v 1.1.1.1 2005/11/03 15:30:12 alek Exp $
@exec ln -sf ${PREFIX}/bin/xscanimage ${PREFIX}/lib/gimp/2.0/plug-ins/
@unexec rm -f ${PREFIX}/lib/gimp/2.0/plug-ins/xscanimage

View File

@ -0,0 +1,10 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/11/03 15:30:12 alek Exp $
bin/scanadf
bin/xcam
bin/xscanimage
@man man/man1/scanadf.1
@man man/man1/xcam.1
@man man/man1/xscanimage.1
share/sane/
share/sane/sane-style.rc
%%gimp%%