freebsd-ports/games/quake3-data/Makefile.include
Alejandro Pulver 6f1904ab75 - Remove PKGMESSAGE override (SUB_FILES does that).
- Fix OPTIONS handling.
- Remove USE_REINPLACE.
- Bump PORTREVISION.

Approved by:	garga (mentor)
2006-04-24 21:14:18 +00:00

32 lines
747 B
Makefile

# Makefile for defining variables used by other Doom related ports.
# Set variables.
Q3PKGNAMEPREFIX?=quake3-
Q3DIR?= ${LOCALBASE}/share/quake3
# Add them to the environment.
MAKE_ENV+= Q3DIR="${Q3DIR}"
PLIST_SUB+= Q3DIR="${Q3DIR:S/${LOCALBASE}\///}"
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