freebsd-ports/www/phalcon4/Makefile
Piotr Kubaj 7fc81d41d3 MFH: r561478
www/phalcon4: enable on powerpc64

To be tested on powerpc64le.
2021-01-13 15:41:04 +00:00

42 lines
938 B
Makefile

# $FreeBSD$
PORTNAME= phalcon
DISTVERSIONPREFIX=v
DISTVERSION= 4.1.0
CATEGORIES= www
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
PKGNAMESUFFIX= 4
MAINTAINER= franco@opnsense.org
COMMENT= Phalcon PHP Framework written in C-language
LICENSE= BSD3CLAUSE
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64
CONFLICTS_INSTALL= ${PKGNAMEPREFIX}phalcon
RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/psr.so:devel/pecl-psr@${PHP_FLAVOR}
USES= localbase php:ext
USE_PHP= hash:build json:build pdo:build session
IGNORE_WITH_PHP=80
PHP_MOD_PRIO= 30
USE_GITHUB= yes
GH_PROJECT= c${PORTNAME}
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/:C/powerpc64.*/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>