2a773c0614
- Make Q3DIR in Makefile.include PREFIX safe, broke urbanterror-data port test games/ioquake3-devel - Update to SVN r1936, includes bug fixes and security enhancements games/urbanterror-data - Update from 4.1 to 4.1.1 - Unfortunately currently only 1 working mirror - Avoid "Q3DIR!=make -V" games/iourbanterror - Add SVN release information to PORTVERSION - Use r1936 engine sources games/openarena - Update to SVN r1910 based engine sources games/openarena-oax - Update from B47 to B48 release PR: ports/155716 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de> (maintainer)
32 lines
743 B
Text
32 lines
743 B
Text
# Makefile for defining variables used by other Quake3 related ports.
|
|
|
|
# Set variables.
|
|
|
|
Q3PKGNAMEPREFIX?=quake3-
|
|
Q3DIR?= ${PREFIX}/share/quake3
|
|
|
|
# Add them to the environment.
|
|
|
|
MAKE_ENV+= Q3DIR="${Q3DIR}"
|
|
PLIST_SUB+= Q3DIR="${Q3DIR:S/${PREFIX}\///}"
|
|
SUB_LIST+= Q3DIR="${Q3DIR}"
|
|
|
|
# Add the dependency.
|
|
|
|
.if ${PORTNAME} != "data"
|
|
RUN_DEPENDS+= ${Q3DIR}/baseq3/pak1.pk3:${PORTSDIR}/games/quake3-data
|
|
.endif
|
|
|
|
# DOS to Unix text conversion.
|
|
|
|
.if defined(USE_CRLF)
|
|
. if defined(USE_ZIP)
|
|
EXTRACT_BEFORE_ARGS= -aqo
|
|
. else
|
|
pre-patch:
|
|
@${FIND} ${WRKDIR} -type f -print0 | \
|
|
${XARGS} -0 ${FILE} | ${GREP} 'CRLF' | \
|
|
${SED} -e "s/:.*//" | ${SED} -e 's/ /\\ /g' | \
|
|
${XARGS} ${REINPLACE_CMD} -i "" -e "s/`${PRINTF} '\r'`$$//"
|
|
. endif
|
|
.endif
|