summaryrefslogtreecommitdiffstats
path: root/devel/php-jq/Makefile
blob: 65cf63402f41c2fec2126f026dfb9b961332fd09 (plain)
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
# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$

PORTNAME=	jq
PORTVERSION=	0.0.1
PORTREVISION=	1
CATEGORIES=	devel
PKGNAMEPREFIX=	php-

MAINTAINER=	gasol.wu@gmail.com
COMMENT=	Jq shared extension for php

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libjq.so:textproc/jq

USE_GITHUB=	yes
GH_ACCOUNT=	kjdev
GH_PROJECT=	php-ext-jq

IGNORE_WITH_PHP=	70
USES=		php:ext

JQ_CMD=		${LOCALBASE}/bin/jq

pre-build:
	(${JQ_CMD} -V | ${SED} 's,jq-\(.*\),#define JQ_VERSION "\1",' >> ${WRKSRC}/version.h)

.include <bsd.port.mk>
OpenPOWER on IntegriCloud