summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-06-16 03:11:09 +0000
committertaca <taca@pkgsrc.org>2012-06-16 03:11:09 +0000
commitb546ba49cf9404574ad1ed828566eb43181e4768 (patch)
treeb22411e7ddbeb99bb9eddeb46d71d8f4d7c03457 /www
parentc3255daf1ace92c619931def22afa552e0c52567 (diff)
downloadpkgsrc-b546ba49cf9404574ad1ed828566eb43181e4768.tar.gz
Change dependency to php-fileinfo and make this package build with
PHP 5.3.x and PHP 5.4.x.
Diffstat (limited to 'www')
-rw-r--r--www/phraseanet/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/www/phraseanet/Makefile b/www/phraseanet/Makefile
index ec729cdcf71..b21261e751a 100644
--- a/www/phraseanet/Makefile
+++ b/www/phraseanet/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2012/06/14 10:17:10 sbd Exp $
+# $NetBSD: Makefile,v 1.5 2012/06/16 03:11:09 taca Exp $
#
.include "../../www/phraseanet/Makefile.common"
@@ -8,16 +8,12 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= pax
-# php-fileinfo doesn't accept php53
-PHP_VERSIONS_ACCEPTED=52
-
DEPENDS+= ${PHP_PKG_PREFIX}-phrasea2-[0-9]*:../../www/php-phrasea2
DEPENDS+= ${PHP_PKG_PREFIX}-apc-[0-9]*:../../www/php-apc
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-gettext-[0-9]*:../../devel/php-gettext
DEPENDS+= ${PHP_PKG_PREFIX}-dom-[0-9]*:../../textproc/php-dom
DEPENDS+= ${PHP_PKG_PREFIX}-exif-[0-9]*:../../graphics/php-exif
-DEPENDS+= ${PHP_PKG_PREFIX}-fileinfo-[0-9]*:../../sysutils/php-fileinfo
DEPENDS+= ${PHP_PKG_PREFIX}-ftp-[0-9]*:../../net/php-ftp
DEPENDS+= ${PHP_PKG_PREFIX}-curl-[0-9]*:../../www/php-curl
DEPENDS+= ${PHP_PKG_PREFIX}-gd-[0-9]*:../../graphics/php-gd
@@ -35,7 +31,11 @@ DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php
DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool
-.include "../../mk/bsd.prefs.mk"
+.include "../../lang/php/phpversion.mk"
+
+.if ${PKG_PHP_VERSION} == 52
+DEPENDS+= ${PHP_PKG_PREFIX}-fileinfo-[0-9]*:../../sysutils/php-fileinfo
+.endif
PHRASEANETDIR?= ${PREFIX}/share/phraseanet
APACHE_USER?= www
@@ -85,5 +85,4 @@ do-install:
.include "../../mk/apache.mk"
-.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"