mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
873be20ff6
PR: 39262, 39263, 39264, 39265, 39266, 39267 Submitted by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
67 lines
1.5 KiB
Makefile
67 lines
1.5 KiB
Makefile
# New ports collection makefile for: itcl
|
|
# Date created: Aug 17 1996
|
|
# Whom: chuckr
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= itcl
|
|
PORTVERSION= ${MAJOR}.${MINOR}
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR=incrtcl
|
|
DISTNAME= itcl${PORTVERSION}
|
|
|
|
MAINTAINER= ports@freebsd.org
|
|
|
|
LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/itcl
|
|
USE_REINPLACE= yes
|
|
INSTALLS_SHLIB= yes
|
|
PKGINSTALL= ${PORTSDIR}/lang/tcl83/pkg-install.tclsh
|
|
PKGDEINSTALL= ${PORTSDIR}/lang/tcl83/pkg-deinstall.tclsh
|
|
MAKE_ENV+= ${PLIST_SUB} \
|
|
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
|
|
|
|
EXTRACT_AFTER_ARGS=| ${TAR} -xf - ./itcl${MAJOR}.${MINOR}/itcl
|
|
|
|
.if defined(MAKE_JOBS)
|
|
MAKE_ARGS+= -j$(MAKE_JOBS)
|
|
.endif
|
|
|
|
SHLIB_MAJOR= 1
|
|
SHLIB_MINOR= 1
|
|
MAJOR= 3
|
|
MINOR= 2
|
|
PLIST_SUB+= MAJOR=${MAJOR} MINOR=${MINOR}
|
|
ITCL_LIB= libitcl${MAJOR}${MINOR}.so
|
|
MAKEFILE= ${FILESDIR}/Makefile.lib
|
|
|
|
MANCOMPRESSED= no
|
|
MANN= body.n class.n code.n configbody.n delete.n ensemble.n find.n
|
|
MANN+= itcl.n itcl_class.n itcl_info.n itclvars.n local.n scope.n
|
|
|
|
ITCL_LIB_FILE= ${ITCL_LIB}.${SHLIB_MAJOR}
|
|
|
|
post-extract:
|
|
${RM} ${WRKSRC}/pkgIndex.tcl
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} \
|
|
-e 's,package require Itcl,load [glob \
|
|
${WRKSRC}/${ITCL_LIB}.${SHLIB_MAJOR}*],;' \
|
|
${WRKSRC}/tests/*.test
|
|
|
|
post-build test:
|
|
cd ${WRKSRC} && ${SETENV} ITCL_LIBRARY=${WRKSRC}/library \
|
|
${PREFIX}/bin/tclsh8.3 tests/all.tcl
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.n ${PREFIX}/man/mann/
|
|
.if exists(${PKGINSTALL})
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|