blob: c1433bd8c25a569c8db40afd9a996d7a69f92411 (
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
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: tcl-Trf
# Date created: May 22, 2000
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
#
# $FreeBSD$
#
PORTNAME= Trf
PORTVERSION= 2.1p2
PORTREVISION= 1
CATEGORIES= devel tcl83
MASTER_SITES= http://www.oche.de/~akupries/soft/trf/download/
PKGNAMEPREFIX= tcl-
DISTNAME= trf${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
BUILD_DEPENDS= tclsh${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER:S/.//} \
${LOCALBASE}/lib/tcl${TCL_VER}/Memchan/pkgIndex.tcl:${PORTSDIR}/devel/tcl-memchan
USE_BZIP2= yes
ALL_TARGET= all test
MAKE_ARGS+= -j2
TCL_VER?= 8.3
DDIR= ${PREFIX}/lib/tcl${TCL_VER}/Trf
MAKE_ENV+= TCL_VER=${TCL_VER} MKDIR="${MKDIR}" \
INSTALL_DATA="${INSTALL_DATA}"
USE_REINPLACE= yes
REINPLACE_ARGS= -i ""
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} \
--with-tclinclude=${LOCALBASE}/include/tcl${TCL_VER} \
--enable-static-zlib --enable-static-bzlib \
--enable-static-md5
post-extract:
${RM} -rf ${WRKSRC}/compat
post-patch:
# Make direct calls to -lbz2
${REINPLACE_CMD} -e 's,bz\.([^(]+),BZ2_bz\u\1,g' \
${WRKSRC}/generic/bz2.c
# Make direct calls to -lz
${REINPLACE_CMD} -e 's,zf\.([^(]+),\1,g' ${WRKSRC}/generic/adler.c \
${WRKSRC}/generic/crc_zlib.c ${WRKSRC}/generic/zip.c
post-install:
${LN} -sf ${SHLIB_NAME} ${PREFIX}/lib/${SHLIB_LINK}
.ifndef(NOPORTDOCS)
${RM} -f ${WRKSRC}/doc/html/*.orig
${MKDIR} ${DOCSDIR}
${CP} -pR ${WRKSRC}/doc/html/* ${DOCSDIR}
${CHMOD} -R +r ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/painless-guide-to-crc.txt ${DOCSDIR}
.endif
.include <bsd.port.mk>
SHLIB_NAME= libTrf2.so.1
SHLIB_LINK= ${SHLIB_NAME:C/\.so\..*/.so/}
PLIST_SUB+= SHLIB_NAME=${SHLIB_NAME} SHLIB_LINK=${SHLIB_LINK}
|