diff options
author | mm <mm@FreeBSD.org> | 2007-12-31 20:12:28 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2007-12-31 20:12:28 +0800 |
commit | af4dc80de58568460c709eb579ef7c0cb8b01061 (patch) | |
tree | e6622595919a5d010fb6e4b3526ff806a0bfa7f2 | |
parent | 3407f6dc193aaf453c6874ebc624bbdcf7c73872 (diff) | |
download | freebsd-ports-graphics-af4dc80de58568460c709eb579ef7c0cb8b01061.tar.gz freebsd-ports-graphics-af4dc80de58568460c709eb579ef7c0cb8b01061.tar.zst freebsd-ports-graphics-af4dc80de58568460c709eb579ef7c0cb8b01061.zip |
- If defined WITHOUT_X11: fix build, install and add PKGNAMESUFFIX -nox11
-rw-r--r-- | lang/expect-devel/Makefile | 18 | ||||
-rw-r--r-- | lang/expect-devel/pkg-plist | 8 |
2 files changed, 19 insertions, 7 deletions
diff --git a/lang/expect-devel/Makefile b/lang/expect-devel/Makefile index f0753e2f612..87e2b728fac 100644 --- a/lang/expect-devel/Makefile +++ b/lang/expect-devel/Makefile @@ -23,6 +23,7 @@ EXPECT_VER= ${PORTVERSION} .if !defined(WITHOUT_X11) USE_TK= 84+ .else +PKGNAMESUFFIX= -nox11 USE_TCL= 84+ .endif @@ -54,14 +55,25 @@ CFLAGS+= -I${TCL_INCLUDEDIR} -I${TCL_INCLUDEDIR}/generic .if !defined(NO_MAN_INSTALL) 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 + expect.1 kibitz.1 mkpasswd.1 passmass.1 unbuffer.1 xkibitz.1 .if !defined(WITHOUT_X11) -MAN1+= expectk.1 +MAN1+= expectk.1 multixterm.1 tknewsbiff.1 .endif MAN3= libexpect.3 .endif +post-patch: +.if defined(WITHOUT_X11) + @${REINPLACE_CMD} -e 's/TEA_PATH_TKCONFIG//g' \ + -e 's/TEA_LOAD_TKCONFIG//g' -e 's/TEA_PUBLIC_TK_HEADERS//g' \ + ${WRKSRC}/configure.in + @${REINPLACE_CMD} -e 's/expect expectk/expect/g' \ + -e 's/multixterm//g' -e 's/tknewsbiff//g' -e 's/tkpasswd//g' \ + -e 's/xpstat//g' -e 's/@TK_INCLUDES@//g' \ + -e 's|$$(INSTALL_DATA) $$(srcdir)/expectk.man|#|g' \ + ${WRKSRC}/Makefile.in +.endif + pre-configure: ${TOUCH} ${WRKSRC}/configure @cd ${WRKSRC}/testsuite && ${AUTOCONF} -I .. diff --git a/lang/expect-devel/pkg-plist b/lang/expect-devel/pkg-plist index 61d557e2408..4fe104d3a6f 100644 --- a/lang/expect-devel/pkg-plist +++ b/lang/expect-devel/pkg-plist @@ -9,18 +9,18 @@ bin/ftp-rfc bin/kibitz bin/lpunlock bin/mkpasswd -bin/multixterm +%%XFILES%%bin/multixterm bin/passmass bin/rftp bin/rlogin-cwd bin/timed-read bin/timed-run -bin/tknewsbiff -bin/tkpasswd +%%XFILES%%bin/tknewsbiff +%%XFILES%%bin/tkpasswd bin/unbuffer bin/weather bin/xkibitz -bin/xpstat +%%XFILES%%bin/xpstat include/expect.h include/expect_comm.h include/expect_tcl.h |