1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/lang/duktape/Makefile
Baptiste Daroussin 4c7f530152 Update to 1.1.0
Use libedit from ports instead of libreadline
2015-01-17 01:46:19 +00:00

36 lines
675 B
Makefile

# $FreeBSD$
PORTNAME= duktape
PORTVERSION= 1.1.0
CATEGORIES= lang devel
MASTER_SITES= http://duktape.org/
MAINTAINER= bapt@FreeBSD.org
COMMENT= Embeddable Javascript engine
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= tar:xz
LIB_DEPENDS= libedit.so.0:${PORTSDIR}/devel/libedit
MAKEFILE= Makefile.cmdline
ALL_TARGET= #
PLIST_FILES= bin/duk
# for libedit
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ARGS= CC="${CC}"
post-patch:
@${REINPLACE_CMD} -e "/history\.h/d ; s,readline/,editline/,g " \
${WRKSRC}/examples/cmdline/duk_cmdline.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/duk ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>