forked from Lainports/freebsd-ports
Quake data files. This port installs the data files needed to run Quake. You still need to have a legitimate copy of the game in order to obtain the full game, otherwise you can use the shareware version. This port can also install the QuakeWorld data files, skins and sources. PR: ports/86166 Submitted by: Alejandro Pulver <alejandro@varnet.biz>
39 lines
756 B
Text
39 lines
756 B
Text
# Makefile for defining variables used by other Quake related ports.
|
|
|
|
# Determine if the port is a Quake engine.
|
|
|
|
Q1ENGINES= quakeforge darkplaces fuhquake tenebrae
|
|
|
|
.for f in ${Q1ENGINES}
|
|
. if ${PORTNAME} == ${f}
|
|
ENGINE= yes
|
|
. endif
|
|
.endfor
|
|
|
|
# Package name prefix.
|
|
|
|
Q1PKGNAMEPREFIX=quake-
|
|
|
|
.if !defined(ENGINE)
|
|
PKGNAMEPREFIX?= ${Q1PKGNAMEPREFIX}
|
|
.endif
|
|
|
|
# Dependency to "games/quake-data".
|
|
|
|
.if ${PORTNAME} != "data"
|
|
RUN_DEPENDS+= ${Q1DIR}/id1/pak0.pak:${PORTSDIR}/games/quake-data
|
|
.endif
|
|
|
|
# Installation directories.
|
|
|
|
Q1DIR= ${LOCALBASE}/share/quake
|
|
|
|
.if defined(ENGINE) || ${PORTNAME} == "data"
|
|
DATADIR?= ${Q1DIR}
|
|
.else
|
|
DATADIR?= ${Q1DIR}/${PORTNAME}
|
|
.endif
|
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
PLIST_SUB+= Q1DIR="${Q1DIR}"
|