summaryrefslogtreecommitdiff
path: root/www/typolight/Makefile.common
blob: 5fce89e3e9608178614ebf0d8b75246ada5d569d (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
# $NetBSD: Makefile.common,v 1.2 2008/09/15 10:09:22 taca Exp $
#
# used by www/typolight-example/Makefile
# used by www/typolight-translations/Makefile

TL_VERSION=	2.6.0

FILES_SUBST+=	PAX=${PAX} TL_EGDIR=${TL_EGDIR:Q} TL_WEBDIR=${TL_WEBDIR:Q} \
		WWWGRP=${APACHE_GROUP:Q} WWWOWN=${APACHE_USER:Q}
PLIST_SUBST+=	TL_EGDIR=${TL_EGDIR:Q} TL_WEBDIR=${TL_WEBDIR:Q}

PRINT_PLIST_AWK+=	/@dirrm ${TL_WEBDIR:S|/|\\/|g}\/templates$$/ \
			{ next; }
PRINT_PLIST_AWK+=	/@dirrm ${TL_WEBDIR:S|/|\\/|g}\/system\/(tmp|log)$$/ \
			{ next; }
PRINT_PLIST_AWK+=	/@dirrm ${TL_WEBDIR:S|/|\\/|g}\/system$$/ \
			{ next; }
PRINT_PLIST_AWK+=	/@dirrm ${TL_WEBDIR:S|/|\\/|g}$$/ \
			{ next; }
PRINT_PLIST_AWK+=	/^(@dirrm )?${TL_WEBDIR:S|/|\\/|g}/ \
			{ gsub(/${TL_WEBDIR:S|/|\\/|g}/, "$${TL_WEBDIR}"); \
			print; next; }
PRINT_PLIST_AWK+=	/^(@dirrm )?${TL_EGDIR:S|/|\\/|g}/ \
			{ gsub(/${TL_EGDIR:S|/|\\/|g}/, "$${TL_EGDIR}"); \
			print; next; }

.include "../../mk/bsd.prefs.mk"

TL_EGDIR?=	share/examples/typolight
TL_WEBDIR?=	share/httpd/typolight

BUILD_DEFS+=	APACHE_GROUP APACHE_USER TL_EGDIR TL_WEBDIR