1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/lang/itcl/Makefile
Rene Ladan a22c18c896 - Stage support
- Include bsd.port.mk only once

PR:		ports/187639
Submitted by:	ohauer@
Approved by:	maintainer timeout (erik@bz.bzflag.bz , 19 days)
2014-04-04 21:09:37 +00:00

56 lines
1.6 KiB
Makefile

# Created by: chuckr
# $FreeBSD$
PORTNAME= itcl
PORTVERSION= 3.4.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
USE_LDCONFIG= ${PREFIX}/lib/itcl${PORTVERSION:R}
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
GNU_CONFIGURE= yes
CFLAGS+= -I${TCL_INCLUDEDIR}/generic
CONFIGURE_ARGS= --with-tcl=${TCL_LIBDIR} \
--with-tclinclude=${TCL_INCLUDEDIR} \
--prefix=${PREFIX} \
--exec-prefix=${PREFIX}
CONFIGURE_ENV+= ac_cv_c_tclh=${TCL_INCLUDEDIR}/unix
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-build test:
(cd ${WRKSRC} && ${SETENV} ITCL_LIBRARY=${WRKSRC}/library \
${TCLSH} tests/all.tcl -load "load ./libitcl.so.1")
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>