aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2010-02-12 18:37:20 +0800
committerpav <pav@FreeBSD.org>2010-02-12 18:37:20 +0800
commita9685044aa6ede22d0e14c2e0003374b8daf2f86 (patch)
tree19b0de04755cb1e2c0fa434a02b23c2d04593214 /lang
parent60a4fc11e234e41653cb4f1db9d33deb31891a6c (diff)
downloadfreebsd-ports-gnome-a9685044aa6ede22d0e14c2e0003374b8daf2f86.tar.gz
freebsd-ports-gnome-a9685044aa6ede22d0e14c2e0003374b8daf2f86.tar.zst
freebsd-ports-gnome-a9685044aa6ede22d0e14c2e0003374b8daf2f86.zip
- Optionalize
PR: ports/143588 Submitted by: James Wagner <jwagner@graffadmin.com>
Diffstat (limited to 'lang')
-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 "