# New ports collection makefile for:    psa-php-configurator
# Date created:                         2007-09-24
# Whom:                                 SWSoft Ltd.
# OS Version:                           5.5
#
# $FreeBSD: ports/swsoft/psa-php-configurator/Makefile 8.2.1 2007/09/24 23:01:50 SWSoft Exp $
#

PORTNAME= psa-php-configurator
PORTVERSION= 8.2.1
PORTREVISION= 0

CATEGORIES= swsoft
MASTER_SITES?= http://autoinstall.plesk.com/PSA_8.2.1/dist-pkg-FreeBSD-5.5-i386/distfiles/

MAINTAINER= admins@swsoft.com
COMMENT= Php chooser and configurator for Plesk

MASTER_SITES=   # none
DISTFILES=      # none
EXTRACT_ONLY=   # none

NO_EXTRACT= yes
NO_BUILD= yes

RUN_DEPENDS+=	${LOCALBASE}/sbin/apachectl:${PORTSDIR}/swsoft/psa-apache-configurator
RUN_DEPENDS+=	

USE_APACHE=2.0+

OPTIONS+= PHP5 "Use php5 and apache module" on 

.include <bsd.port.pre.mk>

.if defined(WITH_PHP5)
PRE_DEPENDS+= ${CATEGORIES}/php5

RUN_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/libphp5.so:${PORTSDIR}/${CATEGORIES}/php5 
USE_PHP= dom xml xsl gettext mbstring fileinfo iconv mcrypt mysql ctype zlib session gd imap pcre ftp curl
.else
PRE_DEPENDS+= ${CATEGORIES}/php4

RUN_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/libphp4.so:${PORTSDIR}/${CATEGORIES}/php4
USE_PHP= domxml xslt gettext mbstring fileinfo iconv mcrypt mysql ctype zlib session gd imap pcre ftp curl
.endif

.include <plesk.install.mk>
