blob: d49ef9547f6109df6da17d9b2575b363f4444d9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# $NetBSD: Makefile.common,v 1.35 2013/05/23 14:58:34 taca Exp $
#
# used by www/contao/Makefile.example"
# used by www/contao211/Makefile
# used by www/contao211-translations/Makefile
# used by www/contao30/Makefile
#
# current release
CT211_VERSION= 2.11.11
CT300_VERSION= 3.0.6
CT310_VERSION= 3.1.0
CT_VERS?= 211
.if ${CT_VERS} == "211"
CT_VERSION= ${CT211_VERSION}
CT_FILES= tl_files
.elif ${CT_VERS} == "30"
CT_VERSION= ${CT300_VERSION}
CT_FILES= files
CT_DIST_SUBDIR= contao-20120109
.elif ${CT_VERS} == "31"
CT_VERSION= ${CT310_VERSION}
CT_FILES= files
.else
.error "Illegal version specified: ${CT_VERS}"
.endif
CT_VER= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1\2/}
CT_VERBASE= ${CT_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1.\2/}
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
FILESDIR= ${.CURDIR}/../../www/contao/files
|