Lines 1-39
Link Here
|
1 |
# Makefile for defining variables used by other Quake related ports. |
1 |
# Makefile for defining variables used by other Quake related ports. |
2 |
|
2 |
|
3 |
# Determine if the port is a Quake engine. |
3 |
# Set variables. |
4 |
|
4 |
|
5 |
Q1ENGINES= quakeforge darkplaces fuhquake tenebrae |
5 |
Q1PKGNAMEPREFIX?=quake- |
|
|
6 |
Q1DIR?= ${LOCALBASE}/share/quake |
6 |
|
7 |
|
7 |
.for f in ${Q1ENGINES} |
8 |
# Add them to the environment. |
8 |
. if ${PORTNAME} == ${f} |
|
|
9 |
ENGINE= yes |
10 |
. endif |
11 |
.endfor |
12 |
|
9 |
|
13 |
# Package name prefix. |
10 |
MAKE_ENV+= Q1DIR="${Q1DIR}" |
|
|
11 |
PLIST_SUB+= Q1DIR="${Q1DIR:S/${LOCALBASE}\///}" |
12 |
SUB_LIST+= Q1DIR="${Q1DIR}" |
14 |
|
13 |
|
15 |
Q1PKGNAMEPREFIX=quake- |
14 |
# Add the dependency. |
16 |
|
|
|
17 |
.if !defined(ENGINE) |
18 |
PKGNAMEPREFIX?= ${Q1PKGNAMEPREFIX} |
19 |
.endif |
20 |
|
21 |
# Dependency to "games/quake-data". |
22 |
|
15 |
|
23 |
.if ${PORTNAME} != "data" |
16 |
.if ${PORTNAME} != "data" |
24 |
RUN_DEPENDS+= ${Q1DIR}/id1/pak0.pak:${PORTSDIR}/games/quake-data |
17 |
RUN_DEPENDS+= ${Q1DIR}/id1/pak0.pak:${PORTSDIR}/games/quake-data |
25 |
.endif |
18 |
.endif |
26 |
|
|
|
27 |
# Installation directories. |
28 |
|
29 |
Q1DIR= ${LOCALBASE}/share/quake |
30 |
|
31 |
.if defined(ENGINE) || ${PORTNAME} == "data" |
32 |
DATADIR?= ${Q1DIR} |
33 |
.else |
34 |
DATADIR?= ${Q1DIR}/${PORTNAME} |
35 |
.endif |
36 |
|
37 |
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} |
38 |
|
39 |
PLIST_SUB+= Q1DIR="${Q1DIR}" |