summaryrefslogtreecommitdiffstats
path: root/devel/tcl-trf/Makefile
diff options
context:
space:
mode:
authormi <mi@FreeBSD.org>2002-02-17 16:03:11 +0000
committermi <mi@FreeBSD.org>2002-02-17 16:03:11 +0000
commit234c565051c8e3ccdcd34e988732a36fcb7daac0 (patch)
treee07a2f1534b7bfa91029ae4c65a5d5ef400e4459 /devel/tcl-trf/Makefile
parent03ae89647b812f61db881cb19b509ed8049a8bee (diff)
downloadFreeBSD-ports-234c565051c8e3ccdcd34e988732a36fcb7daac0.zip
FreeBSD-ports-234c565051c8e3ccdcd34e988732a36fcb7daac0.tar.gz
Resolve a few more symbols at compile/link time, rather than at
run-time. This fixes the bz2 commands. We link against -lmd, so use <md2.h> and <md5.h>, instead of <openssl/md[25].h> (why do we even install those separately?). Bump up portrevision. Change the reference (in the comment) from -lscrypt to -lcrypt.
Diffstat (limited to 'devel/tcl-trf/Makefile')
-rw-r--r--devel/tcl-trf/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/devel/tcl-trf/Makefile b/devel/tcl-trf/Makefile
index d88c856..8f21186 100644
--- a/devel/tcl-trf/Makefile
+++ b/devel/tcl-trf/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Trf
PORTVERSION= 2.1p2
+PORTREVISION= 1
CATEGORIES= devel tcl83
MASTER_SITES= http://www.oche.de/~akupries/soft/trf/download/
PKGNAMEPREFIX= tcl-
@@ -32,7 +33,17 @@ 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
-CONFIGURE_ENV+= CFLAGS_OPTIMIZE="${CFLAGS}"
+
+post-extract:
+ ${RM} -rf ${WRKSRC}/compat
+
+post-patch:
+ # Make direct calls to -lbz2
+ ${PERL} -pi -e 's,bz\.([^(]+),BZ2_bz\u\1,g' \
+ ${WRKSRC}/generic/bz2.c
+ # Make direct calls to -lz
+ ${PERL} -pi -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}
@@ -40,6 +51,7 @@ post-install:
${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
OpenPOWER on IntegriCloud