1999-04-30 16:36:22 +00:00
|
|
|
# New ports collection makefile for: otcl
|
|
|
|
# Date created: 23 April 1999
|
|
|
|
# Whom: obonilla
|
|
|
|
#
|
1999-08-25 06:35:40 +00:00
|
|
|
# $FreeBSD$
|
1999-04-30 16:36:22 +00:00
|
|
|
#
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= otcl
|
2007-04-30 12:56:46 +00:00
|
|
|
PORTVERSION= 1.13
|
2007-02-26 22:22:44 +00:00
|
|
|
DISTVERSIONPREFIX= src-
|
2011-03-23 11:37:49 +00:00
|
|
|
PORTREVISION= 4
|
2008-04-09 13:42:26 +00:00
|
|
|
CATEGORIES= lang tcl tk
|
2009-08-22 00:24:37 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}-tclcl/OTcl/${PORTVERSION}
|
1999-04-30 16:36:22 +00:00
|
|
|
|
2007-04-05 13:19:09 +00:00
|
|
|
MAINTAINER= mm@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= MIT Object Tcl
|
1999-04-30 16:36:22 +00:00
|
|
|
|
2011-03-23 11:37:49 +00:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2007-02-26 22:22:44 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
1999-04-30 16:36:22 +00:00
|
|
|
|
2009-07-07 06:48:54 +00:00
|
|
|
USE_TK= 82+
|
2007-04-30 12:56:46 +00:00
|
|
|
USE_TK_NO_THREADS= yes
|
2009-02-14 14:19:42 +00:00
|
|
|
INVALID_TK_VER= 85 86
|
2007-07-31 21:03:29 +00:00
|
|
|
USE_XORG= xext
|
2007-02-26 22:22:44 +00:00
|
|
|
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2006-08-15 00:29:13 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-01-02 18:42:39 +00:00
|
|
|
|
2007-02-26 22:22:44 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-04-30 12:56:46 +00:00
|
|
|
DOCS= CHANGES.html README.html \
|
2007-02-26 22:22:44 +00: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 12:56:46 +00: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 17:56:05 +00:00
|
|
|
CONFIGURE_ARGS+= --with-tcl-ver=${TCL_VER} --with-tk-ver=${TK_VER}
|
2007-02-26 22:22:44 +00:00
|
|
|
|
2006-12-01 14:14:47 +00: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 17:56:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
|
2007-07-30 15:03:09 +00:00
|
|
|
-e's|X11/Intrinsic.h|X11/Xlib.h|g' \
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/conf/configure.in.x11
|
2007-04-30 12:56:46 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|../lib/tcl$$TCL_HI_VERS|${TCL_LIBDIR}|g' \
|
2007-07-30 15:03:09 +00:00
|
|
|
-e 's|../include|${TCL_INCLUDEDIR}/generic|g' \
|
|
|
|
${WRKSRC}/conf/configure.in.tcl
|
2007-04-30 12:56:46 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|../lib/tk$$TK_HI_VERS|${TK_LIBDIR}|g' \
|
2007-07-30 15:03:09 +00:00
|
|
|
-e 's|../include|${TK_INCLUDEDIR}/generic|g' \
|
|
|
|
${WRKSRC}/conf/configure.in.tk
|
2006-12-01 14:14:47 +00:00
|
|
|
|
1999-11-28 18:32:45 +00:00
|
|
|
post-install:
|
2000-02-23 14:02:37 +00:00
|
|
|
${LN} -sf libotcl.so ${PREFIX}/lib/libotcl.so.1
|
2003-01-02 18:42:39 +00:00
|
|
|
${STRIP_CMD} ${PREFIX}/bin/otclsh
|
|
|
|
${STRIP_CMD} ${PREFIX}/bin/owish
|
2000-05-31 18:17:39 +00:00
|
|
|
.if exists(${PKGINSTALL})
|
|
|
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
|
|
|
|
.endif
|
2007-02-26 22:22:44 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
1999-05-12 23:02:31 +00:00
|
|
|
|
2007-02-26 22:22:44 +00:00
|
|
|
.include <bsd.port.post.mk>
|