blob: bad3e3ecf8e1c57dac0dfa3a645cdcd9b44c1e20 (
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
|
# $NetBSD: Makefile.common,v 1.14 2009/11/22 16:17:59 taca Exp $
#
# used by www/typolight26/Makefile
# used by www/typolight27/Makefile
# used by www/typolight26-translations/Makefile
# used by www/typolight27-translations/Makefile
# used by www/typolight-example/Makefile
TL_VER?= ${TL_VERSION:C/([0-9]+)\.([0-9]+)\..*/\1\2/}
TL_PKGVER= ${TL_VERSION:S/.RC/rc/}
FILES_SUBST+= PAX=${PAX} TL_EGDIR=${TL_EGDIR:Q} TL_WEBDIR=${TL_WEBDIR:Q} \
WWWGRP=${APACHE_GROUP:Q} WWWOWN=${APACHE_USER:Q}
MESSAGE_SUBST+= TL_VER=${TL_VER}
PLIST_SUBST+= TL_DOCDIR=${TL_DOCDIR:Q} TL_EGDIR=${TL_EGDIR:Q} \
TL_WEBDIR=${TL_WEBDIR:Q}
PRINT_PLIST_AWK+= /^${TL_WEBDIR:S|/|\\/|g}/ \
{ gsub(/${TL_WEBDIR:S|/|\\/|g}/, "$${TL_WEBDIR}"); \
print; next; }
PRINT_PLIST_AWK+= /^${TL_DOCDIR:S|/|\\/|g}/ \
{ gsub(/${TL_DOCDIR:S|/|\\/|g}/, "$${TL_DOCDIR}"); \
print; next; }
PRINT_PLIST_AWK+= /^${TL_EGDIR:S|/|\\/|g}/ \
{ gsub(/${TL_EGDIR:S|/|\\/|g}/, "$${TL_EGDIR}"); \
print; next; }
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= typolight${TL_VER}
TL_DOCDIR?= share/doc/typolight${TL_VER}
TL_EGDIR?= share/examples/typolight${TL_VER}
TL_WEBDIR?= share/typolight${TL_VER}
BUILD_DEFS+= APACHE_USER TL_DOCDIR TL_EGDIR TL_WEBDIR
FILESDIR= ${.CURDIR}/../../www/typolight/files
|