aboutsummaryrefslogtreecommitdiffstats
path: root/devel/tcl-trf/Makefile
blob: 1956bf5c8d349da3e15d549f42b0049998e16f50 (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
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$

PORTNAME=   Trf
PORTVERSION=    2.1.4
PORTREVISION=   3
CATEGORIES= devel tcl
MASTER_SITES=   SF/tcltrf/tcltrf/${PORTVERSION}
PKGNAMEPREFIX=  tcl-
DISTNAME=   trf${PORTVERSION}

MAINTAINER= mi@aldan.algebra.com
COMMENT=    Data conversion, digests, compression, error-correction for Tcl

LICENSE=    Tcl_Trf_License
LICENSE_NAME=   Tcl Trf License
LICENSE_FILE=   ${WRKSRC}/doc/license.terms
LICENSE_PERMS=  dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

TEST_DEPENDS=   ${LOCALBASE}/lib/Memchan2.3/libMemchan.so.1:devel/tcl-memchan

USES+=      tcl:tea tar:bzip2
USE_LDCONFIG=   ${PREFIX}/lib/Trf
DDIR=       ${PREFIX}/lib/tcl${TCL_VER}/Trf
CFLAGS+=    -Wall -Werror

MAKE_ENV+=  INSTALL_DATA="${INSTALL_DATA}"

REINPLACE_ARGS= -i ""
CONFIGURE_ARGS+=--enable-static-zlib --enable-static-bzlib \
        --enable-static-md5

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/lib/Trf
    ${INSTALL_DATA} ${WRKSRC}/libTrf${PORTVERSION}.so \
        ${WRKSRC}/pkgIndex.tcl ${STAGEDIR}${PREFIX}/lib/Trf/
    for m in ${WRKSRC}/doc/man/*.n  ;   \
    do  \
        ${INSTALL_MAN} $$m ${STAGEDIR}${MANNPREFIX}/man/mann/ ;\
    done
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/Trf/libTrf${PORTVERSION}.so

do-test:
    cd ${WRKSRC} && ${SETENV} TCLLIBPATH="${WRKSRC}" ${TCLSH} \
        ${FILESDIR}/alltests.tcl

PLIST_SUB+= TCL_DVER=${TCL_VER:C/\.//} VER=${PORTVERSION}

.include <bsd.port.mk>