31 lines
801 B
Makefile
31 lines
801 B
Makefile
# Created by: Valery Komarov <komarov@valerka.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= thrift
|
|
PORTVERSION= ${THRIFT_PORTVERSION}
|
|
CATEGORIES= devel
|
|
MASTER_SITES= # empty
|
|
PKGNAMEPREFIX= node-
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= komarov@valerka.net
|
|
COMMENT= Node.js bindings for the Apache Thrift RPC system
|
|
|
|
RUN_DEPENDS= node:${PORTSDIR}/www/node
|
|
FETCH_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/thrift:extract
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/lib/node_modules/thrift
|
|
${MKDIR} ${PREFIX}/lib/node
|
|
${CP} -R \
|
|
`${MAKE} -C ${PORTSDIR}/devel/thrift -V WRKSRC`/lib/nodejs/* \
|
|
${PREFIX}/lib/node_modules/thrift
|
|
${LN} -s ${PREFIX}/lib/node_modules/thrift/lib/thrift ${PREFIX}/lib/node
|
|
|
|
.include "${PORTSDIR}/devel/thrift/bsd.thrift.mk"
|
|
.include <bsd.port.post.mk>
|