diff options
author | bapt <bapt@FreeBSD.org> | 2012-06-13 13:13:04 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-06-13 13:13:04 +0800 |
commit | 53b00caed933fbf2a25da32a4dd590a5f8033114 (patch) | |
tree | 8e4782a6af8a960d75e2de008a18466af4df4a6d /lang/expect | |
parent | 22b763f0b6404cf6570de5a8b8b8bace97388a19 (diff) | |
download | freebsd-ports-gnome-53b00caed933fbf2a25da32a4dd590a5f8033114.tar.gz freebsd-ports-gnome-53b00caed933fbf2a25da32a4dd590a5f8033114.tar.zst freebsd-ports-gnome-53b00caed933fbf2a25da32a4dd590a5f8033114.zip |
Convert to new options framework
Diffstat (limited to 'lang/expect')
-rw-r--r-- | lang/expect/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lang/expect/Makefile b/lang/expect/Makefile index bd3bbb7a7c55..ed6d6e0f5d66 100644 --- a/lang/expect/Makefile +++ b/lang/expect/Makefile @@ -27,23 +27,24 @@ GNU_CONFIGURE= yes PLIST_SUB+= EXPECT_VER="${EXPECT_VER}" PLIST_SUB+= LIBEXPECT_VER="${LIBEXPECT_VER}" -OPTIONS= X11 "Enable X11 support" on +OPTIONS_DEFINE= X11 +OPTIONS_DEFAULT= X11 .include <bsd.port.options.mk> -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} LIB_DEPENDS?= tk84.1:${PORTSDIR}/x11-toolkits/tk84 .else LIB_DEPENDS?= tcl84.1:${PORTSDIR}/lang/tcl84 .endif -.if defined(WITHOUT_X11) -TK_CONFIG_ARGS= -PLIST_SUB+= XFILES="@comment " -.else +.if ${PORT_OPTIONS:MX11} TK_CONFIG_ARGS= --with-tkconfig=${LOCALBASE}/lib/tk8.4 \ --with-tkinclude=${LOCALBASE}/include/tk8.4 PLIST_SUB+= XFILES="" +.else +TK_CONFIG_ARGS= +PLIST_SUB+= XFILES="@comment " .endif CONFIGURE_ARGS?=--enable-shared \ @@ -55,7 +56,7 @@ CONFIGURE_ARGS?=--enable-shared \ MAN1= autoexpect.1 cryptdir.1 decryptdir.1 dislocate.1 \ expect.1 kibitz.1 mkpasswd.1 multixterm.1 passmass.1 \ tknewsbiff.1 unbuffer.1 xkibitz.1 -.if !defined(WITHOUT_X11) +.if ${PORT_OPTIONS:MX11} MAN1+= expectk.1 .endif MAN3= libexpect.3 |