freebsd-ports/devel/critcl/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

45 lines
1.1 KiB
Makefile

# Created by: gahr@FreeBSD.org
# $FreeBSD$
PORTNAME= critcl
PORTVERSION= 3.1.15
CATEGORIES= devel
MAINTAINER= tcltk@FreeBSD.org
COMMENT= Compiled Runtime in Tcl
LICENSE= TclTk
LICENSE_NAME= Tcl/Tk License
LICENSE_FILE= ${WRKSRC}/license.terms
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= ${LOCALBASE}/lib/Trf/pkgIndex.tcl:devel/tcl-trf \
${LOCALBASE}/lib/tcllib/cmdline/pkgIndex.tcl:devel/tcllib
USES+= tcl:85+
USE_GITHUB= yes
GH_ACCOUNT= andreas-kupries
TEST_TARGET= test
PLIST_SUB+= VER=${PORTVERSION}
PORTDOCS= *
NO_BUILD= yes
.include <bsd.port.options.mk>
post-patch:
${REINPLACE_CMD} -e 's|dtplite|${LOCALBASE}/bin/dtplite|g' ${WRKSRC}/build.tcl
${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/lib/critcl/Config
${REINPLACE_CMD} -e '/^#line/d' ${WRKSRC}/test/cconst/*
do-install:
(cd ${WRKSRC} && ${TCLSH} build.tcl install ${STAGEDIR}${PREFIX}/lib)
${INSTALL_MAN} ${WRKSRC}/embedded/man/files/critcl_*.n \
${STAGEDIR}${MANPREFIX}/man/mann/
test: build
(cd ${WRKSRC} && ${TCLSH} test/all.tcl)
.include <bsd.port.mk>