summaryrefslogtreecommitdiff
path: root/www/contao43/Makefile
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2016-12-05 14:48:24 +0000
committertaca <taca@pkgsrc.org>2016-12-05 14:48:24 +0000
commit52adb27994d5366142c5ab998c8b6f8426bfa365 (patch)
tree83979b057235df270f72f3ee02c215432e3c2b3f /www/contao43/Makefile
parent318bae600c88151e4a5200b5e875305579ee30a8 (diff)
downloadpkgsrc-52adb27994d5366142c5ab998c8b6f8426bfa365.tar.gz
Add contao43 4.3.0 (Contao Open Source CMS 4.3.0).
Contao is an Open Source Content Management Framework developed by Leo Feyer and distributed under the LGPL license (see GPL.txt and LGPL.txt for more information). It was formerly known as TYPOlight Open Source CMS. Its open architecture allows everybody to extend the system to fit his needs. Contao specializes in accessible websites and is accessbile itself (front end and back end), rendering valid HTML5 or XHTML pages. Contao 4.3 is fourth minor release of Contao 4, which has incompatible API from Contao 3. * Now Contao is Symfony bundle. * Contao 4 dose not use .htaccess files for protexting directory. * DocumentRoot is "web" subdirecotry. * XHTML support has gone, HTML5 only. * Schema.org markup support. Additionally, these new features from 4.2. * Flexible custom layout sections * Save and duplicate * Running events * Template for form * Image meta data * HTTP/2 support * Handling preview of protected elements * And more...
Diffstat (limited to 'www/contao43/Makefile')
-rw-r--r--www/contao43/Makefile98
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"