aboutsummaryrefslogtreecommitdiff
path: root/games/doom-data/Makefile.include
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-12-09 11:19:52 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-12-09 11:19:52 +0000
commit342bb086da78036bd9a86265559c6686653abb6d (patch)
tree42969c4c5e71d3a78b6ff4061678ba2ec71a99d0 /games/doom-data/Makefile.include
parent97f3c7b77643bc11665d46eed785facbb344b036 (diff)
downloadports-342bb086da78036bd9a86265559c6686653abb6d.tar.gz
ports-342bb086da78036bd9a86265559c6686653abb6d.zip
Notes
Diffstat (limited to 'games/doom-data/Makefile.include')
-rw-r--r--games/doom-data/Makefile.include51
1 files changed, 21 insertions, 30 deletions
diff --git a/games/doom-data/Makefile.include b/games/doom-data/Makefile.include
index 56fbf31b7dcc..9e40dcf3489f 100644
--- a/games/doom-data/Makefile.include
+++ b/games/doom-data/Makefile.include
@@ -1,42 +1,33 @@
# Makefile for defining variables used by other Doom related ports.
-# Determine if the port is a Doom engine.
+# Set variables.
-DMENGINES= deng doom doomlegacy prboom vavoom
+DMPKGNAMEPREFIX?=doom-
+DMDIR?= ${LOCALBASE}/share/doom
-.for f in ${DMENGINES}
-. if ${PORTNAME} == ${f}
-ENGINE= yes
-. endif
-.endfor
-
-# Package name prefix.
+# Add them to the environment.
-DMPKGNAMEPREFIX=doom-
-
-.if !defined(ENGINE)
-PKGNAMEPREFIX?= ${DMPKGNAMEPREFIX}
-.endif
+MAKE_ENV+= DMDIR="${DMDIR}"
+PLIST_SUB+= DMDIR="${DMDIR:S/${LOCALBASE}\///}"
+SUB_LIST+= DMDIR="${DMDIR}"
-# Dependency to "games/doom-data".
+# Add the dependency.
.if ${PORTNAME} != "data"
RUN_DEPENDS+= ${DMDIR}:${PORTSDIR}/games/doom-data
.endif
-# Installation directories.
-
-DMDIR= ${PREFIX}/share/doom
-
-.if ${PORTNAME} == "data"
-DATADIR?= ${DMDIR}
-.endif
-
-.if ${PORTNAME} != "data" && !defined(ENGINE)
-DATADIR?= ${DMDIR}/${PORTNAME}
+# DOS to Unix text conversion.
+
+.if defined(USE_CRLF)
+. if defined(USE_ZIP)
+EXTRACT_BEFORE_ARGS= -aqo
+. else
+USE_REINPLACE= yes
+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
-
-DOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
-
-PLIST_SUB+= DMDIR="${DMDIR:S/${PREFIX}\///}"
-SUB_LIST+= DMDIR="${DMDIR}"