View | Details | Raw Unified | Return to bug 90147
Collapse All | Expand All

(-)quake2-data/Makefile (+3 lines)
Lines 11-16 Link Here
11
CATEGORIES=	games
11
CATEGORIES=	games
12
MASTER_SITES=	ftp://ftp.idsoftware.com/idstuff/quake2/ \
12
MASTER_SITES=	ftp://ftp.idsoftware.com/idstuff/quake2/ \
13
		ftp://ftp.fasta.fh-dortmund.de/mirror/idstuff/quake2/
13
		ftp://ftp.fasta.fh-dortmund.de/mirror/idstuff/quake2/
14
PKGNAMEPREFIX=	${Q2PKGNAMEPREFIX}
14
DISTFILES=	${Q2FULL}
15
DISTFILES=	${Q2FULL}
15
DIST_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}
16
DIST_SUBDIR=	${PKGNAMEPREFIX}${PORTNAME}
16
17
Lines 24-29 Link Here
24
25
25
OPTIONS=	CTF "Install the Capture The Flag mod data" on \
26
OPTIONS=	CTF "Install the Capture The Flag mod data" on \
26
		SHAREWARE "Install demo version game data" off
27
		SHAREWARE "Install demo version game data" off
28
29
DATADIR=	${Q2DIR}
27
30
28
LATEST_LINK=	${PKGNAMEPREFIX}${PORTNAME}
31
LATEST_LINK=	${PKGNAMEPREFIX}${PORTNAME}
29
32
(-)quake2-data/Makefile.include (-29 / +8 lines)
Lines 1-39 Link Here
1
# Makefile for defining variables used by other Quake II related ports.
1
# Makefile for defining variables used by other Quake II related ports.
2
2
3
# Determine if the port is a Quake II engine.
3
# Set variables.
4
4
5
Q2ENGINES=	quake2forge quake2lnx
5
Q2PKGNAMEPREFIX?=quake2-
6
Q2DIR?=		${LOCALBASE}/share/quake2
6
7
7
.for f in ${Q2ENGINES}
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+=	Q2DIR="${Q2DIR}"
11
PLIST_SUB+=	Q2DIR="${Q2DIR:S/${LOCALBASE}\///}"
12
SUB_LIST+=	Q2DIR="${Q2DIR}"
14
13
15
Q2PKGNAMEPREFIX=quake2-
14
# Add the dependency.
16
17
.if !defined(ENGINE)
18
PKGNAMEPREFIX?=	${Q2PKGNAMEPREFIX}
19
.endif
20
21
# Dependency to "games/quake2-data".
22
15
23
.if ${PORTNAME} != "data"
16
.if ${PORTNAME} != "data"
24
RUN_DEPENDS+=	${Q2DIR}:${PORTSDIR}/games/quake2-data
17
RUN_DEPENDS+=	${Q2DIR}:${PORTSDIR}/games/quake2-data
25
.endif
18
.endif
26
27
# Installation directories.
28
29
Q2DIR=		${LOCALBASE}/share/quake2
30
31
.if defined(ENGINE) || ${PORTNAME} == "data"
32
DATADIR?=	${Q2DIR}
33
.else
34
DATADIR?=	${Q2DIR}/${PORTNAME}
35
.endif
36
37
DOCSDIR?=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
38
39
PLIST_SUB+=	Q2DIR="${Q2DIR:S/${PREFIX}\///}"
(-)quake2lnx/Makefile (+2 lines)
Lines 45-50 Link Here
45
		X11		"Build X11 software driver" on \
45
		X11		"Build X11 software driver" on \
46
		X86_ASM		"Enable use of x86 assembly code" on
46
		X86_ASM		"Enable use of x86 assembly code" on
47
47
48
DATADIR=	${Q2DIR}
49
48
ALL_TARGET=	build_release
50
ALL_TARGET=	build_release
49
MAKE_ENV=	DATADIR="${DATADIR}" LIBDIR="${LIBDIR}"
51
MAKE_ENV=	DATADIR="${DATADIR}" LIBDIR="${LIBDIR}"

Return to bug 90147