aboutsummaryrefslogtreecommitdiffstats
path: root/lang/expect
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-11-25 04:04:18 +0800
committerdwcjr <dwcjr@FreeBSD.org>2001-11-25 04:04:18 +0800
commit6cb711322cc8629d5fc1a0116a2f9be1d893f1de (patch)
tree092b22e768b4fcdcea39a907b35ce7919a3c4090 /lang/expect
parenta70cf7acf5e19749eef33879d7988fff501c373c (diff)
downloadfreebsd-ports-gnome-6cb711322cc8629d5fc1a0116a2f9be1d893f1de.tar.gz
freebsd-ports-gnome-6cb711322cc8629d5fc1a0116a2f9be1d893f1de.tar.zst
freebsd-ports-gnome-6cb711322cc8629d5fc1a0116a2f9be1d893f1de.zip
Add support for building without X11 support
PR: 28727 Submitted by: khera@kciLink.com
Diffstat (limited to 'lang/expect')
-rw-r--r--lang/expect/Makefile22
-rw-r--r--lang/expect/pkg-plist2
2 files changed, 20 insertions, 4 deletions
diff --git a/lang/expect/Makefile b/lang/expect/Makefile
index 7bcbe4ec8ee0..fff53affa124 100644
--- a/lang/expect/Makefile
+++ b/lang/expect/Makefile
@@ -11,20 +11,36 @@ MASTER_SITES= http://expect.nist.gov/src/
MAINTAINER= john@coastalgeology.org
+.if !defined(WITHOUT_X11)
LIB_DEPENDS?= tk83.1:${PORTSDIR}/x11-toolkits/tk83
+.else
+LIB_DEPENDS?= tcl83.1:${PORTSDIR}/lang/tcl83
+.endif
WRKSRC= ${WRKDIR}/expect-5.32
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
+
+.if defined(WITHOUT_X11)
+TK_CONFIG_ARGS =
+PLIST_SUB += XFILES="@comment "
+.else
+TK_CONFIG_ARGS = --with-tkconfig=${PREFIX}/lib/tk8.3 \
+ --with-tkinclude=${PREFIX}/include/tk8.3
+PLIST_SUB += XFILES=""
+.endif
+
CONFIGURE_ARGS?= --enable-shared \
--with-tclconfig=${PREFIX}/lib/tcl8.3 \
--with-tclinclude=${PREFIX}/include/tcl8.3 \
- --with-tkconfig=${PREFIX}/lib/tk8.3 \
- --with-tkinclude=${PREFIX}/include/tk8.3
+ ${TK_CONFIG_ARGS}
.if !defined(NO_MAN_INSTALL)
MAN1= autoexpect.1 cryptdir.1 decryptdir.1 dislocate.1 \
- expect.1 expectk.1 kibitz.1 mkpasswd.1 passmass.1 \
+ expect.1 kibitz.1 mkpasswd.1 passmass.1 \
tknewsbiff.1 unbuffer.1 xkibitz.1
+.if !defined(WITHOUT_X11)
+MAN1 += expectk.1
+.endif
MAN3= libexpect.3
.endif
diff --git a/lang/expect/pkg-plist b/lang/expect/pkg-plist
index 9c0604f7fbec..70be623ccf7a 100644
--- a/lang/expect/pkg-plist
+++ b/lang/expect/pkg-plist
@@ -4,7 +4,7 @@ bin/cryptdir
bin/decryptdir
bin/dislocate
bin/expect
-bin/expectk
+%%XFILES%%bin/expectk
bin/ftp-rfc
bin/kibitz
bin/lpunlock