mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
6f1904ab75
- Fix OPTIONS handling. - Remove USE_REINPLACE. - Bump PORTREVISION. Approved by: garga (mentor)
33 lines
747 B
Makefile
33 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
|