summaryrefslogtreecommitdiffstats
path: root/graphics/sane-frontends
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-20 23:19:51 +0000
committerpav <pav@FreeBSD.org>2004-08-20 23:19:51 +0000
commit905609a46da4c05c967ba303a9d21230bd4f15d4 (patch)
tree97dd5d52fb6a0a1da582e186e63325b4839a72c4 /graphics/sane-frontends
parent787681dc75f68360e85f66584bb7431d0e2e5e7b (diff)
downloadFreeBSD-ports-905609a46da4c05c967ba303a9d21230bd4f15d4.zip
FreeBSD-ports-905609a46da4c05c967ba303a9d21230bd4f15d4.tar.gz
- Convert to OPTIONS
PR: ports/70737, ports/70738 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Diffstat (limited to 'graphics/sane-frontends')
-rw-r--r--graphics/sane-frontends/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/graphics/sane-frontends/Makefile b/graphics/sane-frontends/Makefile
index 112ba94..0aa7ce9 100644
--- a/graphics/sane-frontends/Makefile
+++ b/graphics/sane-frontends/Makefile
@@ -26,6 +26,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= scanadf.1 xcam.1 xscanimage.1
+OPTIONS= GTK1 "GTK1 support (Default is GTK2)" off \
+ GIMP "also build xscanimage as a GIMP plug-in" off
+
+.include <bsd.port.pre.mk>
+
.if defined(WITH_GTK1)
USE_GNOME+= gtk12
CONFIGURE_ARGS+= --disable-gtk2
@@ -45,15 +50,7 @@ CONFIGURE_ARGS+= --disable-gimp
.endif
.endif
-pre-everything::
-.if !defined(WITH_GIMP)
- @${ECHO_MSG} "*** Note: xscanimage can be built with a standalone"
- @${ECHO_MSG} "*** X scanner interface as well as a GIMP plug-in."
- @${ECHO_MSG} "*** If you wish to do this, hit Ctrl-C now and use"
- @${ECHO_MSG} "*** \"WITH_GIMP=yes\""
-.endif
-
post-install:
@${SED} 's:/usr/local:${PREFIX}:' ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud