summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-08-20 23:19:51 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-08-20 23:19:51 +0000
commitf2c0f51fd892cd49c2a937d059f7737abc60f34a (patch)
tree903ca7bdabce711d95bcd158e5b9bfdca2553cb9
parent- Convert to OPTIONS (diff)
- Convert to OPTIONS
PR: ports/70737, ports/70738 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Notes
Notes: svn path=/head/; revision=116858
-rw-r--r--graphics/sane-backends/Makefile11
-rw-r--r--graphics/sane-frontends/Makefile15
2 files changed, 9 insertions, 17 deletions
diff --git a/graphics/sane-backends/Makefile b/graphics/sane-backends/Makefile
index 7b9cf2e1e2b7..77cabfebb109 100644
--- a/graphics/sane-backends/Makefile
+++ b/graphics/sane-backends/Makefile
@@ -25,6 +25,9 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
MAKE_ENV= NOPORTDOCS=${NOPORTDOCS}
INSTALLS_SHLIB= yes
+OPTIONS= NLS "NLS support" on \
+ GPHOTO2 "gPhoto2 support" off
+
.include <bsd.port.pre.mk>
.if defined(WITHOUT_NLS)
@@ -43,13 +46,5 @@ CONFIGURE_ARGS+= --with-gphoto2=no
PLIST_SUB+= GPHOTO2="@comment "
.endif
-pre-everything::
-.if !defined(WITH_GPHOTO2)
- @${ECHO_MSG}
- @${ECHO_MSG} "If you want to compile with gPhoto2 support,"
- @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_GPHOTO2=yes\""
- @${ECHO_MSG}
-.endif
-
.include "Makefile.man"
.include <bsd.port.post.mk>
diff --git a/graphics/sane-frontends/Makefile b/graphics/sane-frontends/Makefile
index 112ba9463924..0aa7ce9deda7 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>