pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/sane-backends Add optional support for HP Sca...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa0aef421175
branches:  trunk
changeset: 514157:fa0aef421175
user:      ben <ben%pkgsrc.org@localhost>
date:      Thu Jun 08 14:14:11 2006 +0000

description:
Add optional support for HP ScanJet 3900 series scanners.

diffstat:

 graphics/sane-backends/Makefile   |   6 ++++--
 graphics/sane-backends/PLIST      |   5 ++++-
 graphics/sane-backends/distinfo   |   5 ++++-
 graphics/sane-backends/options.mk |  23 +++++++++++++++++++++++
 4 files changed, 35 insertions(+), 4 deletions(-)

diffs (100 lines):

diff -r 0c1900e6a3ba -r fa0aef421175 graphics/sane-backends/Makefile
--- a/graphics/sane-backends/Makefile   Thu Jun 08 12:24:55 2006 +0000
+++ b/graphics/sane-backends/Makefile   Thu Jun 08 14:14:11 2006 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.29 2006/04/13 18:23:34 jlam Exp $
+# $NetBSD: Makefile,v 1.30 2006/06/08 14:14:11 ben Exp $
 
 .include "Makefile.common"
 COMMENT=       API for access to scanners, digitals camera, frame grabbers etc.
 
 DISTNAME=       sane-backends-${SANE_VERSION}
-PKGREVISION=   1
+DISTFILES=     ${DISTNAME}${EXTRACT_SUFX}
+PKGREVISION=   2
 
 USE_TOOLS+=            msgfmt
 USE_PKGLOCALEDIR=      YES
@@ -47,6 +48,7 @@
 .endfor
 .endif
 
+.include "options.mk"
 .if (${OPSYS} != "SunOS")
 . include "../../devel/libusb/buildlink3.mk"
 .endif
diff -r 0c1900e6a3ba -r fa0aef421175 graphics/sane-backends/PLIST
--- a/graphics/sane-backends/PLIST      Thu Jun 08 12:24:55 2006 +0000
+++ b/graphics/sane-backends/PLIST      Thu Jun 08 14:14:11 2006 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.16 2006/04/17 07:07:22 jlam Exp $
+@comment $NetBSD: PLIST,v 1.17 2006/06/08 14:14:11 ben Exp $
 bin/gamma4scanimage
 bin/sane-config
 bin/sane-find-scanner
@@ -28,6 +28,7 @@
 lib/sane/libsane-genesys.la
 lib/sane/libsane-gt68xx.la
 lib/sane/libsane-hp.la
+${SANE_HP3900}lib/sane/libsane-hp3900.la
 lib/sane/libsane-hp4200.la
 lib/sane/libsane-hp5400.la
 lib/sane/libsane-ibm.la
@@ -96,6 +97,7 @@
 man/man5/sane-gphoto2.5
 man/man5/sane-gt68xx.5
 man/man5/sane-hp.5
+${SANE_HP3900}man/man5/sane-hp3900.5
 man/man5/sane-hp5400.5
 man/man5/sane-hpsj5s.5
 man/man5/sane-ibm.5
@@ -244,6 +246,7 @@
 share/examples/sane/genesys.conf
 share/examples/sane/gt68xx.conf
 share/examples/sane/hp.conf
+${SANE_HP3900}share/examples/sane/hp3900.conf
 share/examples/sane/hp4200.conf
 share/examples/sane/hp5400.conf
 share/examples/sane/ibm.conf
diff -r 0c1900e6a3ba -r fa0aef421175 graphics/sane-backends/distinfo
--- a/graphics/sane-backends/distinfo   Thu Jun 08 12:24:55 2006 +0000
+++ b/graphics/sane-backends/distinfo   Thu Jun 08 14:14:11 2006 +0000
@@ -1,7 +1,10 @@
-$NetBSD: distinfo,v 1.19 2006/01/12 01:21:27 joerg Exp $
+$NetBSD: distinfo,v 1.20 2006/06/08 14:14:11 ben Exp $
 
 SHA1 (sane-backends-1.0.17.tar.gz) = a73e01575458a5fb7dc265cea50c6740555e1711
 RMD160 (sane-backends-1.0.17.tar.gz) = 43e440712e9da676e235dc6148c5dda347c30e22
 Size (sane-backends-1.0.17.tar.gz) = 3588993 bytes
+SHA1 (hp3900-sane1017_src_0.5.tar.gz) = 4a45100faae2572b2763253659f5cbfc8f5d31ea
+RMD160 (hp3900-sane1017_src_0.5.tar.gz) = d37163c66888de11fff41a0d0af09b9439dda34e
+Size (hp3900-sane1017_src_0.5.tar.gz) = 119430 bytes
 SHA1 (patch-aa) = fe4f9771d72512ac6a6c246971cb5940fba184cb
 SHA1 (patch-ab) = e9ed0b400458308a5c6a2631bda475c59e9a4abd
diff -r 0c1900e6a3ba -r fa0aef421175 graphics/sane-backends/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/sane-backends/options.mk Thu Jun 08 14:14:11 2006 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2006/06/08 14:14:11 ben Exp $
+
+PKG_OPTIONS_VAR=                PKG_OPTIONS.sane-backends
+PKG_SUPPORTED_OPTIONS=          hp3900
+PKG_SUGGESTED_OPTIONS=         #defined
+
+.include "../../mk/bsd.options.mk"
+
+# Package-specific option-handling
+
+###
+### hp3900 support
+###
+.if !empty(PKG_OPTIONS:Mhp3900)
+PLIST_SUBST+=   SANE_HP3900=""
+DISTFILES+=    hp3900-sane1017_src_0.5.tar.gz
+SITES.hp3900-sane1017_src_0.5.tar.gz=${MASTER_SITE_SOURCEFORGE:=hp3900-series/}
+post-patch:
+       cd ${WRKSRC} && \
+       ${PATCH} -p1 <${WRKDIR}/hp3900-sane1017_src_0.5/hp3900-sane1017_0.5.diff
+.else
+PLIST_SUBST+=   SANE_HP3900="@comment "
+.endif



Home | Main Index | Thread Index | Old Index