| @@ -1,39 +1,38 @@ | | | @@ -1,39 +1,38 @@ |
1 | # $NetBSD: Makefile,v 1.42 2018/12/22 11:47:33 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.42.4.1 2019/04/10 11:45:57 bsiegert Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= contao-${CT_PKGVER} | | 4 | DISTNAME= contao-${CT_PKGVER} |
5 | PKGNAME= ${PHP_PKG_PREFIX}-contao${CT_VER}-${CT_PKGVER} | | 5 | PKGNAME= ${PHP_PKG_PREFIX}-contao${CT_VER}-${CT_PKGVER} |
6 | CATEGORIES= www | | 6 | CATEGORIES= www |
7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=contao/} | | 7 | MASTER_SITES= ${MASTER_SITE_GITHUB:=contao/} |
8 | GITHUB_PROJECT= core | | 8 | GITHUB_PROJECT= core |
9 | GITHUB_RELEASE= ${CT_VERSION} | | 9 | GITHUB_RELEASE= ${CT_VERSION} |
10 | | | 10 | |
11 | MAINTAINER= taca@NetBSD.org | | 11 | MAINTAINER= taca@NetBSD.org |
12 | HOMEPAGE= https://contao.org/ | | 12 | HOMEPAGE= https://contao.org/ |
13 | COMMENT= Contao Open Source CMS ${CT_VERSION} | | 13 | COMMENT= Contao Open Source CMS ${CT_VERSION} |
14 | LICENSE= gnu-lgpl-v3 | | 14 | LICENSE= gnu-lgpl-v3 |
15 | | | 15 | |
16 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.4.0:../../graphics/php-gd | | 16 | DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.4.0:../../graphics/php-gd |
17 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.4.0:../../converters/php-mbstring | | 17 | DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.4.0:../../converters/php-mbstring |
18 | DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=5.4.0:../../databases/php-mysqli | | 18 | DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=5.4.0:../../databases/php-mysqli |
19 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.4.0:../../net/php-soap | | 19 | DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.4.0:../../net/php-soap |
20 | DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.4.0:../../www/php-curl | | 20 | DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.4.0:../../www/php-curl |
21 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.4.0:../../archivers/php-zlib | | 21 | DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.4.0:../../archivers/php-zlib |
22 | | | 22 | |
23 | CT_VERSION= 3.5.38 | | 23 | CT_VERSION= 3.5.39 |
24 | USE_TOOLS= bash:run pax | | 24 | USE_TOOLS= bash:run pax |
25 | NO_BUILD= yes | | 25 | NO_BUILD= yes |
26 | FILESDIR?= ${.CURDIR}/files | | | |
27 | | | 26 | |
28 | EG_CONFIG= ace.php agents.php constants.php countries.php \ | | 27 | EG_CONFIG= ace.php agents.php constants.php countries.php \ |
29 | languages.php mimetypes.php tcpdf.php timezones.php \ | | 28 | languages.php mimetypes.php tcpdf.php timezones.php \ |
30 | tinyFlash.php tinyMCE.php tinyNews.php | | 29 | tinyFlash.php tinyMCE.php tinyNews.php |
31 | EG_DATA= ${WWW_EG_FILES} system/config files | | 30 | EG_DATA= ${WWW_EG_FILES} system/config files |
32 | EG_TEMPLATES= tinymce.css tiny_templates/index.html | | 31 | EG_TEMPLATES= tinymce.css tiny_templates/index.html |
33 | WWW_EG_FILES= robots.txt | | 32 | WWW_EG_FILES= robots.txt |
34 | RESTRICT_DIRS= system/config system/cache system/logs system/tmp templates \ | | 33 | RESTRICT_DIRS= system/config system/cache system/logs system/tmp templates \ |
35 | files | | 34 | files |
36 | | | 35 | |
37 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf | | 36 | CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf |
38 | | | 37 | |
39 | .for f in ${EG_CONFIG} | | 38 | .for f in ${EG_CONFIG} |
| @@ -61,28 +60,27 @@ REPLACE.php.old= .*php[^ ]* | | | @@ -61,28 +60,27 @@ REPLACE.php.old= .*php[^ ]* |
61 | REPLACE.php.new= ${PREFIX}/bin/php | | 60 | REPLACE.php.new= ${PREFIX}/bin/php |
62 | REPLACE_FILES.php= system/bin/automator system/bin/filesync \ | | 61 | REPLACE_FILES.php= system/bin/automator system/bin/filesync \ |
63 | system/bin/ide_compat system/bin/txpurge system/bin/version \ | | 62 | system/bin/ide_compat system/bin/txpurge system/bin/version \ |
64 | vendor/bin/lessc vendor/bin/minifycss vendor/bin/minifyjs \ | | 63 | vendor/bin/lessc vendor/bin/minifycss vendor/bin/minifyjs \ |
65 | vendor/bin/pscss vendor/leafo/scssphp/bin/pscss \ | | 64 | vendor/bin/pscss vendor/leafo/scssphp/bin/pscss \ |
66 | vendor/matthiasmullie/minify/bin/minifycss \ | | 65 | vendor/matthiasmullie/minify/bin/minifycss \ |
67 | vendor/matthiasmullie/minify/bin/minifyjs \ | | 66 | vendor/matthiasmullie/minify/bin/minifyjs \ |
68 | vendor/oyejorge/less.php/bin/lessc \ | | 67 | vendor/oyejorge/less.php/bin/lessc \ |
69 | vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ | | 68 | vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ |
70 | vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php | | 69 | vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php |
71 | | | 70 | |
72 | SUBST_CLASSES+= conf | | 71 | SUBST_CLASSES+= conf |
73 | SUBST_FILES.conf+= ${WRKDIR}/contao.conf | | 72 | SUBST_FILES.conf+= ${WRKDIR}/contao.conf |
74 | SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' | | 73 | SUBST_VARS.conf+= PREFIX CT_WEBDIR |
75 | SUBST_SED.conf+= -e 's|@CT_WEBDIR@|${CT_WEBDIR:Q}|g' | | | |
76 | SUBST_STAGE.conf= post-configure | | 74 | SUBST_STAGE.conf= post-configure |
77 | | | 75 | |
78 | WWW_FILES= .htaccess.default README.md assets contao \ | | 76 | WWW_FILES= .htaccess.default README.md assets contao \ |
79 | index.php share templates vendor | | 77 | index.php share templates vendor |
80 | WWW_SYSFILES= .htaccess bin config/default.php cron docs helper \ | | 78 | WWW_SYSFILES= .htaccess bin config/default.php cron docs helper \ |
81 | initialize.php modules themes | | 79 | initialize.php modules themes |
82 | | | 80 | |
83 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config | | 81 | INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config |
84 | | | 82 | |
85 | .include "../../lang/php/phpversion.mk" | | 83 | .include "../../lang/php/phpversion.mk" |
86 | | | 84 | |
87 | .if ${PKG_PHP_VERSION} < 71 | | 85 | .if ${PKG_PHP_VERSION} < 71 |
88 | DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.4.0:../../security/php-mcrypt | | 86 | DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.4.0:../../security/php-mcrypt |