diff options
Diffstat (limited to 'www/contao43/Makefile')
-rw-r--r-- | www/contao43/Makefile | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/www/contao43/Makefile b/www/contao43/Makefile new file mode 100644 index 00000000000..0595a7c1c63 --- /dev/null +++ b/www/contao43/Makefile @@ -0,0 +1,98 @@ +# $NetBSD: Makefile,v 1.1 2016/12/05 14:48:24 taca Exp $ +# + +DISTNAME= contao-${CT_PKGVER} +PKGNAME= ${PHP_PKG_PREFIX}-contao${CT_VER}-${CT_VERSION} +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_GITHUB:=contao/} +GITHUB_PROJECT= standard-edition +GITHUB_RELEASE= ${CT_VERSION} + +MAINTAINER= taca@NetBSD.org +HOMEPAGE= https://contao.org/ +COMMENT= Contao Open Source CMS ${CT_VERSION} +LICENSE= gnu-lgpl-v3 + +DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.4.0:../../textproc/php-dom +DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.4.0:../../graphics/php-gd +DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.4.0:../../converters/php-mbstring +DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=5.4.0:../../databases/php-mysqli +DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.4.0:../../security/php-mcrypt +DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.4.0:../../net/php-soap +DEPENDS+= ${PHP_PKG_PREFIX}-intl>=5.4.0:../../textproc/php-intl +DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.4.0:../../www/php-curl +DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.4.0:../../archivers/php-zlib +DEPENDS+= bash>=4.0:../../shells/bash + +CT_VERSION= 4.3.0 +USE_TOOLS= bash pax +NO_BUILD= yes + +EG_CONFIG= app/config/config.yml app/config/config_dev.yml \ + app/config/config_prod.yml app/config/config_test.yml \ + app/config/routing.yml \ + app/config/routing_dev.yml app/config/security.yml +# app/config/parameters.yml.dist +EG_DATA= app/config + +RESTRICT_DIRS= app/config var/cache var/logs + +CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf + +.for f in ${EG_CONFIG} +CONF_FILES+= ${CT_EGDIR}/${f} ${CT_WEBDIR}/${f} +.endfor +#CONF_FILES+= ${CT_WEBDIR}/app/config/parameters.yml.dist \ +# ${CT_WEBDIR}/app/config/parameters.yml + +.for d in ${RESTRICT_DIRS} +OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APACHE_USER} ${APACHE_GROUP} 0770 +.endfor + +REPLACE_INTERPRETER+= php +REPLACE.php.old= .*php[^ ]* +REPLACE.php.new= ${PREFIX}/bin/php +REPLACE_FILES.php= \ + bin/console vendor/bin/doctrine-dbal vendor/bin/lessc \ + vendor/bin/minifycss vendor/bin/minifyjs vendor/bin/pscss \ + vendor/bin/security-checker vendor/doctrine/dbal/bin/doctrine-dbal \ + vendor/leafo/scssphp/bin/pscss \ + vendor/matthiasmullie/minify/bin/minifycss \ + vendor/matthiasmullie/minify/bin/minifyjs \ + vendor/oyejorge/less.php/bin/lessc \ + vendor/sensiolabs/security-checker/security-checker \ + vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ + vendor/symfony/symfony/phpunit + +SUBST_CLASSES+= conf +SUBST_FILES.conf+= ${WRKDIR}/contao.conf +SUBST_SED.conf+= -e 's|@PREFIX@|${PREFIX:Q}|g' +SUBST_SED.conf+= -e 's|@CT_WEBDIR@|${CT_WEBDIR:Q}|g' +SUBST_STAGE.conf= post-configure + +WWW_FILES= CHANGELOG.md README.md app/AppCache.php app/AppKernel.php \ + app/autoload.php app/bootstrap.php.cache assets bin/console \ + build.xml composer.json composer.lock vendor web + +INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR}/app/config \ + ${CT_WEBDIR}/app/config + +PKG_GROUPS_VARS+= APACHE_GROUP +PKG_USERS_VARS+= APACHE_USER + +pre-configure: + ${CP} ${FILESDIR}/contao.conf ${WRKDIR} + +do-install: + cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR} + ${INSTALL_DATA} ${WRKSRC}/app/config/parameters.yml.dist \ + ${DESTDIR}${PREFIX}/${CT_WEBDIR}/app/config + cd ${WRKSRC}/${EG_DATA}; \ + ${INSTALL_DATA} *.yml ${DESTDIR}${PREFIX}/${CT_EGDIR}/app/config + ${INSTALL_DATA} ${WRKDIR}/contao.conf ${DESTDIR}${PREFIX}/${CT_EGDIR} + ${INSTALL_DATA} ${FILESDIR}/README \ + ${DESTDIR}${PREFIX}/${CT_DOCDIR} + +.include "../../www/contao/Makefile.common" +.include "../../lang/php/phpversion.mk" +.include "../../mk/bsd.pkg.mk" |