Wed Feb 21 12:24:44 2018 UTC ()
phraseanet: move PHP_VERSIONS_ACCEPTED before inclusion of phpversion.mk


(wiz)
diff -r1.21 -r1.22 pkgsrc/www/phraseanet/Makefile

cvs diff -r1.21 -r1.22 pkgsrc/www/phraseanet/Makefile (switch to unified diff)

--- pkgsrc/www/phraseanet/Makefile 2018/02/21 12:06:12 1.21
+++ pkgsrc/www/phraseanet/Makefile 2018/02/21 12:24:44 1.22
@@ -1,82 +1,82 @@ @@ -1,82 +1,82 @@
1# $NetBSD: Makefile,v 1.21 2018/02/21 12:06:12 wiz Exp $ 1# $NetBSD: Makefile,v 1.22 2018/02/21 12:24:44 wiz Exp $
2 2
3.include "../../www/phraseanet/Makefile.common" 3.include "../../www/phraseanet/Makefile.common"
4PKGNAME= phraseanet-${VERS} 4PKGNAME= phraseanet-${VERS}
5PKGREVISION= 7 5PKGREVISION= 7
6 6
7USE_TOOLS+= pax 7USE_TOOLS+= pax
8 8
 9PHP_VERSIONS_ACCEPTED= 56
 10
9.include "../../lang/php/phpversion.mk" 11.include "../../lang/php/phpversion.mk"
10 12
11DEPENDS+= ${PHP_PKG_PREFIX}-phrasea2-[0-9]*:../../www/php-phrasea2 13DEPENDS+= ${PHP_PKG_PREFIX}-phrasea2-[0-9]*:../../www/php-phrasea2
12DEPENDS+= ${PHP_PKG_PREFIX}-opcache-[0-9]*:../../devel/php-opcache 14DEPENDS+= ${PHP_PKG_PREFIX}-opcache-[0-9]*:../../devel/php-opcache
13DEPENDS+= ${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring 15DEPENDS+= ${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring
14DEPENDS+= ${PHP_PKG_PREFIX}-gettext-[0-9]*:../../devel/php-gettext 16DEPENDS+= ${PHP_PKG_PREFIX}-gettext-[0-9]*:../../devel/php-gettext
15DEPENDS+= ${PHP_PKG_PREFIX}-exif-[0-9]*:../../graphics/php-exif 17DEPENDS+= ${PHP_PKG_PREFIX}-exif-[0-9]*:../../graphics/php-exif
16DEPENDS+= ${PHP_PKG_PREFIX}-ftp-[0-9]*:../../net/php-ftp 18DEPENDS+= ${PHP_PKG_PREFIX}-ftp-[0-9]*:../../net/php-ftp
17DEPENDS+= ${PHP_PKG_PREFIX}-curl-[0-9]*:../../www/php-curl 19DEPENDS+= ${PHP_PKG_PREFIX}-curl-[0-9]*:../../www/php-curl
18DEPENDS+= ${PHP_PKG_PREFIX}-gd-[0-9]*:../../graphics/php-gd 20DEPENDS+= ${PHP_PKG_PREFIX}-gd-[0-9]*:../../graphics/php-gd
19DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json 21DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json
20DEPENDS+= ${PHP_PKG_PREFIX}-iconv-[0-9]*:../../converters/php-iconv 22DEPENDS+= ${PHP_PKG_PREFIX}-iconv-[0-9]*:../../converters/php-iconv
21DEPENDS+= ${PHP_PKG_PREFIX}-mysql-[0-9]*:../../databases/php-mysql 23DEPENDS+= ${PHP_PKG_PREFIX}-mysql-[0-9]*:../../databases/php-mysql
22DEPENDS+= ${PHP_PKG_PREFIX}-sockets-[0-9]*:../../net/php-sockets 24DEPENDS+= ${PHP_PKG_PREFIX}-sockets-[0-9]*:../../net/php-sockets
23DEPENDS+= ${PHP_PKG_PREFIX}-xsl-[0-9]*:../../textproc/php-xsl 25DEPENDS+= ${PHP_PKG_PREFIX}-xsl-[0-9]*:../../textproc/php-xsl
24DEPENDS+= ${PHP_PKG_PREFIX}-zip-[0-9]*:../../archivers/php-zip 26DEPENDS+= ${PHP_PKG_PREFIX}-zip-[0-9]*:../../archivers/php-zip
25DEPENDS+= ${PHP_PKG_PREFIX}-zlib-[0-9]*:../../archivers/php-zlib 27DEPENDS+= ${PHP_PKG_PREFIX}-zlib-[0-9]*:../../archivers/php-zlib
26DEPENDS+= ${PHP_PKG_PREFIX}-memcache-[0-9]*:../../devel/php-memcache 28DEPENDS+= ${PHP_PKG_PREFIX}-memcache-[0-9]*:../../devel/php-memcache
27DEPENDS+= phraseanet-indexer-${VERS}{,nb*}:../../www/phraseanet-indexer 29DEPENDS+= phraseanet-indexer-${VERS}{,nb*}:../../www/phraseanet-indexer
28DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php 30DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php
29DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick 31DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick
30DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool 32DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool
31 33
32PHP_VERSIONS_ACCEPTED= 56 
33 
34.include "../../mk/bsd.prefs.mk" 34.include "../../mk/bsd.prefs.mk"
35 35
36PHRASEANETDIR?= ${PREFIX}/share/phraseanet 36PHRASEANETDIR?= ${PREFIX}/share/phraseanet
37APACHE_USER?= www 37APACHE_USER?= www
38APACHE_GROUP?= www 38APACHE_GROUP?= www
39APACHE_DIRS_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0755 39APACHE_DIRS_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0755
40 40
41INSTALLATION_DIRS+= share/examples/phraseanet ${PHRASEANETDIR} 41INSTALLATION_DIRS+= share/examples/phraseanet ${PHRASEANETDIR}
42CONF_FILES= ${DESTDIR}${PREFIX}/share/examples/phraseanet/phrasea.conf \ 42CONF_FILES= ${DESTDIR}${PREFIX}/share/examples/phraseanet/phrasea.conf \
43 ${PKG_SYSCONFDIR}/phrasea.conf 43 ${PKG_SYSCONFDIR}/phrasea.conf
44 44
45MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config ${APACHE_DIRS_PERMS} 45MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config ${APACHE_DIRS_PERMS}
46MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/stamp ${APACHE_DIRS_PERMS} 46MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/stamp ${APACHE_DIRS_PERMS}
47MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/status ${APACHE_DIRS_PERMS} 47MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/status ${APACHE_DIRS_PERMS}
48MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/minilogos ${APACHE_DIRS_PERMS} 48MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/minilogos ${APACHE_DIRS_PERMS}
49MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/templates ${APACHE_DIRS_PERMS} 49MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/templates ${APACHE_DIRS_PERMS}
50MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/topics ${APACHE_DIRS_PERMS} 50MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/topics ${APACHE_DIRS_PERMS}
51MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/wm ${APACHE_DIRS_PERMS} 51MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/wm ${APACHE_DIRS_PERMS}
52MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/logs ${APACHE_DIRS_PERMS} 52MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/logs ${APACHE_DIRS_PERMS}
53MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/custom ${APACHE_DIRS_PERMS} 53MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/custom ${APACHE_DIRS_PERMS}
54MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/skins ${APACHE_DIRS_PERMS} 54MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/skins ${APACHE_DIRS_PERMS}
55MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp ${APACHE_DIRS_PERMS} 55MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp ${APACHE_DIRS_PERMS}
56MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/locks ${APACHE_DIRS_PERMS} 56MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/locks ${APACHE_DIRS_PERMS}
57MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_twig ${APACHE_DIRS_PERMS} 57MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_twig ${APACHE_DIRS_PERMS}
58MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_minify ${APACHE_DIRS_PERMS} 58MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_minify ${APACHE_DIRS_PERMS}
59MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/lazaret ${APACHE_DIRS_PERMS} 59MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/lazaret ${APACHE_DIRS_PERMS}
60MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/desc_tmp ${APACHE_DIRS_PERMS} 60MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/desc_tmp ${APACHE_DIRS_PERMS}
61MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/download ${APACHE_DIRS_PERMS} 61MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/download ${APACHE_DIRS_PERMS}
62MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/batches ${APACHE_DIRS_PERMS} 62MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/batches ${APACHE_DIRS_PERMS}
63 63
64do-build: 64do-build:
65 65
66pre-install: 66pre-install:
67 ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \; 67 ${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \;
68 ${RM} -rf ${WRKSRC}/bin/src 68 ${RM} -rf ${WRKSRC}/bin/src
69 69
70do-install: 70do-install:
71 cd ${WRKSRC} && pax -rw . ${DESTDIR}${PHRASEANETDIR} 71 cd ${WRKSRC} && pax -rw . ${DESTDIR}${PHRASEANETDIR}
72 72
73.for locale in ar_SA de_DE en_GB fr_FR 73.for locale in ar_SA de_DE en_GB fr_FR
74 ${LN} -s ${DESTDIR}${PHRASEANETDIR}/locale/${locale} \ 74 ${LN} -s ${DESTDIR}${PHRASEANETDIR}/locale/${locale} \
75 ${DESTDIR}${PHRASEANETDIR}/locale/${locale}.UTF8 75 ${DESTDIR}${PHRASEANETDIR}/locale/${locale}.UTF8
76.endfor 76.endfor
77 ${SED} -e "s|@PHRASEANETDIR@|${PHRASEANETDIR}|g" \ 77 ${SED} -e "s|@PHRASEANETDIR@|${PHRASEANETDIR}|g" \
78 -e "s|@VARBASE@|${VARBASE}|g" ${FILESDIR}/phrasea.conf > \ 78 -e "s|@VARBASE@|${VARBASE}|g" ${FILESDIR}/phrasea.conf > \
79 ${DESTDIR}${PREFIX}/share/examples/phraseanet/phrasea.conf 79 ${DESTDIR}${PREFIX}/share/examples/phraseanet/phrasea.conf
80 80
81.include "../../mk/apache.mk" 81.include "../../mk/apache.mk"
82.include "../../mk/bsd.pkg.mk" 82.include "../../mk/bsd.pkg.mk"