# $NetBSD: Makefile,v 1.7 2017/09/11 16:21:22 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= managed-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}-gd>=5.6:../../graphics/php-gd DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.6:../../converters/php-mbstring DEPENDS+= ${PHP_PKG_PREFIX}-pdo_mysql>=5.6:../../databases/php-pdo_mysql DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.6:../../net/php-soap DEPENDS+= ${PHP_PKG_PREFIX}-intl>=5.6:../../textproc/php-intl DEPENDS+= ${PHP_PKG_PREFIX}-json>=5.6:../../textproc/php-json DEPENDS+= ${PHP_PKG_PREFIX}-curl>=5.6:../../www/php-curl DEPENDS+= ${PHP_PKG_PREFIX}-zlib>=5.6:../../archivers/php-zlib CT_VERSION= 4.4.4 USE_TOOLS= bash:run pax NO_BUILD= yes EG_DATA= app/config RESTRICT_DIRS= ${EG_DATA} var/cache var/logs CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf .for d in ${RESTRICT_DIRS} OWN_DIRS_PERMS+= ${CT_WEBDIR}/${d} ${APACHE_USER} ${APACHE_GROUP} 0770 .endfor WWW_FILES= README.md assets composer.json composer.lock vendor web INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR}/${EG_DATA} \ ${CT_WEBDIR}/${EG_DATA} PKG_GROUPS_VARS+= APACHE_GROUP PKG_USERS_VARS+= APACHE_USER REPLACE_BASH+= vendor/paragonie/random_compat/build-phar.sh \ vendor/sensio/distribution-bundle/Resources/bin/build.sh \ vendor/sensio/distribution-bundle/Resources/bin/build_demo.sh \ vendor/ua-parser/uap-php/update-resources.sh REPLACE_INTERPRETER+= php REPLACE.php.old= .*php[^ ]* REPLACE.php.new= ${PREFIX}/bin/php REPLACE_FILES.php= \ vendor/contao/manager-bundle/bin/contao-console \ vendor/doctrine/dbal/bin/doctrine-dbal \ vendor/oyejorge/less.php/bin/lessc \ vendor/matthiasmullie/minify/bin/minifycss \ vendor/matthiasmullie/minify/bin/minifyjs \ vendor/jeremykendall/php-domain-parser/bin/parse \ vendor/jeremykendall/php-domain-parser/bin/update-psl \ vendor/leafo/scssphp/bin/pscss \ vendor/sensiolabs/security-checker/security-checker \ vendor/ua-parser/uap-php/bin/uaparser \ vendor/sensio/distribution-bundle/Resources/bin/build_bootstrap.php \ vendor/swiftmailer/swiftmailer/lib/swiftmailer_generate_mimes_config.php \ vendor/symfony/symfony/phpunit \ vendor/symfony/symfony/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit \ vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php 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 PERMFIXFILES= vendor/oyejorge/less.php/lib/Less/Less.php.combine \ vendor/simplepie/simplepie/.travis.yml \ vendor/simplepie/simplepie/library/SimplePie.php \ vendor/simplepie/simplepie/library/SimplePie/Cache/Memcached.php \ vendor/simplepie/simplepie/library/SimplePie/Registry.php .include "../../lang/php/phpversion.mk" .if ${PKG_PHP_VERSION} < 71 DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.6:../../security/php-mcrypt .else DEPENDS+= ${PHP_PKG_PREFIX}-pecl-mcrypt>=1.0.1:../../security/php-pecl-mcrypt .endif pre-configure: ${CP} ${FILESDIR}/contao.conf ${WRKDIR} cd ${WRKSRC}; ${CHMOD} -x ${PERMFIXFILES} do-install: cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR} ${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"