Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= tclX |
8 |
PORTNAME= tclX |
9 |
PORTVERSION= 8.4 |
9 |
PORTVERSION= 8.4 |
10 |
CATEGORIES= lang tcl${TCL_DVER} devel |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES= lang tcl${USE_TCL} devel |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR=tclx |
13 |
MASTER_SITE_SUBDIR=tclx |
13 |
DISTNAME= tclx${PORTVERSION} |
14 |
DISTNAME= tclx${PORTVERSION} |
Lines 16-42
Link Here
|
16 |
COMMENT= Extended TCL |
17 |
COMMENT= Extended TCL |
17 |
|
18 |
|
18 |
USE_BZIP2= yes |
19 |
USE_BZIP2= yes |
19 |
LIB_DEPENDS= tcl${TCL_DVER}:${PORTSDIR}/lang/tcl${TCL_DVER} |
20 |
USE_TCL_BUILD= yes |
20 |
|
21 |
|
21 |
TCL_VER?= 8.4 |
22 |
USE_LDCONFIG= yes |
22 |
TCL_DVER?= ${TCL_VER:S/.//} |
|
|
23 |
|
24 |
INSTALLS_SHLIB= yes |
25 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
26 |
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include/tcl${TCL_VER}/unix\ |
24 |
CONFIGURE_ENV+= CPPFLAGS="-I${TCL_INCLUDEDIR}/unix\ |
27 |
-I${LOCALBASE}/include/tcl${TCL_VER}/generic" |
25 |
-I${TCL_INCLUDEDIR}/generic" |
28 |
CONFIGURE_ARGS= --enable-shared \ |
26 |
CONFIGURE_ARGS= --enable-shared \ |
29 |
--with-help=Help \ |
27 |
--with-help=Help \ |
30 |
--with-tcl="${LOCALBASE}/lib/tcl${TCL_VER}" |
28 |
--with-tcl="${TCL_LIBDIR}" |
31 |
PLIST_SUB= TCLX_VER=${PORTVERSION} |
29 |
PLIST_SUB= TCLX_VER=${PORTVERSION} |
32 |
ALL_TARGET= binaries libraries test |
30 |
ALL_TARGET= binaries libraries |
33 |
INSTALL_TARGET= install-binaries install-libraries |
31 |
INSTALL_TARGET= install-binaries install-libraries |
34 |
.ifndef(NOPORTDOCS) |
32 |
.ifndef(NOPORTDOCS) |
35 |
ALL_TARGET+= doc |
33 |
ALL_TARGET+= doc |
36 |
INSTALL_TARGET+=install-help |
34 |
INSTALL_TARGET+=install-help |
37 |
.endif |
35 |
.endif |
38 |
|
36 |
|
39 |
MAN3= CmdWrite.3 Handles.3 Keylist.3 ObjCmdWrite.3 TclXInit.3 |
37 |
MAN3= CmdWrite.3 Handles.3 Keylist.3 ObjCmdWrite.3 TclXInit.3 |
40 |
MANN= TclX.n |
38 |
MANN= TclX.n |
41 |
|
39 |
|
42 |
MLINKS= CmdWrite.3 TclCommandWriting.3 \ |
40 |
MLINKS= CmdWrite.3 TclCommandWriting.3 \ |
Lines 51-65
Link Here
|
51 |
MLINKS+= TclXInit.3 $l.3 |
49 |
MLINKS+= TclXInit.3 $l.3 |
52 |
.endfor |
50 |
.endfor |
53 |
|
51 |
|
|
|
52 |
.include <bsd.port.pre.mk> |
53 |
|
54 |
pre-configure: |
55 |
.if exists(${TCL_LIBDIR}/tclConfig-threads.sh) |
56 |
${REINPLACE_CMD} -e 's|tclConfig.sh|tclConfig-threads.sh|' \ |
57 |
${WRKSRC}/${CONFIGURE_SCRIPT} |
58 |
.endif |
59 |
${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \ |
60 |
${WRKSRC}/${CONFIGURE_SCRIPT} |
61 |
|
54 |
post-configure: |
62 |
post-configure: |
55 |
${REINPLACE_CMD} -e \ |
63 |
${REINPLACE_CMD} -e \ |
56 |
's,^TCLSH_PROG.*,TCLSH_PROG=${LOCALBASE}/bin/tclsh${TCL_VER},' \ |
64 |
's,^TCLSH_PROG.*,TCLSH_PROG=${TCLSH},' \ |
57 |
-e 's,TCL_LIBRARY=.*,\\,' ${WRKSRC}/Makefile |
65 |
-e 's,TCL_LIBRARY=.*,\\,' ${WRKSRC}/Makefile |
58 |
# Disabling the failing help.test |
66 |
# Disabling the failing help.test |
59 |
mv ${WRKSRC}/tests/help.test ${WRKSRC}/tests/help.test.dis |
67 |
${MV} ${WRKSRC}/tests/help.test ${WRKSRC}/tests/help.test.dis |
60 |
|
68 |
|
61 |
pre-su-install: |
69 |
pre-su-install: |
62 |
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3 |
70 |
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN3} ${PREFIX}/man/man3 |
63 |
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MANN} ${PREFIX}/man/mann |
71 |
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MANN} ${PREFIX}/man/mann |
64 |
|
72 |
|
65 |
.include <bsd.port.mk> |
73 |
regression-test: |
|
|
74 |
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} test) |
75 |
|
76 |
.include <bsd.port.post.mk> |