mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
- 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)
This commit is contained in:
parent
72bae470f4
commit
7c512f463c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148596
@ -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>
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,4 @@
|
||||
bin/doom
|
||||
libexec/doom/sndserver
|
||||
libexec/doom/xdoom
|
||||
share/doom/doom1.wad
|
||||
@dirrm share/doom
|
||||
@dirrm libexec/doom
|
||||
|
Loading…
Reference in New Issue
Block a user