1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00
freebsd-ports/devel/tcllibc/Makefile
2017-10-31 11:42:13 +00:00

28 lines
771 B
Makefile

# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$
PKGNAMESUFFIX= c
COMMENT= Compiled implementations of some of the modules of Tcllib
BUILD_DEPENDS= critcl:devel/critcl
RUN_DEPENDS= ${LOCALBASE}/lib/tcllib/pkgIndex.tcl:devel/tcllib
MASTERDIR= ${.CURDIR:H}/tcllib
TMPPLIST= ${WRKDIR}/PLIST
DESCR= ${.CURDIR}/pkg-descr
ALL_TARGET= critcl
OPTIONS_DEFINE=
post-patch:
cd ${WRKSRC}/modules/json/c && ${YACC} -b json json.y
do-install:
${RM} ${WRKSRC}/modules/tcllibc/license.terms
${MKDIR} ${STAGEDIR}${PREFIX}/lib/tcllib
${MV} ${WRKSRC}/modules/tcllibc ${STAGEDIR}${PREFIX}/lib/tcllib/
${SED} -e s,%%PLATFORM%%,`${LOCALBASE}/bin/critcl -show | ${SED} -n 's| *platform *||p'`,\
${.CURDIR}/pkg-plist > ${TMPPLIST}
.include "${MASTERDIR}/Makefile"