Quake II data files. This port installs the data files needed to run Quake II. It installs the updates and Capture The Flag mod data. You still need to have a legitimate copy of the game in order to obtain the .pak files. Otherwise you can use the shareware version of the game data. PR: 8 7179 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
39 lines
751 B
Text
39 lines
751 B
Text
# Makefile for defining variables used by other Quake II related ports.
|
|
|
|
# Determine if the port is a Quake II engine.
|
|
|
|
Q2ENGINES= quake2forge quake2lnx
|
|
|
|
.for f in ${Q2ENGINES}
|
|
. if ${PORTNAME} == ${f}
|
|
ENGINE= yes
|
|
. endif
|
|
.endfor
|
|
|
|
# Package name prefix.
|
|
|
|
Q2PKGNAMEPREFIX=quake2-
|
|
|
|
.if !defined(ENGINE)
|
|
PKGNAMEPREFIX?= ${Q2PKGNAMEPREFIX}
|
|
.endif
|
|
|
|
# Dependency to "games/quake2-data".
|
|
|
|
.if ${PORTNAME} != "data"
|
|
RUN_DEPENDS+= ${Q2DIR}:${PORTSDIR}/games/quake2-data
|
|
.endif
|
|
|
|
# Installation directories.
|
|
|
|
Q2DIR= ${LOCALBASE}/share/quake2
|
|
|
|
.if defined(ENGINE) || ${PORTNAME} == "data"
|
|
DATADIR?= ${Q2DIR}
|
|
.else
|
|
DATADIR?= ${Q2DIR}/${PORTNAME}
|
|
.endif
|
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
PLIST_SUB+= Q2DIR="${Q2DIR:S/${PREFIX}\///}"
|