diff options
Diffstat (limited to 'lang/otcl/Makefile')
-rw-r--r-- | lang/otcl/Makefile | 32 |
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> |