1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/games/doom-data/Makefile.include
2013-05-12 08:39:29 +00:00

29 lines
799 B
Makefile

# Makefile for defining variables used by other Doom related ports.
DMPKGNAMEPREFIX?= doom-
DMDIR?= ${LOCALBASE}/share/doom
.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == ${DMPKGNAMEPREFIX} && defined(OPTIONSMKINCLUDED)
. error include before <bsd.port.options.mk> if using DMPKGNAMEPREFIX
.endif
MAKE_ENV+= DMDIR="${DMDIR}"
PLIST_SUB+= DMDIR="${DMDIR:S/${LOCALBASE}\///}"
SUB_LIST+= DMDIR="${DMDIR}"
.if ${PORTNAME} != "data"
RUN_DEPENDS+= ${DMDIR}:${PORTSDIR}/games/doom-data
.endif
.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