mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
- Convert to OPTIONS
PR: ports/70737, ports/70738 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
This commit is contained in:
parent
c0634f6813
commit
f2c0f51fd8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116858
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user