pkgsrc/www/contao32/Makefile
taca 0529de9009 Update contao32 (and contao32-example) to 3.2.8.
Version 3.2.8 (2014-03-12)
--------------------------

### Fixed
Add the "href" values for active breadcrumb menus to the template (see #6796).

### Fixed
The file/page tree widget did not work properly in "edit multiple" mode (#6788).

### Fixed
Preserve the referer ID when clicking the "switch to edit" button (see #6127).

### Fixed
Encode e-mail addresses in the "explanation" form field (see #6771).

### Fixed
Use a placeholder image if no thumbnail can be created (see #6754).

### Fixed
Pass additional arguments to the "replaceInsertTags" hook (see #6672).

### Fixed
Correctly initialize the `Session` class (see #6747).

### Fixed
Do not use `Input::setGet()` in the event modules (see #6733).

### Fixed
Correctly shorten the CSS `background` property (see #6709).

### Fixed
Do not use `UNION SELECT` when searching for parent pages (see #6704).

### Fixed
Disable `zlib.output_compression` when sending files to the browser (see #6717).

### Fixed
Consider the event time in the event list module (see #6719).

### Fixed
Make the newsletter recipient address available in the template (see #5782).

### Fixed
Correctly handle Unicode characters in `Validator::isGooglePlusId` (see #6707).

### Fixed
Fixed the arguments of two `CalendarEventsModel` methods (see #6781).

### Fixed
Pass the "tableless" flag to the "form_message" template (see #6772).

### Fixed
Update the `swipe.js` script so the "continuous" option works (see #6762).

### Fixed
Improve the `Search::removeEntry()` method (see #6785).

### Fixed
Correctly set the cookie path in the front mode in debug mode (see #6723).

### Fixed
Point to `Frontend::addToUrl()` in front end templates (see #6736).

### Fixed
Do not stop the cron job execution after the first interval.
2014-03-13 13:55:07 +00:00

103 lines
3.2 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2014/03/13 13:55:07 taca Exp $
#
DISTNAME= ${CT_VERSION}
PKGNAME= contao${CT_VER}-${CT_PKGVER}
CATEGORIES= www
MASTER_SITES= ${CT_MASTER_SITE}
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.contao.org/
COMMENT= Contao Open Source CMS ${CT_VERSION}
LICENSE= gnu-lgpl-v3
DEPENDS+= ${PHP_PKG_PREFIX}-dom>=5.2.0:../../textproc/php-dom
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.2.0:../../graphics/php-gd
DEPENDS+= ${PHP_PKG_PREFIX}-mbstring>=5.2.0:../../converters/php-mbstring
DEPENDS+= ${PHP_PKG_PREFIX}-{mysql,mysqli}>=5.2.0:../../databases/php-mysqli
DEPENDS+= ${PHP_PKG_PREFIX}-mcrypt>=5.2.0:../../security/php-mcrypt
DEPENDS+= ${PHP_PKG_PREFIX}-soap>=5.2.0:../../net/php-soap
CT_VERS= 32
USE_TOOLS= bash pax
NO_BUILD= yes
EG_CONFIG= ace.php agents.php constants.php countries.php \
languages.php tcpdf.php timezones.php \
tinyFlash.php tinyMCE.php tinyNews.php
EG_DATA= ${WWW_EG_FILES} system/config files
EG_TEMPLATES= tinymce.css tiny_templates/index.html
WWW_EG_FILES= robots.txt
RESTRICT_DIRS= system/cache system/logs system/tmp templates files
CONF_FILES+= ${CT_EGDIR}/contao.conf ${PKG_SYSCONFDIR}/contao.conf
.for f in ${EG_CONFIG}
CONF_FILES+= ${CT_EGDIR}/system/config/${f} ${CT_WEBDIR}/system/config/${f}
.endfor
MAKE_DIRS+= ${CT_WEBDIR}/files/tiny_templates
REPLACE_BASH= system/bin/minify
.for f in ${EG_TEMPLATES}
REQD_FILES+= ${CT_EGDIR}/files/${f} ${CT_WEBDIR}/files/${f}
.endfor
.for f in ${WWW_EG_FILES}
REQD_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= system/bin/ide_compat
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
SUBST_CLASSES+= php
SUBST_FILES.php+= ${WRKSRC}/system/bin/transifex
SUBST_SED.php+= -e "s|\#!/.*php|\#!${PREFIX}/bin/php|"
SUBST_STAGE.php= post-configure
WWW_FILES= .gitignore .htaccess.default README.md assets contao \
index.php share templates
WWW_SYSFILES= .htaccess bin config/default.php cron docs helper \
initialize.php modules themes
INSTALLATION_DIRS+= ${CT_DOCDIR} ${CT_EGDIR} ${CT_WEBDIR}/system/config
PKG_GROUPS_VARS+= APACHE_GROUP
PKG_USERS_VARS+= APACHE_USER
pre-configure:
cd ${WRKSRC} && ${RM} -f assets/css/*.css
${CP} ${FILESDIR}/contao.conf ${WRKDIR}
pre-install:
cd ${WRKSRC}; ${RM} -fr files/music_academy templates/music_academy.sql
${FIND} ${WRKSRC} -name "*.orig*" -exec ${RM} -f {} \;
cd ${WRKSRC}/assets && \
${FIND} ace html5shiv jquery/ui -type f -exec chmod -x {} \;
do-install:
cd ${WRKSRC}; pax -rw ${WWW_FILES} ${DESTDIR}${PREFIX}/${CT_WEBDIR}
cd ${WRKSRC}/system; \
pax -rw ${WWW_SYSFILES} \
${DESTDIR}${PREFIX}/${CT_WEBDIR}/system
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"