1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/devel/critcl/Makefile
Pietro Cerutti 1c9e4cc4c8 - New port: devel/critcl
The C Runtime In Tcl, CriTcl for short, is a system to build C extension
  packages for Tcl on the fly, from C code embedded within Tcl scripts,
  for all who wish to make their code go faster.

  WWW: http://andreas-kupries.github.io/critcl/
2013-11-05 08:59:18 +00:00

46 lines
1001 B
Makefile

# Created by: gahr@FreeBSD.org
# $FreeBSD$
PORTNAME= critcl
PORTVERSION= 3.1.10
CATEGORIES= devel
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Compiled Runtime in Tcl
OPTIONS_DEFINE= DOCS
USES+= tcl
USE_GITHUB= yes
GH_ACCOUNT= andreas-kupries
GH_COMMIT= ea3f253
PLIST_SUB+= VER=${PORTVERSION}
PORTDOCS= *
NO_BUILD= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= dtplite:${PORTSDIR}/devel/tcllib
.endif
post-patch:
${REINPLACE_CMD} -e 's|dtplite|${LOCALBASE}/bin/dtplite|g' ${WRKSRC}/build.tcl
${REINPLACE_CMD} -e 's|4603|4746|g' ${WRKSRC}/test/cproc.test
${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/lib/critcl/Config
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${TCLSH} build.tcl doc
cd ${WRKSRC}/embedded/www && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR}
.endif
cd ${WRKSRC} && ${TCLSH} build.tcl install ${STAGEDIR}${PREFIX}/lib
regression-test:
cd ${WRKSRC} && ${TCLSH} test/all.tcl
.include <bsd.port.mk>