# $OpenBSD: Makefile,v 1.19 2005/11/01 11:34:15 mbalmer Exp $ 

COMMENT=	"modular framework for web-based applications"

DISTNAME=	horde-3.0.6
PKGNAME=	${DISTNAME}p0
CATEGORIES=	devel www
HOMEPAGE=	http://www.horde.org/

MAINTAINER=	Marc Balmer <mbalmer@openbsd.org>

# GPL
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_CDROM=	Yes
PERMIT_DISTFILES_FTP=	Yes

MASTER_SITES=	${MASTER_SITE_HORDE:=horde/tarballs/}

NO_BUILD=	Yes
NO_REGRESS=	Yes
PKG_ARCH=	*
EXTRACT_ONLY=

PREFIX=		/var/www
INSTDIR=	${PREFIX}/horde
SUBST_VARS=	INSTDIR

PHP_VERSION=	5
RUN_DEPENDS+=	:php${PHP_VERSION}-core-*:www/php${PHP_VERSION}/core \
		:php${PHP_VERSION}-mcrypt-*:www/php${PHP_VERSION}/extensions,-mcrypt \
		:php${PHP_VERSION}-pear-*:www/php${PHP_VERSION}/core,-pear \
		::devel/pear-Log \
		::mail/pear-Mail-Mime \
		:pear-DB-*:databases/pear-DB

do-install:
	@cd ${PREFIX} && tar zxf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX}
	@chown -R root:daemon ${PREFIX}/${DISTNAME}
	@mv ${PREFIX}/${DISTNAME} ${INSTDIR}

.include <bsd.port.mk>
