1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/games/doom-data/Makefile.include
Alejandro Pulver 8ce110e4d3 - Remove unneeded PKGMESSAGE variable (SUB_FILES sets it).
- Fix OPTIONS handling.
- Remove '@' from installation command.
- Remove USE_REINPLACE.
- Bump PORTREVISION.

Approved by:	garga (mentor)
2006-04-24 21:03:30 +00:00

33 lines
725 B
Makefile

# Makefile for defining variables used by other Doom related ports.
# Set variables.
DMPKGNAMEPREFIX?=doom-
DMDIR?= ${LOCALBASE}/share/doom
# Add them to the environment.
MAKE_ENV+= DMDIR="${DMDIR}"
PLIST_SUB+= DMDIR="${DMDIR:S/${LOCALBASE}\///}"
SUB_LIST+= DMDIR="${DMDIR}"
# Add the dependency.
.if ${PORTNAME} != "data"
RUN_DEPENDS+= ${DMDIR}:${PORTSDIR}/games/doom-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