mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
ccfc2840f8
pieces of tcllib: * make the compiled child-port RUN_DEPEND on the master -- it is not useful without it. * disable OPTIONS, when building the child-port -- they aren't meaningful there Pointed out by: gahr
28 lines
808 B
Makefile
28 lines
808 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:${PORTSDIR}/devel/critcl
|
|
RUN_DEPENDS= ${PREFIX}/lib/tcllib/pkgIndex.tcl:${MASTERDIR} # PREFIX, not LOCALBASE
|
|
|
|
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} -f ${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"
|