fdeb2f870e
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.2 is third 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. * Tree view supports filter support. * File manager support file searching. * Vimeo video is also supported additinally Youtube.
92 lines
3.2 KiB
Makefile
92 lines
3.2 KiB
Makefile
# $NetBSD: Makefile,v 1.1 2016/06/19 12:53:04 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.2.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/parameters.yml.dist app/config/routing.yml \
|
|
app/config/routing_dev.yml app/config/security.yml
|
|
EG_DATA= app/config
|
|
|
|
RESTRICT_DIRS= app/config app/cache app/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
|
|
|
|
.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= \
|
|
app/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 app/cache \
|
|
app/console app/logs assets build.xml composer.json \
|
|
composer.lock vendor web
|
|
|
|
INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${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}
|
|
cd ${WRKSRC}; pax -rw ${EG_DATA} ${DESTDIR}${PREFIX}/${CT_EGDIR}
|
|
${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"
|