1996-12-11 15:54:58 -05:00
|
|
|
# New ports collection makefile for: games
|
1999-01-14 21:54:22 -05:00
|
|
|
# Date created: Mon Dec 14 21:03:01 MET 1998
|
|
|
|
# Whom: jmz
|
1996-12-11 15:54:58 -05:00
|
|
|
#
|
1999-08-25 02:06:33 -04:00
|
|
|
# $FreeBSD$
|
1996-12-11 15:54:58 -05:00
|
|
|
#
|
|
|
|
|
2000-04-14 02:43:02 -04:00
|
|
|
PORTNAME= doom
|
|
|
|
PORTVERSION= 1.8
|
2004-02-04 00:21:48 -05:00
|
|
|
PORTREVISION= 1
|
1996-12-11 15:54:58 -05:00
|
|
|
CATEGORIES= games
|
1999-02-09 22:53:31 -05:00
|
|
|
MASTER_SITES?= ftp://ftp.idsoftware.com/idstuff/source/ \
|
1999-01-14 21:54:22 -05:00
|
|
|
ftp://ftp.stomped.com/pub/idmirror/idstuff/source/ \
|
1999-06-19 21:14:06 -04:00
|
|
|
ftp://ftp.cdrom.com/pub/idgames/idstuff/source/
|
2000-04-14 02:43:02 -04:00
|
|
|
DISTNAME= doomsrc
|
1996-12-11 15:54:58 -05:00
|
|
|
|
1999-01-14 21:54:22 -05:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
2003-03-07 01:14:21 -05:00
|
|
|
COMMENT= DOOM: the game and the sound server
|
1996-12-11 15:54:58 -05:00
|
|
|
|
1999-02-10 00:07:58 -05:00
|
|
|
NO_CDROM= requested by IDsoftware
|
|
|
|
|
1999-02-09 22:53:31 -05:00
|
|
|
MASTER_SITES2= ftp://sunsite.unc.edu/pub/Linux/games/doom/ \
|
|
|
|
ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/games/doom/ \
|
|
|
|
ftp://ftp.funet.fi/pub/mirrors/sunsite.unc.edu/pub/Linux/games/doom/
|
|
|
|
DISTFILES2= doom1v18.wad.gz
|
|
|
|
|
1999-06-22 12:29:28 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2003-11-20 10:06:14 -05:00
|
|
|
USE_PERL5_BUILD=yes
|
1998-12-13 03:47:43 -05:00
|
|
|
USE_XLIB= yes
|
1999-05-01 08:34:38 -04:00
|
|
|
USE_ZIP= yes
|
1996-12-11 15:54:58 -05:00
|
|
|
NO_WRKSUBDIR= yes
|
1999-01-14 21:54:22 -05:00
|
|
|
USE_GMAKE= yes
|
1996-12-11 15:54:58 -05:00
|
|
|
|
1999-02-09 22:53:31 -05:00
|
|
|
.if !defined(__REAL_FETCH__)
|
|
|
|
do-fetch:
|
|
|
|
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES
|
|
|
|
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES \
|
1999-02-10 00:07:58 -05:00
|
|
|
DISTFILES="${DISTFILES2}" MASTER_SITES="${MASTER_SITES2}"
|
1999-02-09 22:53:31 -05:00
|
|
|
.endif
|
1999-01-14 21:54:22 -05:00
|
|
|
post-extract:
|
2002-01-29 05:53:27 -05:00
|
|
|
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz
|
1996-12-11 15:54:58 -05:00
|
|
|
|
2002-01-26 03:00:58 -05:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -pi -e "s@#include +<malloc.h>@#include <stdlib.h>@g"
|
|
|
|
|
1999-01-14 21:54:22 -05:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE}
|
|
|
|
@cd ${WRKDIR}/sndserv && ${GMAKE}
|
1996-12-11 15:54:58 -05:00
|
|
|
|
1999-01-14 21:54:22 -05:00
|
|
|
do-install:
|
1999-02-09 22:53:31 -05:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/doom ${PREFIX}/share/doom
|
|
|
|
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom
|
|
|
|
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${PREFIX}/libexec/doom/sndserver
|
2002-01-29 05:53:27 -05:00
|
|
|
@(${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
|
1999-08-22 15:01:07 -04:00
|
|
|
@${CHMOD} ugo+x ${PREFIX}/bin/doom
|
1999-02-09 22:53:31 -05:00
|
|
|
@${GZCAT} ${DISTDIR}/${DISTFILES2} > ${PREFIX}/share/doom/doom1.wad
|
1996-12-11 15:54:58 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|