1996-12-11 20:54:58 +00:00
|
|
|
# New ports collection makefile for: games
|
1999-01-15 02:54:22 +00:00
|
|
|
# Date created: Mon Dec 14 21:03:01 MET 1998
|
|
|
|
# Whom: jmz
|
1996-12-11 20:54:58 +00:00
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1996-12-11 20:54:58 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 06:43:02 +00:00
|
|
|
PORTNAME= doom
|
2005-10-10 11:33:30 +00:00
|
|
|
PORTVERSION= 1.10
|
1996-12-11 20:54:58 +00:00
|
|
|
CATEGORIES= games
|
2005-11-17 12:04:35 +00:00
|
|
|
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
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-01-15 02:54:22 +00:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= DOOM: the game and the sound server
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-02-10 05:07:58 +00:00
|
|
|
NO_CDROM= requested by IDsoftware
|
|
|
|
|
1999-06-22 16:29:28 +00:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2005-11-17 12:04:35 +00:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
1998-12-13 08:47:43 +00:00
|
|
|
USE_XLIB= yes
|
1999-05-01 12:34:38 +00:00
|
|
|
USE_ZIP= yes
|
1996-12-11 20:54:58 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
2005-11-17 12:04:35 +00:00
|
|
|
|
|
|
|
DATADIR= ${DMDIR}
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-01-15 02:54:22 +00:00
|
|
|
post-extract:
|
2002-01-29 10:53:27 +00:00
|
|
|
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz
|
1996-12-11 20:54:58 +00:00
|
|
|
|
2005-11-17 12:04:35 +00:00
|
|
|
post-patch:
|
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-E -e 's|#include +<malloc.h>|#include <stdlib.h>|g'
|
|
|
|
|
1999-01-15 02:54:22 +00:00
|
|
|
do-build:
|
2005-10-28 10:54:18 +00:00
|
|
|
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} X11BASE=${X11BASE}
|
1999-01-15 02:54:22 +00:00
|
|
|
@cd ${WRKDIR}/sndserv && ${GMAKE}
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-01-15 02:54:22 +00:00
|
|
|
do-install:
|
2005-11-17 12:04:35 +00:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/doom
|
1999-02-10 03:53:31 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom
|
|
|
|
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${PREFIX}/libexec/doom/sndserver
|
2005-11-17 12:04:35 +00:00
|
|
|
@(${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
|
1999-08-22 19:01:07 +00:00
|
|
|
@${CHMOD} ugo+x ${PREFIX}/bin/doom
|
2005-11-17 12:04:35 +00:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../doom-data/Makefile.include"
|
1996-12-11 20:54:58 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|