blob: bc3ac34e2c15e418ddd870e3d2de6a7541fa61fb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# New ports collection makefile for: itcl
# Date created: Aug 17 1996
# Whom: chuckr
#
# $FreeBSD$
#
PORTNAME= itcl
PORTVERSION= 3.3
PORTREVISION= 2
CATEGORIES= lang tcl84
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=incrtcl
DISTNAME= itcl${PORTVERSION}
MAINTAINER= erik@smluc.org
COMMENT= Object extension to Tcl [incr Tcl]
USE_TCL= 84+
USE_LDCONFIG= yes
MAKE_ENV+= ${PLIST_SUB} \
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \
USE_TCL=${USE_TCL} TCL_INCLUDEDIR=${TCL_INCLUDEDIR}
.if defined(MAKE_JOBS)
MAKE_ARGS+= -j${MAKE_JOBS}
.endif
SHLIB_MAJOR= ${MAJOR}
SHLIB_MINOR= ${MINOR}
MAJOR= ${PORTVERSION:R}
MINOR= ${PORTVERSION:E}
PLIST_SUB+= MAJOR=${MAJOR} MINOR=${MINOR}
ITCL_LIB= libitcl.so
MAKEFILE= ${FILESDIR}/Makefile.lib
MANCOMPRESSED= no
MANN= body.n class.n code.n configbody.n delete.n ensemble.n find.n
MANN+= is.n itcl.n itclvars.n local.n scope.n
MAN3= RegisterC.3 Stack.3
ITCL_LIB_FILE= ${ITCL_LIB}.${SHLIB_MAJOR}
.include <bsd.port.pre.mk>
post-build test:
cd ${WRKSRC} && ${SETENV} ITCL_LIBRARY=${WRKSRC}/library \
${TCLSH} tests/all.tcl -load "load ./${ITCL_LIB}"
.if ${USE_TCL} == 85
@${ECHO} "ensemble.test fails due to changed error message. It's OK."
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/*.n ${PREFIX}/man/mann/
${INSTALL_DATA} ${WRKSRC}/doc/*.3 ${PREFIX}/man/man3/
.include <bsd.port.post.mk>
|