2014-06-10 05:57:01 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.74 2014/06/10 03:57:01 taca Exp $
|
2010-07-05 16:39:32 +02:00
|
|
|
#
|
2012-10-01 17:31:00 +02:00
|
|
|
# used by www/contao/Makefile.example"
|
2013-11-29 18:36:25 +01:00
|
|
|
# used by www/contao32/Makefile
|
2014-05-31 01:55:08 +02:00
|
|
|
# used by www/contao33/Makefile
|
2010-07-05 16:39:32 +02:00
|
|
|
|
2011-08-12 14:48:48 +02:00
|
|
|
# current release
|
2014-06-10 05:47:59 +02:00
|
|
|
CT32_VERSION= 3.2.11
|
2014-06-10 05:57:01 +02:00
|
|
|
CT33_VERSION= 3.3.2
|
2011-08-12 14:48:48 +02:00
|
|
|
|
2014-05-27 17:17:32 +02:00
|
|
|
CT_VERS?= 32
|
2011-08-12 14:48:48 +02:00
|
|
|
|
2014-06-01 16:39:12 +02:00
|
|
|
.if ${CT_VERS} == "32"
|
2013-11-21 17:50:50 +01:00
|
|
|
CT_VERSION= ${CT32_VERSION}
|
2014-05-27 17:17:32 +02:00
|
|
|
.elif ${CT_VERS} == "33"
|
|
|
|
CT_VERSION= ${CT33_VERSION}
|
2011-08-12 14:48:48 +02:00
|
|
|
.else
|
|
|
|
.error "Illegal version specified: ${CT_VERS}"
|
|
|
|
.endif
|
|
|
|
|
2014-05-27 17:17:32 +02:00
|
|
|
# Contao master site (on GitHub).
|
2014-06-01 16:39:12 +02:00
|
|
|
.if ${CT_VERS} == "32"
|
2014-05-27 17:17:32 +02:00
|
|
|
DIST_SUBDIR?= contao
|
|
|
|
CT_MASTER_SITE= https://github.com/contao/core/archive/
|
|
|
|
WRKSRC?= ${WRKDIR}/core-${CT_VERSION}
|
|
|
|
.else
|
|
|
|
CT_MASTER_SITE= https://github.com/contao/core/releases/download/${CT_VERSION}/
|
|
|
|
.endif
|
|
|
|
|
2013-06-27 17:48:29 +02:00
|
|
|
CT_FILES= files
|
|
|
|
FILESDIR= ${.CURDIR}/../../www/contao/files
|
|
|
|
|
2012-10-01 17:31:00 +02:00
|
|
|
CT_VER= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1\2/}
|
|
|
|
CT_VERBASE= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1.\2/}
|
2010-07-05 16:39:32 +02:00
|
|
|
CT_PKGVER= ${CT_VERSION:S/.RC/rc/}
|
|
|
|
|
|
|
|
FILES_SUBST+= PAX=${PAX} CT_EGDIR=${CT_EGDIR:Q} CT_WEBDIR=${CT_WEBDIR:Q} \
|
|
|
|
WWWGRP=${APACHE_GROUP:Q} WWWOWN=${APACHE_USER:Q}
|
|
|
|
MESSAGE_SUBST+= CT_VER=${CT_VER}
|
|
|
|
PLIST_SUBST+= CT_DOCDIR=${CT_DOCDIR:Q} CT_EGDIR=${CT_EGDIR:Q} \
|
|
|
|
CT_WEBDIR=${CT_WEBDIR:Q}
|
|
|
|
|
|
|
|
PRINT_PLIST_AWK+= /^${CT_WEBDIR:S|/|\\/|g}/ \
|
|
|
|
{ gsub(/${CT_WEBDIR:S|/|\\/|g}/, "$${CT_WEBDIR}"); \
|
|
|
|
print; next; }
|
|
|
|
PRINT_PLIST_AWK+= /^${CT_DOCDIR:S|/|\\/|g}/ \
|
|
|
|
{ gsub(/${CT_DOCDIR:S|/|\\/|g}/, "$${CT_DOCDIR}"); \
|
|
|
|
print; next; }
|
|
|
|
PRINT_PLIST_AWK+= /^${CT_EGDIR:S|/|\\/|g}/ \
|
|
|
|
{ gsub(/${CT_EGDIR:S|/|\\/|g}/, "$${CT_EGDIR}"); \
|
|
|
|
print; next; }
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR?= contao${CT_VER}
|
|
|
|
|
|
|
|
CT_DOCDIR?= share/doc/contao${CT_VER}
|
|
|
|
CT_EGDIR?= share/examples/contao${CT_VER}
|
|
|
|
CT_WEBDIR?= share/contao${CT_VER}
|
|
|
|
|
|
|
|
BUILD_DEFS+= APACHE_USER CT_DOCDIR CT_EGDIR CT_WEBDIR
|