summaryrefslogtreecommitdiff
path: root/lang/expect/Makefile
blob: 306c7e56f259c3f7f12eff7e9e24f7a18e9b592a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:	expect
# Date created:		20 November 1994
# Whom:			pst
#
# $FreeBSD$

PORTNAME=	expect
PORTVERSION=	5.37.2
CATEGORIES=	lang tcl83 tk83
MASTER_SITES=	http://expect.nist.gov/src/

EXPECT_VER=	5.37
LIBEXPECT_VER=	537

MAINTAINER=	jerry@thehutt.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-${EXPECT_VER}
INSTALLS_SHLIB= yes
GNU_CONFIGURE=	yes

PLIST_SUB+=	EXPECT_VER="${EXPECT_VER}"
PLIST_SUB+=	LIBEXPECT_VER="${LIBEXPECT_VER}"

.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 \
		${TK_CONFIG_ARGS}

.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
.if !defined(WITHOUT_X11)
MAN1 += expectk.1
.endif
MAN3=		libexpect.3
.endif

post-install:
	${LN} -sf libexpect${LIBEXPECT_VER}.so.1 \
		${PREFIX}/lib/libexpect${LIBEXPECT_VER}.so

.include <bsd.port.mk>