[Midnightbsd-cvs] mports: games/doom-data: add doom-data
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Oct 20 01:37:17 EDT 2007
Log Message:
-----------
add doom-data
Added Files:
-----------
mports/games/doom-data:
Makefile (r1.1)
Makefile.include (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/games/doom-data/files:
pkg-message.in (r1.1)
-------------- next part --------------
--- /dev/null
+++ games/doom-data/pkg-descr
@@ -0,0 +1,6 @@
+Doom data files (Doom, Doom II, Hexen, Heretic, Strife).
+
+This port installs the data files needed to run Doom.
+
+You still need to have a legitimate copy of the game in order to obtain
+the full game, otherwise you can use the shareware version.
--- /dev/null
+++ games/doom-data/Makefile.include
@@ -0,0 +1,32 @@
+# 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
--- /dev/null
+++ games/doom-data/pkg-plist
@@ -0,0 +1,5 @@
+%%DOOM%%%%DATADIR%%/doom1.wad
+%%HERETIC%%%%DATADIR%%/heretic1.wad
+%%HEXEN%%%%DATADIR%%/hexen.wad
+%%STRIFE%%%%DATADIR%%/strife0.wad
+ at unexec rmdir %D/%%DATADIR%% >/dev/null 2>&1 || echo "If you are permanently removing this port, you should remove any WAD files left in %D/%%DATADIR%%." | fmt
--- /dev/null
+++ games/doom-data/Makefile
@@ -0,0 +1,78 @@
+# New ports collection makefile for: doom-data
+# Date created: 21 Sep 2005
+# Whom: Alejandro Pulver <alejandro at varnet.biz>
+#
+# $MidnightBSD: mports/games/doom-data/Makefile,v 1.1 2007/10/20 05:37:15 laffer1 Exp $
+# $FreeBSD: ports/games/doom-data/Makefile,v 1.5 2006/04/24 21:03:30 alepulver Exp $
+#
+
+PORTNAME= data
+PORTVERSION= 1.0
+PORTREVISION= 1
+CATEGORIES= games
+MASTER_SITES= http://www.ijs.si/~lesi/distfiles/doom/
+PKGNAMEPREFIX= ${DMPKGNAMEPREFIX}
+EXTRACT_SUFX= .bz2
+DISTFILES= #
+DIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Doom data files (Doom, Doom II, Hexen, Heretic and Strife)
+LICENSE= restricted
+
+USE_BZIP2= yes
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+OPTIONS= DOOM "Install Doom shareware data" on \
+ HERETIC "Install Heretic shareware data" off \
+ HEXEN "Install Hexen shareware data" off \
+ STRIFE "Install Strife shareware data" off
+
+SUB_FILES= pkg-message
+
+LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
+DATADIR= ${FAKE_DESTDIR}${DMDIR}
+
+LIST= DOOM HERETIC HEXEN STRIFE
+
+DOOM_WAD= doom1.wad
+HERETIC_WAD= heretic1.wad
+HEXEN_WAD= hexen.wad
+STRIFE_WAD= strife0.wad
+
+.include "Makefile.include"
+
+.include <bsd.port.pre.mk>
+
+.for f in ${LIST}
+. if defined(WITH_${f}) || !defined(WITHOUT_${f})
+DISTFILES+= ${${f}_WAD}${EXTRACT_SUFX}
+PLIST_SUB+= ${f}=""
+. else
+PLIST_SUB+= ${f}="@comment "
+. endif
+.endfor
+
+.if ${DISTFILES} == ""
+. undef DIST_SUBDIR
+.endif
+
+do-extract:
+ @${MKDIR} ${WRKDIR}
+.for f in ${LIST}
+. if defined(WITH_${f}) || !defined(WITHOUT_${f})
+ @${BZIP2_CMD} -dc ${_DISTDIR}/${${f}_WAD}${EXTRACT_SUFX} > \
+ ${WRKDIR}/${${f}_WAD}
+. endif
+.endfor
+
+do-install:
+ @${MKDIR} ${DATADIR}
+.for f in ${LIST}
+. if defined(WITH_${f}) || !defined(WITHOUT_${f})
+ ${INSTALL_DATA} ${WRKSRC}/${${f}_WAD} ${DATADIR}
+. endif
+.endfor
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ games/doom-data/distinfo
@@ -0,0 +1,12 @@
+MD5 (doom-data/doom1.wad.bz2) = c7fd38f3698110efadea1c9475736fdc
+SHA256 (doom-data/doom1.wad.bz2) = 415b18724d35cee07aa52f85bedc98ff28fd116c0c4d8ffe2031377e84543fad
+SIZE (doom-data/doom1.wad.bz2) = 1689027
+MD5 (doom-data/heretic1.wad.bz2) = 66462a87884aa00a41c0208bb152bbaa
+SHA256 (doom-data/heretic1.wad.bz2) = c45d071b204d8186996b1e168326b72f9ed41d76158bbd955e83790380ab03ae
+SIZE (doom-data/heretic1.wad.bz2) = 2218057
+MD5 (doom-data/hexen.wad.bz2) = 0478c38a75809b9bf1b604e6e688df4b
+SHA256 (doom-data/hexen.wad.bz2) = ab1244006eb71aec85b45f136a28b4d889dd9e50b5630aa23d72145a086eb821
+SIZE (doom-data/hexen.wad.bz2) = 4897389
+MD5 (doom-data/strife0.wad.bz2) = 7ce874f958c1538c8b96dd972e3d1fd0
+SHA256 (doom-data/strife0.wad.bz2) = 86d04b2128957d2ea972b7b22b84cb455d65bb70a4df2eee8ef3dbe0cadb002b
+SIZE (doom-data/strife0.wad.bz2) = 4051675
--- /dev/null
+++ games/doom-data/files/pkg-message.in
@@ -0,0 +1,7 @@
+
+To use the full version of the games you need to own a legitimate
+copy of Doom, Doom II, Hexen, Heretic and/or Strife.
+
+If you have them then copy the ".wad" files to
+%%DATADIR%%
+
More information about the Midnightbsd-cvs
mailing list