ports/86439: [NEW PORT] games/doom-data - Doom data files (Doom, Doom II, Hexen, Heretic and Strife)
Alejandro Pulver
alejandro at varnet.biz
Thu Sep 22 00:00:32 UTC 2005
>Number: 86439
>Category: ports
>Synopsis: [NEW PORT] games/doom-data - Doom data files (Doom, Doom II, Hexen, Heretic and Strife)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 22 00:00:30 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Alejandro Pulver
>Release: FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
--- doom-data.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# doom-data
# doom-data/Makefile
# doom-data/Makefile.include
# doom-data/files
# doom-data/files/pkg-message.in
# doom-data/distinfo
# doom-data/pkg-descr
# doom-data/pkg-plist
#
echo c - doom-data
mkdir -p doom-data > /dev/null 2>&1
echo x - doom-data/Makefile
sed 's/^X//' >doom-data/Makefile << 'END-of-doom-data/Makefile'
X# New ports collection makefile for: doom-data
X# Date created: 21 Sep 2005
X# Whom: Alejandro Pulver <alejandro at varnet.biz>
X#
X# $FreeBSD$
X#
X
XPORTNAME= data
XPORTVERSION= 1.0
XCATEGORIES= games
XMASTER_SITES= http://www.ijs.si/~lesi/distfiles/doom/
XDISTFILES= #
XDIST_SUBDIR= ${PKGNAMEPREFIX}${PORTNAME}
XEXTRACT_SUFX= .bz2
X
XMAINTAINER= alejandro at varnet.biz
XCOMMENT= Doom data files (Doom, Doom II, Hexen, Heretic and Strife)
X
XUSE_BZIP2= yes
XNO_BUILD= yes
XNO_WRKSUBDIR= yes
X
XOPTIONS= DOOM "Install Doom shareware data" on \
X HERETIC "Install Heretic shareware data" off \
X HEXEN "Install Hexen shareware data" off \
X STRIFE "Install Strife shareware data" off
X
XSUB_FILES= pkg-message
XPKGMESSAGE= ${WRKDIR}/pkg-message
X
XLATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}
X
XLIST= DOOM HERETIC HEXEN STRIFE
X
XDOOM_WAD= doom1.wad
XHERETIC_WAD= heretic1.wad
XHEXEN_WAD= hexen.wad
XSTRIFE_WAD= strife0.wad
X
X.include "Makefile.include"
X
X.include <bsd.port.pre.mk>
X
X.for f in ${LIST}
X. if defined(WITH_${f})
XDISTFILES+= ${${f}_WAD}${EXTRACT_SUFX}
XPLIST_SUB+= ${f}=""
X. else
XPLIST_SUB+= ${f}="@comment "
X. endif
X.endfor
X
Xdo-extract:
X @${MKDIR} ${WRKDIR}
X.for f in ${LIST}
X. if defined(WITH_${f})
X @${BZIP2_CMD} -dc ${_DISTDIR}/${${f}_WAD}${EXTRACT_SUFX} > \
X ${WRKDIR}/${${f}_WAD}
X. endif
X.endfor
X
Xdo-install:
X @${MKDIR} ${DATADIR}
X.for f in ${LIST}
X. if defined(WITH_${f})
X @${INSTALL_DATA} ${WRKSRC}/${${f}_WAD} ${DATADIR}
X. endif
X.endfor
X
Xpost-install:
X @${ECHO_CMD}
X @${CAT} ${PKGMESSAGE}
X @${ECHO_CMD}
X
X.include <bsd.port.post.mk>
END-of-doom-data/Makefile
echo x - doom-data/Makefile.include
sed 's/^X//' >doom-data/Makefile.include << 'END-of-doom-data/Makefile.include'
X# Makefile for defining variables used by other Doom related ports.
X
X# Determine if the port is a Doom engine.
X
XDMENGINES= deng doom doomlegacy prboom vavoom
X
X.for f in ${DMENGINES}
X. if ${PORTNAME} == ${f}
XENGINE= yes
X. endif
X.endfor
X
X# Package name prefix.
X
XDMPKGNAMEPREFIX=doom-
X
X.if !defined(ENGINE)
XPKGNAMEPREFIX?= ${DMPKGNAMEPREFIX}
X.endif
X
X# Dependency to "games/doom-data".
X
X.if ${PORTNAME} != "data"
XRUN_DEPENDS+= ${DMDIR}:${PORTSDIR}/games/doom-data
X.endif
X
X# Installation directories.
X
XDMDIR= ${LOCALBASE}/share/doom
X
X.if ${PORTNAME} == "data"
XDATADIR?= ${DMDIR}
X.endif
X
X.if ${PORTNAME} != "data" && !defined(ENGINE)
XDATADIR?= ${DMDIR}/${PORTNAME}
X.endif
X
XDOCSDIR?= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
X
XPLIST_SUB+= DMDIR="${DMDIR:S/${PREFIX}\///}"
XSUB_LIST+= DMDIR="${DMDIR}"
END-of-doom-data/Makefile.include
echo c - doom-data/files
mkdir -p doom-data/files > /dev/null 2>&1
echo x - doom-data/files/pkg-message.in
sed 's/^X//' >doom-data/files/pkg-message.in << 'END-of-doom-data/files/pkg-message.in'
X====================================================================
X
XTo use the full version of the games you need to own a legitimate
Xcopy of Doom, Doom II, Hexen, Heretic and/or Strife.
X
XIf you have them then copy the ".wad" files to
X%%DATADIR%%
X
X====================================================================
END-of-doom-data/files/pkg-message.in
echo x - doom-data/distinfo
sed 's/^X//' >doom-data/distinfo << 'END-of-doom-data/distinfo'
XMD5 (doom-data/doom1.wad.bz2) = c7fd38f3698110efadea1c9475736fdc
XSIZE (doom-data/doom1.wad.bz2) = 1689027
XMD5 (doom-data/hacx.wad.bz2) = bc2245699c36736a0fa62a76b95f4e6c
XSIZE (doom-data/hacx.wad.bz2) = 8976448
XMD5 (doom-data/heretic1.wad.bz2) = 66462a87884aa00a41c0208bb152bbaa
XSIZE (doom-data/heretic1.wad.bz2) = 2218057
XMD5 (doom-data/hexen.wad.bz2) = 0478c38a75809b9bf1b604e6e688df4b
XSIZE (doom-data/hexen.wad.bz2) = 4897389
XMD5 (doom-data/strife0.wad.bz2) = 7ce874f958c1538c8b96dd972e3d1fd0
XSIZE (doom-data/strife0.wad.bz2) = 4051675
END-of-doom-data/distinfo
echo x - doom-data/pkg-descr
sed 's/^X//' >doom-data/pkg-descr << 'END-of-doom-data/pkg-descr'
XDoom data files (Doom, Doom II, Hexen, Heretic, Strife).
X
XThis port installs the data files needed to run Doom.
X
XYou still need to have a legitimate copy of the game in order to obtain
Xthe full game, otherwise you can use the shareware version.
END-of-doom-data/pkg-descr
echo x - doom-data/pkg-plist
sed 's/^X//' >doom-data/pkg-plist << 'END-of-doom-data/pkg-plist'
X%%DOOM%%%%DATADIR%%/doom1.wad
X%%HERETIC%%%%DATADIR%%/heretic1.wad
X%%HEXEN%%%%DATADIR%%/hexen.wad
X%%STRIFE%%%%DATADIR%%/strife0.wad
X 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
END-of-doom-data/pkg-plist
exit
--- doom-data.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list