aboutsummaryrefslogtreecommitdiffstats
path: root/devel/tcllibc/Makefile
blob: fc3b7b29dac4c2e615047a2df852e819ade16344 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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"