blob: 7a82be1162e2ebf0dc2e55a998bdde83c52b4812 (
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
59
60
61
62
63
64
65
66
67
68
69
70
|
# Created by: jkh
# $FreeBSD$
PORTNAME= tclX
PORTVERSION= 8.4
PORTREVISION= 3
CATEGORIES= lang tcl devel
MASTER_SITES= SF/${PORTNAME:L}/TclX/${PORTVERSION}.0
DISTNAME= tclx${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
COMMENT= Extended TCL
LICENSE= TclTk
LICENSE_NAME= Tcl/Tk License
LICENSE_FILE= ${WRKSRC}/license.terms
LICENSE_PERMS= auto-accept dist-mirror dist-sell pkg-mirror pkg-sell
USE_BZIP2= yes
USES= tcl
USE_LDCONFIG= ${PREFIX}/lib/tclx${PORTVERSION}
GNU_CONFIGURE= yes
CPPFLAGS+= -I${TCL_INCLUDEDIR}/unix\
-I${TCL_INCLUDEDIR}/generic
CONFIGURE_ARGS= --exec-prefix=${PREFIX} \
--enable-shared \
--with-help=Help \
--with-tcl="${TCL_LIBDIR}"
PLIST_SUB= TCLX_VER=${PORTVERSION}
ALL_TARGET= binaries libraries
INSTALL_TARGET= install-binaries install-libraries
.include <bsd.port.pre.mk>
.if ${TCL_VER} > 8.4
EXTRA_PATCHES+= ${FILESDIR}/tcl85-test-patch
PLIST_SUB+= BELOW_85='@comment '
.else
PLIST_SUB+= BELOW_85=''
.endif
post-configure:
${REINPLACE_CMD} -e \
's,^TCLSH_PROG.*,TCLSH_PROG=${TCLSH},' \
-e 's,TCL_LIBRARY=.*,\\,' ${WRKSRC}/Makefile
# Disabling the failing help.test
${MV} ${WRKSRC}/tests/help.test ${WRKSRC}/tests/help.test.dis
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/TclX.n ${STAGEDIR}${PREFIX}/man/mann
.for l in CmdWrite Handles Keylist ObjCmdWrite TclXInit
${INSTALL_DATA} ${WRKSRC}/doc/${l}.3 ${STAGEDIR}${PREFIX}/man/man3
.endfor
${LN} -s CmdWrite.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclCommandWriting.3.gz
${LN} -s KeyList.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclX_NewKeyedListObj.3.gz
.for l in Delete Get GetKeys Set TclX_Main TclX_NewKeyedListObj
${LN} -s KeyList.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclX_KeyedList${l}.3.gz
.endfor
.for l in Alloc Free TblInit TblRelease TblUseCount Walk Xlate
${LN} -s Handles.3.gz ${STAGEDIR}${PREFIX}/man/man3/TclX_Handle${l}.3.gz
.endfor
.for l in Tclxcmd_Init TclX_Main Tkx_Init TkX_Main
${LN} -s TclXInit.3.gz ${STAGEDIR}${PREFIX}/man/man3/${l}.3.gz
.endfor
regression-test: build
${SETENV} ${MAKE_ENV} ${MAKE} -C ${WRKSRC} test
.include <bsd.port.post.mk>
|