freebsd-ports/games/quake-data/Makefile.include
Edwin Groothuis 18441dd207 [NEW PORT] games/quake-data - Quake data files
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>
2005-10-16 05:36:25 +00:00

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}"