diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-29 12:42:04 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-29 12:42:04 +0000 |
commit | 222461c302e52a3848555e999ecc7a10f98b278e (patch) | |
tree | 4fad0f8d9c328a570a49371daf5f0078d7075272 /math/calctool | |
parent | b6155c63444b79580e9bd13727472581d1ed66f1 (diff) | |
download | ports-222461c302e52a3848555e999ecc7a10f98b278e.tar.gz ports-222461c302e52a3848555e999ecc7a10f98b278e.zip |
Notes
Diffstat (limited to 'math/calctool')
-rw-r--r-- | math/calctool/Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/math/calctool/Makefile b/math/calctool/Makefile index 1d55cd7654ea..fd9ba5b187a8 100644 --- a/math/calctool/Makefile +++ b/math/calctool/Makefile @@ -18,15 +18,17 @@ COMMENT= A multi-GUI (terminal, X, XView) calculator program USE_LDCONFIG= yes -OPTIONS= X11 "Build X11 version of calctool" on \ - TTY "Build tty version of calctool" on \ - XVIEW "Build tty version of calctool" off +OPTIONS_DEFINE= X11 TTY XVIEW +OPTIONS_DEFAULT= X11 TTY +X11_DESC= Build X11 version of calctool +TTY_DESC= Build tty version of calctool +XVIEW_DESC= Build tty version of calctool MAN1= calctool.1 -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} USE_XORG= x11 BINARIES+= xcalctool PLIST_SUB+= X11="" @@ -34,14 +36,14 @@ PLIST_SUB+= X11="" PLIST_SUB+= X11="@comment " .endif -.if !defined(WITHOUT_TTY) +.if ${PORT_OPTIONS:MTTY} BINARIES+= tty_calctool PLIST_SUB+= TTY="" .else PLIST_SUB+= TTY="@comment " .endif -.if defined(WITH_XVIEW) +.if ${PORT_OPTIONS:MXVIEW} BINARIES+= xv_calctool LIB_DEPENDS+= xview.3:${PORTSDIR}/x11-toolkits/xview PLIST_SUB+= XVIEW="" @@ -72,4 +74,4 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/calctool.1 ${PREFIX}/man/man1 ${INSTALL_DATA} ${WRKSRC}/calctool.help ${DATADIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |