2000-06-09 05:27:54 +02:00
|
|
|
# New ports collection makefile for: tclgetopts
|
|
|
|
# Date created: 4 May 2000
|
|
|
|
# Whom: mi@aldan.algebra.com
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tcltls
|
2004-04-04 20:41:25 +02:00
|
|
|
PORTVERSION= 1.5.0
|
|
|
|
CATEGORIES= devel tcl83 tcl84
|
2003-10-27 21:49:36 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-02-21 23:37:38 +01:00
|
|
|
MASTER_SITE_SUBDIR=tls
|
2003-10-27 21:49:36 +01:00
|
|
|
DISTNAME= tls${PORTVERSION}-src
|
2000-06-09 05:27:54 +02:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= SSL extensions for TCL; dynamicly loadable
|
2000-06-09 05:27:54 +02:00
|
|
|
|
2001-02-21 23:37:38 +01:00
|
|
|
LIB_DEPENDS+= tcl${TCLVND}:${PORTSDIR}/lang/tcl${TCLVND}
|
2000-06-09 05:27:54 +02:00
|
|
|
|
2007-01-20 03:07:10 +01:00
|
|
|
MANUAL_PACKAGE_BUILD=Self-tests fail/hang
|
|
|
|
|
2001-02-21 23:37:38 +01:00
|
|
|
USE_OPENSSL= Yes
|
2000-06-09 05:27:54 +02:00
|
|
|
|
2004-04-04 20:41:25 +02:00
|
|
|
WRKSRC= ${WRKDIR}/tls${PORTVERSION:R}
|
2003-10-27 21:49:36 +01:00
|
|
|
|
2001-02-21 23:37:38 +01:00
|
|
|
PLIST_SUB+= TCL_VER=${TCL_VER} DISTNAME="${DISTNAME}"
|
|
|
|
MAKEFILE= ${FILESDIR}/Makefile.bsd
|
|
|
|
MAKE_ENV= TCL_VER=${TCL_VER} MKDIR="${MKDIR}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
|
|
|
OPENSSLINC="${OPENSSLINC}" OPENSSLLIB="${OPENSSLLIB}" \
|
|
|
|
OPENSSLDIR="${OPENSSLDIR}" CFLAGS="${CFLAGS}" \
|
2004-04-04 20:41:25 +02:00
|
|
|
SHLIB_NAME=libtls.so.1 \
|
2001-02-21 23:37:38 +01:00
|
|
|
PORTVERSION="${PORTVERSION}" SED="${SED}"
|
2004-04-04 20:41:25 +02:00
|
|
|
REINPLACE_ARGS= -i ""
|
|
|
|
ALL_TARGET= all
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's,package require tls.*,load ${WRKSRC}/libtls.so;\
|
|
|
|
source ${WRKSRC}/tls.tcl,' \
|
|
|
|
${WRKSRC}/tests/*.test
|
2005-06-20 16:34:11 +02:00
|
|
|
# The tests in ciphers.test are meaningless so far:
|
2004-04-04 20:41:25 +02:00
|
|
|
${MV} ${WRKSRC}/tests/ciphers.test ${WRKSRC}/tests/ciphers.test.broken
|
2000-06-09 05:27:54 +02:00
|
|
|
|
2007-06-11 21:56:59 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-06-09 05:27:54 +02:00
|
|
|
post-install:
|
2001-02-21 23:37:38 +01:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/tls
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tls.htm ${PREFIX}/share/doc/tls/
|
2007-06-11 21:56:59 +02:00
|
|
|
.endif
|
2000-06-09 05:27:54 +02:00
|
|
|
|
2004-04-04 20:41:25 +02:00
|
|
|
post-build test:
|
|
|
|
cd ${WRKSRC}/tests && env TCL_LIBRARY="${WRKSRC}" \
|
|
|
|
tclsh${TCL_VER} all.tcl
|
|
|
|
|
2003-10-27 21:49:36 +01:00
|
|
|
TCL_VER?= 8.4
|
2001-02-21 23:37:38 +01:00
|
|
|
TCLVND= ${TCL_VER:S/.//}
|
2000-06-09 05:27:54 +02:00
|
|
|
|
2001-02-21 23:37:38 +01:00
|
|
|
.include <bsd.port.mk>
|
2000-06-09 05:27:54 +02:00
|
|
|
|
2001-05-01 11:55:09 +02:00
|
|
|
PLIST_SUBP!= ${SETENV} ${MAKE_ENV} ${MAKE} -f ${MAKEFILE} environ
|
2001-02-21 23:37:38 +01:00
|
|
|
PLIST_SUB+= ${PLIST_SUBP}
|