summaryrefslogtreecommitdiff
path: root/www/phalcon/Makefile
blob: dbd63bacdcabdcf3c315463e6ddcbcdc91cdb464 (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
34
35
# Created by: Jin-Sih Lin <linpct@gmail.com>
# $FreeBSD$

PORTNAME=	phalcon
PORTVERSION=	3.1.0
DISTVERSIONPREFIX=	v
CATEGORIES=	www

MAINTAINER=	linpct@gmail.com
COMMENT=	Phalcon PHP Framework written in C-language

LICENSE=	BSD3CLAUSE

USES=		php:ext
USE_PHP=	hash:build json:build pdo:build

ONLY_FOR_ARCHS=	amd64 armv6 i386

USE_GITHUB=	yes
GH_ACCOUNT=	phalcon
GH_PROJECT=	c${PORTNAME}

CFLAGS+=	-I${LOCALBASE}/include
CONFIGURE_ARGS=	--enable-phalcon

.include <bsd.port.pre.mk>

PBITS=		${ARCH:S/amd64/64/:S/armv6/32/:S/i386/32/:S/x86_64/64/}
WRKSRC_SUBDIR=	build/php${PHP_VER:C/.$//}/${PBITS}bits

.if ${PHP_VER} == 70 && ${PBITS} == 32
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-phalcon.zep.c
.endif

.include <bsd.port.post.mk>