summaryrefslogtreecommitdiff
path: root/graphics/sane-backends/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/sane-backends/options.mk')
-rw-r--r--graphics/sane-backends/options.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/sane-backends/options.mk b/graphics/sane-backends/options.mk
new file mode 100644
index 00000000000..f3b50b95905
--- /dev/null
+++ b/graphics/sane-backends/options.mk
@@ -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