aboutsummaryrefslogtreecommitdiff
path: root/www/zend-framework/Makefile
blob: 2f17ed58c3ee4031230929c43906ff3b74b39724 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
PORTNAME=	ZendFramework
PORTVERSION=	2.4.13
PORTREVISION=	0
CATEGORIES=	www
MASTER_SITES=	https://packages.zendframework.com/releases/${DISTNAME}/
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Framework for developing PHP web applications

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

USES=		gettext php:web,flavors tar:tgz
USE_PHP=	spl

NO_ARCH=	yes
NO_BUILD=	yes
SUB_FILES=	pkg-message

PORTDOCS=	CHANGELOG.md CONTRIBUTING.md INSTALL.md README-GIT.md README.md

OPTIONS_DEFINE=		DBLIB DOCS MEMCACHE MYSQL MYSQLI ODBC OPTPHP PGSQL \
			REQPHP SQLITE
OPTIONS_DEFAULT=	REQPHP

DBLIB_DESC=	Enable DBLIB PDO support
MEMCACHE_DESC=	Enable memcache support
MYSQLI_DESC=	Enable MySQLi support
OPTPHP_DESC=	Install optional PHP dependencies
REQPHP_DESC=	Install required PHP dependencies

DBLIB_USE=	PHP=pdo_dblib
MEMCACHE_USE=	PHP=memcache,memcached
MYSQLI_USE=	PHP=mysqli
MYSQL_USE=	PHP=pdo_mysql
ODBC_USE=	PHP=pdo_odbc
OPTPHP_USE=	PHP=bcmath,bitset,json,posix
PGSQL_USE=	PHP=pdo_pgsql
# Add all of the required and/or optional PHP extension dependencies,
# if chosen by the user.
REQPHP_USE=	PHP=ctype,curl,dom,gd,hash,iconv,ldap,mbstring,mcrypt,opcache,pcre,pdo,session,simplexml,soap,sqlite3,xml,zlib
SQLITE_USE=	PHP=pdo_sqlite

do-install:
	cd ${WRKSRC} && ${COPYTREE_SHARE} "library bin resources" ${STAGEDIR}${DATADIR}

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>