aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lang/expect/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/lang/expect/Makefile b/lang/expect/Makefile
index f3b0f1ab96a7..9a737346c236 100644
--- a/lang/expect/Makefile
+++ b/lang/expect/Makefile
@@ -17,12 +17,6 @@ CONFLICTS= expect-5.44*
PORTSCOUT= skipv:5.44.0,5.44.1 # These were recalled by NIST
-.if !defined(WITHOUT_X11)
-LIB_DEPENDS?= tk84.1:${PORTSDIR}/x11-toolkits/tk84
-.else
-LIB_DEPENDS?= tcl84.1:${PORTSDIR}/lang/tcl84
-.endif
-
EXPECT_VER= 5.43
LIBEXPECT_VER= 543
@@ -33,6 +27,16 @@ GNU_CONFIGURE= yes
PLIST_SUB+= EXPECT_VER="${EXPECT_VER}"
PLIST_SUB+= LIBEXPECT_VER="${LIBEXPECT_VER}"
+OPTIONS= X11 "Enable X11 support" on
+
+.include <bsd.port.options.mk>
+
+.if !defined(WITHOUT_X11)
+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 "