summaryrefslogtreecommitdiff
path: root/lang/otcl/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-02-26 22:22:44 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-02-26 22:22:44 +0000
commit049705e8f8f0d3b834891ba702eab039dae8bf58 (patch)
tree2191dc5fb0663735c5e62cc62929e06ea63fe996 /lang/otcl/Makefile
parent- Update to 2.1.1 (diff)
- Update to 1.12
- Pass maintainership to submitter PR: 109464 Submitted by: Martin Matuska <martin@matuska.org>
Notes
Notes: svn path=/head/; revision=186035
Diffstat (limited to 'lang/otcl/Makefile')
-rw-r--r--lang/otcl/Makefile32
1 files changed, 26 insertions, 6 deletions
diff --git a/lang/otcl/Makefile b/lang/otcl/Makefile
index c8a8e88f095e..6a8f600865d4 100644
--- a/lang/otcl/Makefile
+++ b/lang/otcl/Makefile
@@ -6,23 +6,37 @@
#
PORTNAME= otcl
-PORTVERSION= 1.9
+PORTVERSION= 1.12
+DISTVERSIONPREFIX= src-
CATEGORIES= lang tcl84 tk84
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= otcl-tclcl
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= martin@matuska.org
COMMENT= MIT Object Tcl
-LIB_DEPENDS= tk84:${PORTSDIR}/x11-toolkits/tk84
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-USE_AUTOTOOLS= autoconf:213
-CONFIGURE_ARGS= --with-tcl-ver=8.4 --with-tk-ver=8.4
+USE_TK= yes
+USE_TK_BUILD= yes
+
+USE_AUTOTOOLS= autoconf:259
USE_LDCONFIG= yes
PKGINSTALL= ${PORTSDIR}/lang/tcl84/pkg-install.tclsh
PKGDEINSTALL= ${PORTSDIR}/lang/tcl84/pkg-deinstall.tclsh
+.if !defined(NOPORTDOCS)
+DOCS= CHANGES.html README.html TODO.html \
+ 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>
+
+CONFIGURE_ARGS+= --with-tcl-ver=${TCL_VER} --with-tk-ver=${TK_VER}
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/conf/configure.in.x11
@@ -34,5 +48,11 @@ post-install:
.if exists(${PKGINSTALL})
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL}
.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>