aboutsummaryrefslogtreecommitdiff
path: root/www/phalcon/Makefile
blob: e94c638cd17f30bb1ca89e703700036be9e9a738 (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
PORTNAME=	phalcon
DISTVERSIONPREFIX=	v
DISTVERSION=	5.10.0
CATEGORIES=	www
PKGNAMEPREFIX=	${PHP_PKGNAMEPREFIX}

MAINTAINER=	vanilla@FreeBSD.org
COMMENT=	Phalcon PHP Framework written in C-language
WWW=		https://phalcon.io/

LICENSE=	BSD3CLAUSE

USES=		localbase php:ext
USE_GITHUB=	yes
GH_PROJECT=	c${PORTNAME}
USE_PHP=	mbstring pdo:build session:build

CONFIGURE_ARGS=	--enable-phalcon

WRKSRC_SUBDIR=	build/phalcon

.include <bsd.port.pre.mk>

.if ${PHP_VER} >= 85
.  if ${OPSYS} == FreeBSD
CFLAGS+=	-Wno-error=int-conversion
.  endif

post-patch:
	@${REINPLACE_CMD} -e 's|ext/standard/php_smart_string|Zend/zend_smart_string|' \
		${WRKSRC}/phalcon.zep.c
.endif

.include <bsd.port.post.mk>