1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/www/fusionpbx/Makefile
Olli Hauer 1d3c0606fe - remove dead code from Makefile
PR:		ports/172074
Submitted by:	ohauer
Approved by:	Richard E Neese <r.neese@gmail.com> (maintainer)
2012-09-26 04:39:30 +00:00

61 lines
1.4 KiB
Makefile

# Ports collection makefile for: fusionpbx
# Date created: Jan 12, 2011
# Whom: Richard Neese <r.neese@gmail.com>
#
# $FreeBSD$
#
PORTNAME= fusionpbx
DISTVERSION= 3.1.2
CATEGORIES= www
MASTER_SITES= http://www.fusionpbx.com/downloads/ \
${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= r.neese@gmail.com
COMMENT= PHP5 Graphical User Interface for FreeSwitch
LIB_DEPENDS= odbc:${PORTSDIR}/databases/unixODBC
RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/pdo_odbc.so:${PORTSDIR}/databases/php${PHP_VER}-pdo_odbc
USE_PHP= dom filter ftp json pcre pdo pdo_sqlite posix \
session simplexml xml xmlreader xmlwriter xmlrpc \
xsl zlib odbc
USE_SQLITE= yes
DEFAULT_PHP_VER= 5
IGNORE_WITH_PHP= 4
VARBASE= /var
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
OPTIONS_DEFINE= PDOPGSQL PDOMYSQL
PDOPGSQL_DESC= Install POSTGRESQL PDO Connector
PDOMYSQL_DESC= Install MySQL PDO Connector
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPDOPGSQL}
USE_PGSQL= yes
USE_PHP+= pgsql pdo_pgsql
.endif
.if ${PORT_OPTIONS:MPDOMYSQL}
USE_MYSQL= client
USE_PHP+= mysql pdo_mysql
.endif
do-install:
@${MKDIR} ${WWWDIR}
@${FIND} ${WRKSRC} -name '*.php' -exec ${CHMOD} 644 {} +
@cd ${WRKSRC}; ${FIND} . \
| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${CHOWN} -R www:www ${WWWDIR}
@${MKDIR} ${VARBASE}/db/fusionpbx
@${CHMOD} -R 0744 ${VARBASE}/db/fusionpbx
@${CHOWN} www:www ${VARBASE}/db/fusionpbx
.include <bsd.port.mk>