1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/games/doom/Makefile
Simon Barner 7c512f463c - 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)
2005-11-17 12:04:35 +00:00

55 lines
1.5 KiB
Makefile

# New ports collection makefile for: games
# Date created: Mon Dec 14 21:03:01 MET 1998
# Whom: jmz
#
# $FreeBSD$
#
PORTNAME= doom
PORTVERSION= 1.10
CATEGORIES= games
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
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
USE_REINPLACE= yes
USE_XLIB= yes
USE_ZIP= yes
NO_WRKSUBDIR= 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
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${PREFIX}/libexec/doom/sndserver
@(${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
.include "${.CURDIR}/../doom-data/Makefile.include"
.include <bsd.port.mk>