aboutsummaryrefslogtreecommitdiffstats
path: root/www/tivoka/Makefile
blob: b3d25699867c8147f98fe413fffedca369c69ffb (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
32
33
# Created by: gahr
# $FreeBSD$

PORTNAME=   tivoka
PORTVERSION=    3.0.1
CATEGORIES= www

MAINTAINER= gahr@FreeBSD.org
COMMENT=    JSON-RPC client/server library for PHP

LICENSE=    MIT

USE_PHP=    json filter
NO_BUILD=   yes

USE_GITHUB= yes
GH_ACCOUNT= marcelklehr
GH_COMMIT=  4cbf436

LIBDIR=     ${PREFIX}/lib/php/${PHP_EXT_DIR}/${PORTNAME}
PLIST_SUB+= LIBDIR=${LIBDIR:S/${PREFIX}\///}

NO_STAGE=   yes
do-install:
    @${MKDIR} ${LIBDIR}
    @${INSTALL_DATA} ${WRKSRC}/include.php ${LIBDIR}
    @cd ${WRKSRC} && ${COPYTREE_SHARE} lib ${LIBDIR}
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    @cd ${WRKSRC}/example && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>