| @@ -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" |
4 | PKGNAME= phraseanet-${VERS} | | 4 | PKGNAME= phraseanet-${VERS} |
5 | PKGREVISION= 7 | | 5 | PKGREVISION= 7 |
6 | | | 6 | |
7 | USE_TOOLS+= pax | | 7 | USE_TOOLS+= pax |
8 | | | 8 | |
| | | 9 | PHP_VERSIONS_ACCEPTED= 56 |
| | | 10 | |
9 | .include "../../lang/php/phpversion.mk" | | 11 | .include "../../lang/php/phpversion.mk" |
10 | | | 12 | |
11 | DEPENDS+= ${PHP_PKG_PREFIX}-phrasea2-[0-9]*:../../www/php-phrasea2 | | 13 | DEPENDS+= ${PHP_PKG_PREFIX}-phrasea2-[0-9]*:../../www/php-phrasea2 |
12 | DEPENDS+= ${PHP_PKG_PREFIX}-opcache-[0-9]*:../../devel/php-opcache | | 14 | DEPENDS+= ${PHP_PKG_PREFIX}-opcache-[0-9]*:../../devel/php-opcache |
13 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring | | 15 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring-[0-9]*:../../converters/php-mbstring |
14 | DEPENDS+= ${PHP_PKG_PREFIX}-gettext-[0-9]*:../../devel/php-gettext | | 16 | DEPENDS+= ${PHP_PKG_PREFIX}-gettext-[0-9]*:../../devel/php-gettext |
15 | DEPENDS+= ${PHP_PKG_PREFIX}-exif-[0-9]*:../../graphics/php-exif | | 17 | DEPENDS+= ${PHP_PKG_PREFIX}-exif-[0-9]*:../../graphics/php-exif |
16 | DEPENDS+= ${PHP_PKG_PREFIX}-ftp-[0-9]*:../../net/php-ftp | | 18 | DEPENDS+= ${PHP_PKG_PREFIX}-ftp-[0-9]*:../../net/php-ftp |
17 | DEPENDS+= ${PHP_PKG_PREFIX}-curl-[0-9]*:../../www/php-curl | | 19 | DEPENDS+= ${PHP_PKG_PREFIX}-curl-[0-9]*:../../www/php-curl |
18 | DEPENDS+= ${PHP_PKG_PREFIX}-gd-[0-9]*:../../graphics/php-gd | | 20 | DEPENDS+= ${PHP_PKG_PREFIX}-gd-[0-9]*:../../graphics/php-gd |
19 | DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json | | 21 | DEPENDS+= ${PHP_PKG_PREFIX}-json-[0-9]*:../../textproc/php-json |
20 | DEPENDS+= ${PHP_PKG_PREFIX}-iconv-[0-9]*:../../converters/php-iconv | | 22 | DEPENDS+= ${PHP_PKG_PREFIX}-iconv-[0-9]*:../../converters/php-iconv |
21 | DEPENDS+= ${PHP_PKG_PREFIX}-mysql-[0-9]*:../../databases/php-mysql | | 23 | DEPENDS+= ${PHP_PKG_PREFIX}-mysql-[0-9]*:../../databases/php-mysql |
22 | DEPENDS+= ${PHP_PKG_PREFIX}-sockets-[0-9]*:../../net/php-sockets | | 24 | DEPENDS+= ${PHP_PKG_PREFIX}-sockets-[0-9]*:../../net/php-sockets |
23 | DEPENDS+= ${PHP_PKG_PREFIX}-xsl-[0-9]*:../../textproc/php-xsl | | 25 | DEPENDS+= ${PHP_PKG_PREFIX}-xsl-[0-9]*:../../textproc/php-xsl |
24 | DEPENDS+= ${PHP_PKG_PREFIX}-zip-[0-9]*:../../archivers/php-zip | | 26 | DEPENDS+= ${PHP_PKG_PREFIX}-zip-[0-9]*:../../archivers/php-zip |
25 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib-[0-9]*:../../archivers/php-zlib | | 27 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib-[0-9]*:../../archivers/php-zlib |
26 | DEPENDS+= ${PHP_PKG_PREFIX}-memcache-[0-9]*:../../devel/php-memcache | | 28 | DEPENDS+= ${PHP_PKG_PREFIX}-memcache-[0-9]*:../../devel/php-memcache |
27 | DEPENDS+= phraseanet-indexer-${VERS}{,nb*}:../../www/phraseanet-indexer | | 29 | DEPENDS+= phraseanet-indexer-${VERS}{,nb*}:../../www/phraseanet-indexer |
28 | DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php | | 30 | DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php |
29 | DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick | | 31 | DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick |
30 | DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool | | 32 | DEPENDS+= p5-Image-ExifTool-[0-9]*:../../graphics/p5-Image-ExifTool |
31 | | | 33 | |
32 | PHP_VERSIONS_ACCEPTED= 56 | | | |
33 | | | | |
34 | .include "../../mk/bsd.prefs.mk" | | 34 | .include "../../mk/bsd.prefs.mk" |
35 | | | 35 | |
36 | PHRASEANETDIR?= ${PREFIX}/share/phraseanet | | 36 | PHRASEANETDIR?= ${PREFIX}/share/phraseanet |
37 | APACHE_USER?= www | | 37 | APACHE_USER?= www |
38 | APACHE_GROUP?= www | | 38 | APACHE_GROUP?= www |
39 | APACHE_DIRS_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0755 | | 39 | APACHE_DIRS_PERMS= ${APACHE_USER} ${APACHE_GROUP} 0755 |
40 | | | 40 | |
41 | INSTALLATION_DIRS+= share/examples/phraseanet ${PHRASEANETDIR} | | 41 | INSTALLATION_DIRS+= share/examples/phraseanet ${PHRASEANETDIR} |
42 | CONF_FILES= ${DESTDIR}${PREFIX}/share/examples/phraseanet/phrasea.conf \ | | 42 | CONF_FILES= ${DESTDIR}${PREFIX}/share/examples/phraseanet/phrasea.conf \ |
43 | ${PKG_SYSCONFDIR}/phrasea.conf | | 43 | ${PKG_SYSCONFDIR}/phrasea.conf |
44 | | | 44 | |
45 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config ${APACHE_DIRS_PERMS} | | 45 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config ${APACHE_DIRS_PERMS} |
46 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/stamp ${APACHE_DIRS_PERMS} | | 46 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/stamp ${APACHE_DIRS_PERMS} |
47 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/status ${APACHE_DIRS_PERMS} | | 47 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/status ${APACHE_DIRS_PERMS} |
48 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/minilogos ${APACHE_DIRS_PERMS} | | 48 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/minilogos ${APACHE_DIRS_PERMS} |
49 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/templates ${APACHE_DIRS_PERMS} | | 49 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/templates ${APACHE_DIRS_PERMS} |
50 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/topics ${APACHE_DIRS_PERMS} | | 50 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/topics ${APACHE_DIRS_PERMS} |
51 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/wm ${APACHE_DIRS_PERMS} | | 51 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/config/wm ${APACHE_DIRS_PERMS} |
52 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/logs ${APACHE_DIRS_PERMS} | | 52 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/logs ${APACHE_DIRS_PERMS} |
53 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/custom ${APACHE_DIRS_PERMS} | | 53 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/custom ${APACHE_DIRS_PERMS} |
54 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/skins ${APACHE_DIRS_PERMS} | | 54 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/www/skins ${APACHE_DIRS_PERMS} |
55 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp ${APACHE_DIRS_PERMS} | | 55 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp ${APACHE_DIRS_PERMS} |
56 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/locks ${APACHE_DIRS_PERMS} | | 56 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/locks ${APACHE_DIRS_PERMS} |
57 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_twig ${APACHE_DIRS_PERMS} | | 57 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_twig ${APACHE_DIRS_PERMS} |
58 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_minify ${APACHE_DIRS_PERMS} | | 58 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/cache_minify ${APACHE_DIRS_PERMS} |
59 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/lazaret ${APACHE_DIRS_PERMS} | | 59 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/lazaret ${APACHE_DIRS_PERMS} |
60 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/desc_tmp ${APACHE_DIRS_PERMS} | | 60 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/desc_tmp ${APACHE_DIRS_PERMS} |
61 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/download ${APACHE_DIRS_PERMS} | | 61 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/download ${APACHE_DIRS_PERMS} |
62 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/batches ${APACHE_DIRS_PERMS} | | 62 | MAKE_DIRS_PERMS+= ${PHRASEANETDIR}/tmp/batches ${APACHE_DIRS_PERMS} |
63 | | | 63 | |
64 | do-build: | | 64 | do-build: |
65 | | | 65 | |
66 | pre-install: | | 66 | pre-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 | |
70 | do-install: | | 70 | do-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" |