freebsd-ports/devel/php-jq/Makefile
Kurt Jaeger 5d53ff11b3 jq is like sed for JSON data - you can use it to slice and filter
and map and transform structured data with the same ease that sed,
awk, grep and friends let you play with text.

WWW: https://github.com/kjdev/php-ext-jq

PR:		200438
Submitted by:	Gasol Wu <gasol.wu@gmail.com>
2015-11-01 09:13:14 +00:00

30 lines
529 B
Makefile

# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$
PORTNAME= jq
PORTVERSION= 0.0.1
CATEGORIES= devel
PKGNAMEPREFIX= php-
MAINTAINER= gasol.wu@gmail.com
COMMENT= Jq shared extension for php
LICENSE= MIT
LIB_DEPENDS= libjq.so:${PORTSDIR}/textproc/jq
USE_GITHUB= yes
GH_ACCOUNT= kjdev
GH_PROJECT= php-ext-jq
USE_PHP= yes
USE_PHPIZE= yes
USE_PHPEXT= yes
USES= tar:tgz
JQ_CMD= ${LOCALBASE}/bin/jq
pre-build:
(${JQ_CMD} -V | ${SED} 's,jq-\(.*\),#define JQ_VERSION "\1",' >> ${WRKSRC}/version.h)
.include <bsd.port.mk>