2bbe892bfe
PR: 250856 Submitted by: Franco Fichtner <franco@opnsense.org> (maintainer)
40 lines
855 B
Makefile
40 lines
855 B
Makefile
# Created by: Jin-Sih Lin <linpct@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phalcon
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.4.5
|
|
CATEGORIES= www
|
|
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= franco@opnsense.org
|
|
COMMENT= Phalcon PHP Framework written in C-language
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386
|
|
|
|
USES= localbase php:ext
|
|
USE_PHP= hash:build json:build pdo:build
|
|
IGNORE_WITH_PHP=74 80
|
|
USE_GITHUB= yes
|
|
GH_PROJECT= c${PORTNAME}
|
|
|
|
CONFLICTS_INSTALL= ${PKGNAMEPREFIX}phalcon4
|
|
|
|
PORTSCOUT= limit:^3\.
|
|
|
|
CONFIGURE_ARGS= --enable-phalcon
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
PBITS= ${ARCH:S/aarch64/64/:S/amd64/64/:C/armv.*/32/:S/i386/32/:S/x86_64/64/}
|
|
WRKSRC_SUBDIR= build/php${PHP_VER:C/.$//}/${PBITS}bits
|
|
|
|
post-patch:
|
|
.if ${PBITS} == 32
|
|
@${REINPLACE_CMD} -e 's|ZEPHIR_FASTCALL| |' ${WRKSRC}/phalcon.zep.c
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|