1999-04-30 18:36:22 +02:00
|
|
|
# New ports collection makefile for: otcl
|
|
|
|
# Date created: 23 April 1999
|
|
|
|
# Whom: obonilla
|
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1999-04-30 18:36:22 +02:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= otcl
|
2007-04-30 14:56:46 +02:00
|
|
|
PORTVERSION= 1.13
|
2007-09-30 06:47:36 +02:00
|
|
|
PORTREVISION= 3
|
2007-02-26 23:22:44 +01:00
|
|
|
DISTVERSIONPREFIX= src-
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= lang 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:36:22 +02:00
|
|
|
|
2007-04-05 15:19:09 +02:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= MIT Object Tcl
|
1999-04-30 18:36:22 +02:00
|
|
|
|
2007-02-26 23:22:44 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
1999-04-30 18:36:22 +02:00
|
|
|
|
2007-04-30 14:56:46 +02:00
|
|
|
USE_TK= 80+
|
|
|
|
USE_TK_NO_THREADS= yes
|
2007-07-31 23:03:29 +02:00
|
|
|
USE_XORG= xext
|
2007-02-26 23:22:44 +01:00
|
|
|
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262
|
2006-08-15 02:29:13 +02:00
|
|
|
USE_LDCONFIG= yes
|
2003-01-02 19:42:39 +01:00
|
|
|
|
2007-02-26 23:22:44 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-04-30 14:56:46 +02:00
|
|
|
DOCS= CHANGES.html README.html \
|
2007-02-26 23:22:44 +01:00
|
|
|
doc/autoload.html doc/capi.html doc/class.html \
|
|
|
|
doc/object.html doc/otcl-paper.ps.gz doc/tutorial.html
|
|
|
|
PORTDOCS= ${DOCS:S/doc\///}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-30 14:56:46 +02:00
|
|
|
CFLAGS+= -DHAVE_UNISTD_H
|
- 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:22:44 +01:00
|
|
|
|
2006-12-01 15:14:47 +01:00
|
|
|
post-patch:
|
- 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
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
|
2007-07-30 17:03:09 +02:00
|
|
|
-e's|X11/Intrinsic.h|X11/Xlib.h|g' \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/conf/configure.in.x11
|
2007-04-30 14:56:46 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|../lib/tcl$$TCL_HI_VERS|${TCL_LIBDIR}|g' \
|
2007-07-30 17:03:09 +02:00
|
|
|
-e 's|../include|${TCL_INCLUDEDIR}/generic|g' \
|
|
|
|
${WRKSRC}/conf/configure.in.tcl
|
2007-04-30 14:56:46 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|../lib/tk$$TK_HI_VERS|${TK_LIBDIR}|g' \
|
2007-07-30 17:03:09 +02:00
|
|
|
-e 's|../include|${TK_INCLUDEDIR}/generic|g' \
|
|
|
|
${WRKSRC}/conf/configure.in.tk
|
2006-12-01 15:14:47 +01:00
|
|
|
|
1999-11-28 19:32:45 +01:00
|
|
|
post-install:
|
2000-02-23 15:02:37 +01:00
|
|
|
${LN} -sf libotcl.so ${PREFIX}/lib/libotcl.so.1
|
2003-01-02 19:42:39 +01:00
|
|
|
${STRIP_CMD} ${PREFIX}/bin/otclsh
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/owish
|
2000-05-31 20:17:39 +02:00
|
|
|
.if exists(${PKGINSTALL})
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
|
|
|
|
.endif
|
2007-02-26 23:22:44 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
1999-05-13 01:02:31 +02:00
|
|
|
|
2007-02-26 23:22:44 +01:00
|
|
|
.include <bsd.port.post.mk>
|