Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add www/php-phalcon #54

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions www/php-phalcon/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Phalcon is an open source full stack framework for PHP, written as a
C-extension. Phalcon is optimized for high performance. Its unique architecture
allows the framework to always be memory resident, offering its functionality
whenever its needed, without expensive file stats and file reads that
traditional PHP frameworks employ.
58 changes: 58 additions & 0 deletions www/php-phalcon/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# $NetBSD$
#

MODNAME= phalcon
PECL_VERSION= 3.2.4
DISTNAME= phalcon-${PECL_VERSION}
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=phalcon/}

HOMEPAGE= http://phalconphp.com/
COMMENT= Web framework implemented as a C extension offering high performance
LICENSE= php

DOCDIR= ${PREFIX}/share/doc
INSTALLATION_DIRS= ${DOCDIR}

USE_TOOLS+= gmake pkg-config

.include "../../lang/php/phpversion.mk"

BUILD_DEPENDS+= re2c>=0.15.3:../../devel/re2c

DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.6.0:../../www/php-curl
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.6.0:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.6.0:../../textproc/php-json
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.6.0:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-pdo>=5.6.0:../../databases/php-pdo
DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=5.6.0:../../databases/php-pdo_mysql

GITHUB_PROJECT= cphalcon
GITHUB_TAG= v${PKGVERSION_NOREV}
EXTRACT_SUFX= .tar.gz

USE_LANGUAGES+= c c++

PHP_VERSIONS_ACCEPTED= 56 70 71

.if ${MACHINE_ARCH} == "x86_64"
. if ${PKG_PHP_VERSION} >= 70
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PECL_VERSION}/build/php7/64bits
. else
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PECL_VERSION}/build/php5/64bits
. endif
.endif

.if ${MACHINE_ARCH} == "i386"
. if ${PKG_PHP_VERSION} >= 70
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PECL_VERSION}/build/php7/32bits
. else
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${PECL_VERSION}/build/php5/32bits
. endif
.endif

.include "../../databases/php-pdo/buildlink3.mk"
.include "../../textproc/php-json/buildlink3.mk"
.include "../../lang/php/ext.mk"
.include "../../mk/bsd.pkg.mk"
6 changes: 6 additions & 0 deletions www/php-phalcon/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$NetBSD$

SHA1 (php-phalcon/phalcon-3.2.4.tar.gz) = e531019c2b8bfa96175f715a6239791cdbc65bc6
RMD160 (php-phalcon/phalcon-3.2.4.tar.gz) = e542a7e6ae9f70beb95af528974c9935b9842056
SHA512 (php-phalcon/phalcon-3.2.4.tar.gz) = 434694824b0c77bbd96b7c68c6b81651a0ebf8f14d3166f3b0e1757568b77aa6908ee0f8d0cc6211293be9ac29336d3593db32142602280f547497c7e6df4a4d
Size (php-phalcon/phalcon-3.2.4.tar.gz) = 6583823 bytes