427938c0ff
Use options helpers
41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
# Created by: William Grzybowski <wg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= DoctrineDBAL
|
|
PORTVERSION= 2.3.4
|
|
CATEGORIES= databases pear
|
|
MASTER_SITES= http://pear.doctrine-project.org/get/
|
|
|
|
MAINTAINER= wg@FreeBSD.org
|
|
COMMENT= Database abstraction layer used to power the ORM package
|
|
|
|
LICENSE= LGPL21
|
|
|
|
BUILD_DEPENDS= ${PEARDIR}/.channels/pear.doctrine-project.org.reg:${PORTSDIR}/devel/pear-channel-doctrine
|
|
RUN_DEPENDS= ${PEARDIR}/.channels/pear.doctrine-project.org.reg:${PORTSDIR}/devel/pear-channel-doctrine \
|
|
${PEARDIR}/Doctrine/Common/Version.php:${PORTSDIR}/databases/pear-DoctrineCommon \
|
|
${PEARDIR}/Symfony/Component/Console/Application.php:${PORTSDIR}/devel/pear-Symfony_Component_Console
|
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/pear-${PORTNAME}/options
|
|
OPTIONS_DEFINE= DBLIB MYSQL ODBC PGSQL SQLITE
|
|
OPTIONS_DEFAULT=MYSQL
|
|
|
|
DBLIB_DESC= Install PHP DBO driver for DBLIB
|
|
MYSQL_DESC= Install PHP DBO driver for MySQL
|
|
ODBC_DESC= Install PHP DBO driver for ODBC
|
|
PGSQL_DESC= Install PHP DBO driver for PostgreSQL
|
|
SQLITE_DESC= Install PHP DBO driver for SQLite
|
|
|
|
USES= pear
|
|
PEAR_CHANNEL= doctrine
|
|
|
|
USE_PHP= pdo
|
|
WANT_PHP_CLI= yes
|
|
|
|
DBLIB_RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_dblib.so:${PORTSDIR}/databases/php${PHP_VER}-pdo_dblib
|
|
MYSQL_USE= PHP=pdo_mysql
|
|
ODBC_RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/php${PHP_VER}-pdo_odbc
|
|
PGSQL_USE= PHP=pdo_pgsql
|
|
SQLITE_USE= PHP=pdo_sqlite
|
|
|
|
.include <bsd.port.mk>
|