ports/devel/node-thrift/Makefile
Matthias Fechner f4ffcdfe61 */*: use new nodejs USES flag
Simply define which nodejs version is required using the nodejs USES flag.

PR:                     259783
Differential Revision:	https://reviews.freebsd.org/D32790
2021-11-12 06:54:51 +01:00

28 lines
752 B
Makefile

# Created by: Valery Komarov <komarov@valerka.net>
PORTNAME= thrift
PORTVERSION= ${THRIFT_PORTVERSION}
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= APACHE/thrift/${PORTVERSION}
PKGNAMEPREFIX= node-
MAINTAINER= ports@FreeBSD.org
COMMENT= Node.js bindings for the Apache Thrift RPC system
USES= cpe nodejs:run
CPE_VENDOR= apache
NO_BUILD= yes
NO_ARCH= yes
DISTINFO_FILE= ${.CURDIR}/../thrift/distinfo
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/thrift
${MKDIR} ${STAGEDIR}${PREFIX}/lib/node
${CP} -R ${WRKSRC}/lib/nodejs/* \
${STAGEDIR}${PREFIX}/lib/node_modules/thrift
${LN} -s ${PREFIX}/lib/node_modules/thrift/lib/thrift ${STAGEDIR}${PREFIX}/lib/node
.include "${.CURDIR}/../thrift/bsd.thrift.mk"
.include <bsd.port.mk>