



# $FreeBSD: ports/swsoft/sitebuilder/Makefile,v 1.1 2006/11/02 17:33:07 SWSoft Exp $

PORTNAME= sitebuilder
PORTVERSION= 4.5.0
PORTREVISION=0
CATEGORIES= swsoft

MASTER_SITES?= http://autoinstall.plesk.com/SiteBuilder/SiteBuilder_4.5.0/dist-pkg-FreeBSD-5.5-i386/distfiles/

MAINTAINER= info@parallels.com
COMMENT= Parallels Plesk Sitebuilder V4

SB_RELEASE := 08090214

VERBOSE= yes
USE_PERL5_RUN=  yes
USE_APACHE=    2.0+
USE_ICONV= yes

OPTIONS+= APACHE22 "Use apache22 instead of apache20" off

PLIST_SUB+=     APACHE_CONFD_DIR=${APACHEETCDIR}/Includes


NO_BUILD= yes


RUN_DEPENDS=
LIB_DEPENDS=

LIB_DEPENDS+=   expat.6:${PORTSDIR}/textproc/expat2
LIB_DEPENDS+=   xml2.5:${PORTSDIR}/textproc/libxml2
LIB_DEPENDS+=   freetype.9:${PORTSDIR}/print/freetype2
LIB_DEPENDS+=   jpeg.9:${PORTSDIR}/graphics/jpeg
LIB_DEPENDS+=   png.5:${PORTSDIR}/graphics/png
LIB_DEPENDS+=   iconv.3:${PORTSDIR}/converters/iconv
LIB_DEPENDS+=   xslt.2:${PORTSDIR}/textproc/libxslt
LIB_DEPENDS+=   exslt.8:${PORTSDIR}/textproc/libxslt

.include <bsd.port.pre.mk>

.if exists (${LOCALBASE}/psa/version)
    PSA_VERSION!=	cat ${LOCALBASE}/psa/version
    RUN_DEPENDS+=	${LOCALBASE}/lib/mysql/libmysqlclient.so.14:${PORTSDIR}/swsoft/psa-mysql-configurator
    RUN_DEPENDS+=	${LOCALBASE}/sbin/apachectl:${PORTSDIR}/swsoft/psa-apache-configurator
.else
    PSA_VERSION=

.if defined(WITH_APACHE22)
    PRE_DEPENDS+= www/apache22
    APACHE_SUFFIX= -ap22
.else
    PRE_DEPENDS+= www/apache20
    APACHE_SUFFIX= -ap20
.endif

    PKGNAMESUFFIX= ${APACHE_SUFFIX}

    RUN_DEPENDS+=	${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mysql41-server
    LIB_DEPENDS+=	mysqlclient.14:${PORTSDIR}/databases/mysql41-client
.endif




.if ${PSA_VERSION:S/.//g:M8[0-3]*}
    RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/swsoft/psa-perl-modules
    RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/auto/DBD/mysql/mysql.so:${PORTSDIR}/swsoft/psa-perl-modules
.else
    RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
    RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/auto/DBD/mysql/mysql.so:${PORTSDIR}/databases/p5-DBD-mysql
.endif


CONFLICTS +=	sitebuilder-module-AreaMap-3.0.[0-1] 		sitebuilder-module-Eshop-3.0.[0-1] 		sitebuilder-module-Feedback-3.0.[0-1] 		sitebuilder-module-FlashIntro-3.0.[0-1] 		sitebuilder-module-Forum-3.0.[0-1] 		sitebuilder-module-Guestbook-3.0.[0-1] 		sitebuilder-module-Login-3.0.[0-1] 		sitebuilder-module-RssReader-3.0.[0-1] 		sitebuilder-module-Script-3.0.[0-1] 		sitebuilder-module-Statistics-3.0.[0-1] 		sitebuilder-module-Voting-3.0.[0-1] 		sitebuilder-3.0.[0-1] 








.include <plesk.install.mk>
