1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/lang/itcl/Makefile
Pietro Cerutti d33268a8e5 Convert USES of tcl or tk from 84+ to 85+
This shouldn't change anything in the default case because tcl86 is chosen
anyway.
2017-09-07 10:56:40 +00:00

47 lines
1.2 KiB
Makefile

# Created by: chuckr
# $FreeBSD$
PORTNAME= itcl
PORTVERSION= 3.4.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang tcl
MASTER_SITES= SF/incrtcl/%5BIncr%20Tcl_Tk%5D-source/3.4.1
DISTNAME= itcl${PORTVERSION}
MAINTAINER= erik@bz.bzflag.bz
COMMENT= Object-oriented extension to Tcl [incr Tcl]
USES+= tcl:85+,tea
USE_LDCONFIG= ${PREFIX}/lib/itcl${PORTVERSION:R}
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
TEST_TARGET= test
PLIST_SUB+= PORTVERSION=${PORTVERSION} \
VERSION=${PORTVERSION:R} \
MAJOR=${PORTVERSION:R:R} \
SHORT=${PORTVERSION:R:S/.//}
MAN_3= Itcl_RegisterC.3 Itcl_Stack.3 Itcl_Class.3 \
Itcl_List.3 Itcl_Object.3 Itcl_Preserve.3
post-patch:
${REINPLACE_CMD} -E '/^includedir/s|/include|/include/itcl${PORTVERSION:R}|' \
${WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
${LN} -s libitcl.so.1 \
${STAGEDIR}${PREFIX}/lib/${PORTNAME}${PORTVERSION:R}/libitcl${PORTVERSION:R:S/.//}.so
${LN} -s ${PORTNAME}${PORTVERSION:R}/libitcl.so.1 \
${STAGEDIR}${PREFIX}/lib/libitcl.so.${PORTVERSION:R:R}
${LN} -s ${PORTNAME}${PORTVERSION:R}/libitcl.so.1 \
${STAGEDIR}${PREFIX}/lib/libitcl.so
.for FILE in ${MAN_3}
${INSTALL_DATA} ${WRKSRC}/doc/${FILE:S/Itcl_//} ${STAGEDIR}${MAN3PREFIX}/man/man3/${FILE}
.endfor
.include <bsd.port.mk>