diff options
author | martymac <martymac@FreeBSD.org> | 2012-06-11 15:20:07 +0800 |
---|---|---|
committer | martymac <martymac@FreeBSD.org> | 2012-06-11 15:20:07 +0800 |
commit | 7be4f3be9827543be9394f540203e6bc7a55054d (patch) | |
tree | c17c26ba504e21857065e3d5fa83c225436b03bd /security/vlock | |
parent | 61913aa46cf0d2c645ee0148fb5270869d2c0e81 (diff) | |
download | freebsd-ports-graphics-7be4f3be9827543be9394f540203e6bc7a55054d.tar.gz freebsd-ports-graphics-7be4f3be9827543be9394f540203e6bc7a55054d.tar.zst freebsd-ports-graphics-7be4f3be9827543be9394f540203e6bc7a55054d.zip |
Switch to OptionsNg
Diffstat (limited to 'security/vlock')
-rw-r--r-- | security/vlock/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/security/vlock/Makefile b/security/vlock/Makefile index cf92468ca9e..4297973c3de 100644 --- a/security/vlock/Makefile +++ b/security/vlock/Makefile @@ -28,9 +28,11 @@ CONFIGURE_ARGS= --enable-plugins --enable-pam \ EXTRA_LDFLAGS="-L${LOCALBASE}/lib" USE_CSTD= gnu99 -OPTIONS= ROOTPWD "Enable unlock using root password" on \ - VLOCKSCRIPTS "Install sample hook scripts" off \ - CACASAVER "Enable libcaca screensaver" off +OPTIONS_DEFINE= ROOTPWD VLOCKSCRIPTS CACASAVER +OPTIONS_DEFAULT= ROOTPWD +ROOTPWD_DESC= Enable unlock using root password +VLOCKSCRIPTS_DESC= Install sample hook scripts +CACASAVER_DESC= Enable libcaca screensaver MANLANG= "" MAN1= vlock.1 @@ -49,20 +51,20 @@ PORTDOCS= ChangeLog PLUGINS README README.X11 SECURITY TODO .include <bsd.port.pre.mk> -.if !defined(WITHOUT_ROOTPWD) +.if ${PORT_OPTIONS:MROOTPWD} CONFIGURE_ARGS+= --enable-root-password .else CONFIGURE_ARGS+= --disable-root-password .endif -.if !defined(WITHOUT_VLOCKSCRIPTS) +.if ${PORT_OPTIONS:MVLOCKSCRIPTS} VLOCKSCRIPTS+= amarok.sh example_script.sh mplayer.sh PLIST_SUB+= PL_VLOCKSCRIPTS="" .else PLIST_SUB+= PL_VLOCKSCRIPTS="@comment " .endif -.if !defined(WITHOUT_CACASAVER) +.if ${PORT_OPTIONS:MCACASAVER} BUILD_DEPENDS+= ${LOCALBASE}/lib/libcaca.a:${PORTSDIR}/graphics/libcaca VLOCKMODULES+= caca.so PLIST_SUB+= PL_CACASAVER="" @@ -77,7 +79,7 @@ pre-install: if ! pw groupshow ${VLOCKGRP}; then pw groupadd ${VLOCKGRP} -g ${VLOCKGID}; fi post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for doc in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} |