1999-04-30 18:59:35 +02:00
|
|
|
# New ports collection makefile for: tclcl
|
|
|
|
# Date created: 23 April 1999
|
2003-10-24 04:18:36 +02:00
|
|
|
# Whom: obonilla@fisicc-ufm.edu
|
1999-04-30 18:59:35 +02:00
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1999-04-30 18:59:35 +02:00
|
|
|
#
|
|
|
|
|
2000-04-14 07:44:42 +02:00
|
|
|
PORTNAME= tclcl
|
2007-04-30 15:00:03 +02:00
|
|
|
PORTVERSION= 1.19
|
2007-09-30 06:47:36 +02:00
|
|
|
PORTREVISION= 2
|
2007-02-26 23:26:50 +01:00
|
|
|
DISTVERSIONPREFIX= src-
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= devel tcl tk
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
MASTER_SITES= SF/otcl-tclcl
|
1999-04-30 18:59:35 +02:00
|
|
|
|
2007-04-05 15:19:09 +02:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= Tcl/C++ interface used by ns and nam
|
1999-04-30 18:59:35 +02:00
|
|
|
|
2007-02-26 23:26:50 +01:00
|
|
|
LIB_DEPENDS= otcl:${PORTSDIR}/lang/otcl
|
1999-04-30 18:59:35 +02:00
|
|
|
|
2007-02-26 23:26:50 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2007-09-30 06:47:36 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:261
|
1999-04-30 18:59:35 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-02-26 23:26:50 +01:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2007-04-30 15:00:03 +02:00
|
|
|
PORTDOCS= CHANGES.html TODO.html
|
2007-02-26 23:26:50 +01:00
|
|
|
.endif
|
1999-11-28 19:32:45 +01:00
|
|
|
|
2004-09-29 07:45:34 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-30 15:00:03 +02:00
|
|
|
# We have to link against the same Tcl/Tk version as OTcl does
|
|
|
|
.if exists(${LOCALBASE}/bin/otclsh)
|
|
|
|
OTCL_TCLVER!= ${ECHO_CMD} puts \$$tcl_version | ${LOCALBASE}/bin/otclsh
|
|
|
|
USE_TK= ${OTCL_TCLVER:S/.//}
|
|
|
|
.else
|
|
|
|
USE_TK= 80+
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CONFIGURE_ARGS= --with-tcl-ver=${TCL_VER} --with-tk-ver=${TK_VER}
|
2007-02-26 23:26:50 +01:00
|
|
|
|
2007-04-30 15:00:03 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|exec tclsh|exec ${TCLSH}|g' ${WRKSRC}/otcldoc
|
|
|
|
@${REINPLACE_CMD} -e 's|../lib/tcl$$TCL_HI_VERS|${TCL_LIBDIR}|g' \
|
|
|
|
-e 's|../include|${TCL_INCLUDEDIR}/generic|g' ${WRKSRC}/conf/configure.in.tcl
|
|
|
|
@${REINPLACE_CMD} -e 's|../lib/tk$$TK_HI_VERS|${TK_LIBDIR}|g' \
|
|
|
|
-e 's|../include|${TK_INCLUDEDIR}/generic|g' ${WRKSRC}/conf/configure.in.tk
|
|
|
|
|
1999-04-30 18:59:35 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/tcl2c++ ${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/otcldoc ${PREFIX}/bin
|
2007-02-26 23:26:50 +01:00
|
|
|
${MKDIR} ${PREFIX}/include/tclcl
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/tclcl
|
1999-04-30 18:59:35 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libtclcl.a ${PREFIX}/lib
|
1999-08-28 03:58:05 +02:00
|
|
|
@${LN} -sf ${PREFIX}/lib/libtclcl.a ${PREFIX}/lib/libTcl.a
|
2007-02-26 23:26:50 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-09-29 07:45:34 +02:00
|
|
|
.include <bsd.port.post.mk>
|