aboutsummaryrefslogtreecommitdiffstats
path: root/lang/expect/Makefile
blob: 502c0a2a9783258140241eff5f80cc74af1204fd (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
# Created by: pst
# $FreeBSD$

PORTNAME=   expect
PORTVERSION=    5.45.3
CATEGORIES= lang tcl tk
MASTER_SITES=   SF/expect/Expect/${PORTVERSION:R}
DISTNAME=   ${PORTNAME}${PORTVERSION:R}

MAINTAINER= tcltk@FreeBSD.org
COMMENT=    Sophisticated scripter based on Tcl/Tk

LIBEXPECT_VER=  ${PORTVERSION:S/.//g}

WRKSRC=     ${WRKDIR}/${DISTNAME}

USES=       tcl autoreconf
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared \
        --exec-prefix=${PREFIX} \
        --datadir=${DATADIR} \
        --with-tclconfig=${TCL_LIBDIR} \
        --with-tclinclude=${TCL_INCLUDEDIR}
CONFIGURE_ENV=  ac_cv_sys_long_file_names=yes
PLIST_SUB+= EXPECT_VER=${PORTVERSION} \
        LIBEXPECT_VER=${LIBEXPECT_VER}

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

do-test:
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} test

.include <bsd.port.mk>