openbsd-ports/mail/roundcubemail/Makefile

47 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.37 2011/05/04 13:03:40 sthen Exp $
COMMENT = imap4 webmail client
DISTNAME = roundcubemail-0.5.2
REVISION = 0
CATEGORIES = mail www
HOMEPAGE = http://www.roundcube.net/
MAINTAINER = Stuart Henderson <sthen@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=roundcubemail/}
NO_BUILD = Yes
NO_REGRESS = Yes
PKG_ARCH = *
PREFIX = /var/www
INSTDIR = ${PREFIX}/roundcubemail
TINSTDIR = ${TRUEPREFIX}/roundcubemail
SUBST_VARS = INSTDIR TINSTDIR
RUN_DEPENDS = www/php5/core \
www/php5/extensions,-mbstring \
www/php5/extensions,-mcrypt \
www/php5/extensions,-pspell \
sysutils/pecl-fileinfo \
php5-mysql-*|php5-pgsql-*|php5-sqlite-*:www/php5/extensions,-sqlite
do-install:
cp -Rp ${WRKDIST} ${INSTDIR}
.for i in .htaccess config/mimetypes.php
mv ${INSTDIR}/$i ${INSTDIR}/$i.dist
.endfor
${SUBST_CMD} -c ${FILESDIR}/roundcubemail.conf \
${INSTDIR}/roundcubemail.conf.dist; \
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}; \
find ${INSTDIR} \( -name \*.orig -or -name \*.src \) -exec rm -f {} \;
.include <bsd.port.mk>