aboutsummaryrefslogtreecommitdiffstats
path: root/devel/node-thrift/Makefile
blob: 1c89e2313ce73d0ddf78e4bb534ffd63173878b1 (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
28
29
30
31
# New ports collection makefile for:    node-thrift
# Date created:             2012-01-02
# Whom:                 Valery Komarov <komarov@valerka.net>
#
# $FreeBSD$
#

PORTNAME=   thrift
PORTVERSION=    ${THRIFT_PORTVERSION}
CATEGORIES= devel
PKGNAMEPREFIX=  node-
DISTFILES=  # empty

MAINTAINER= komarov@valerka.net
COMMENT=    Node.js bindings for the Apache Thrift RPC system

RUN_DEPENDS=        node:${PORTSDIR}/www/node
EXTRACT_DEPENDS=    ${NONEXISTENT}:${PORTSDIR}/devel/thrift:extract

NO_BUILD=   yes

.include <bsd.port.pre.mk>

do-install:
    ${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>