aboutsummaryrefslogtreecommitdiffstats
path: root/games/doom
diff options
context:
space:
mode:
authorbarner <barner@FreeBSD.org>2005-11-17 20:04:35 +0800
committerbarner <barner@FreeBSD.org>2005-11-17 20:04:35 +0800
commitc5578717a3fc4eac40fc8e1d06d0d6c39f029d83 (patch)
tree674eef7f825565152a6845e1b6c4aa77ca5bb922 /games/doom
parent3ee2cbae611292465b39946084343f5814c3ed6a (diff)
downloadfreebsd-ports-gnome-c5578717a3fc4eac40fc8e1d06d0d6c39f029d83.tar.gz
freebsd-ports-gnome-c5578717a3fc4eac40fc8e1d06d0d6c39f029d83.tar.zst
freebsd-ports-gnome-c5578717a3fc4eac40fc8e1d06d0d6c39f029d83.zip
- Integrate with "doom-data".
- Use REINPLACE_CMD instead of PERL (to convert dos text files). - Update MASTER_SITES. - Add SHA256 PR: ports/86445 Submitted by: Alejandro Pulver <alejandro@varnet.biz> Approved by: maintainer timeout (2 months)
Diffstat (limited to 'games/doom')
-rw-r--r--games/doom/Makefile34
-rw-r--r--games/doom/distinfo3
-rw-r--r--games/doom/pkg-plist2
3 files changed, 20 insertions, 19 deletions
diff --git a/games/doom/Makefile b/games/doom/Makefile
index 0348765fa91a..d1d9818c9f5e 100644
--- a/games/doom/Makefile
+++ b/games/doom/Makefile
@@ -8,43 +8,47 @@
PORTNAME= doom
PORTVERSION= 1.10
CATEGORIES= games
-MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/:src \
- ftp://ftp.stomped.com/pub/idmirror/idstuff/source/:src \
- ftp://ftp.cdrom.com/pub/idgames/idstuff/source/:src \
- ${MASTER_SITE_SUNSITE:S/$/:wad/g}
-MASTER_SITE_SUBDIR= games/doom/:wad
-DISTFILES= ${SRCFILE}:src ${WADFILE}:wad
-EXTRACT_ONLY= ${SRCFILE}
+MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/ \
+ http://ftp.sunet.se/pub/pc/games/idgames/idstuff/source/ \
+ http://www.gamers.org/pub/idgames/idstuff/source/ \
+ ftp://ftp.ntua.gr/pub/vendors/idgames/idstuff/source/
+
+DISTNAME= doomsrc
MAINTAINER= jmz@FreeBSD.org
COMMENT= DOOM: the game and the sound server
NO_CDROM= requested by IDsoftware
-WADFILE= doom1v18.wad.gz
-SRCFILE= doomsrc${EXTRACT_SUFX}
-
ONLY_FOR_ARCHS= i386
+USE_GMAKE= yes
+USE_REINPLACE= yes
USE_XLIB= yes
USE_ZIP= yes
NO_WRKSUBDIR= yes
-USE_GMAKE= yes
+
+DATADIR= ${DMDIR}
post-extract:
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz
+post-patch:
+ @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
+ -E -e 's|#include +<malloc.h>|#include <stdlib.h>|g'
+
do-build:
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} X11BASE=${X11BASE}
@cd ${WRKDIR}/sndserv && ${GMAKE}
do-install:
- @${MKDIR} ${PREFIX}/libexec/doom ${PREFIX}/share/doom
+ @${MKDIR} ${PREFIX}/libexec/doom
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${PREFIX}/libexec/doom/sndserver
- @(${ECHO_CMD} "#!/bin/sh"; ${ECHO_CMD} "cd ${PREFIX}/libexec/doom"; \
- ${ECHO_CMD} 'export PATH=.:$$PATH';${ECHO_CMD} "export DOOMWADDIR=${PREFIX}/share/doom"; ${ECHO_CMD} "./xdoom $$*") > ${PREFIX}/bin/doom
+ @(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} "cd ${PREFIX}/libexec/doom"; \
+ ${ECHO_CMD} 'export PATH=.:$$PATH';${ECHO_CMD} "export DOOMWADDIR=${DATADIR}"; ${ECHO_CMD} "./xdoom $$*") > ${PREFIX}/bin/doom
@${CHMOD} ugo+x ${PREFIX}/bin/doom
- @${GZCAT} ${DISTDIR}/${WADFILE} > ${PREFIX}/share/doom/doom1.wad
+
+.include "${.CURDIR}/../doom-data/Makefile.include"
.include <bsd.port.mk>
diff --git a/games/doom/distinfo b/games/doom/distinfo
index 403a5c965663..43d0a41b5131 100644
--- a/games/doom/distinfo
+++ b/games/doom/distinfo
@@ -1,4 +1,3 @@
MD5 (doomsrc.zip) = 80b3fe460c59ca7bb809c56eec876515
+SHA256 (doomsrc.zip) = 29348bc1164e92b3e24807c6013db88b2847dd7fdf03f85261951e38de06a337
SIZE (doomsrc.zip) = 362698
-MD5 (doom1v18.wad.gz) = 5da027cbafb33b124f321f3c171cfed6
-SIZE (doom1v18.wad.gz) = 1765823
diff --git a/games/doom/pkg-plist b/games/doom/pkg-plist
index 103e5b938576..20ed539aa27b 100644
--- a/games/doom/pkg-plist
+++ b/games/doom/pkg-plist
@@ -1,6 +1,4 @@
bin/doom
libexec/doom/sndserver
libexec/doom/xdoom
-share/doom/doom1.wad
-@dirrm share/doom
@dirrm libexec/doom