2013-03-07 04:25:10 +01:00
|
|
|
# Created by: Jean-Marc Zucconi <jmz@FreeBSD.org>
|
1999-08-25 08:06:33 +02:00
|
|
|
# $FreeBSD$
|
1996-12-11 21:54:58 +01:00
|
|
|
|
2000-04-14 08:43:02 +02:00
|
|
|
PORTNAME= doom
|
2005-10-10 13:33:30 +02:00
|
|
|
PORTVERSION= 1.10
|
2009-11-04 09:37:24 +01:00
|
|
|
PORTREVISION= 5
|
1996-12-11 21:54:58 +01:00
|
|
|
CATEGORIES= games
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= IDSOFTWARE/source
|
2005-11-17 13:04:35 +01:00
|
|
|
DISTNAME= doomsrc
|
1996-12-11 21:54:58 +01:00
|
|
|
|
2013-11-25 01:03:38 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= DOOM: the game and the sound server
|
1996-12-11 21:54:58 +01:00
|
|
|
|
2014-12-12 12:24:58 +01:00
|
|
|
LICENSE= IDSOFTWARE
|
|
|
|
LICENSE_NAME= ID SOFTWARE LICENSE
|
2015-01-16 22:41:35 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/linuxdoom-${PORTVERSION}/DOOMLIC.TXT
|
2014-12-12 12:24:58 +01:00
|
|
|
LICENSE_PERMS= dist-mirror pkg-mirror
|
2012-10-06 10:02:07 +02:00
|
|
|
|
2013-12-12 05:41:07 +01:00
|
|
|
NO_CDROM= Redistribution is limited, see license; Requested by id Software
|
1999-02-10 06:07:58 +01:00
|
|
|
|
1999-06-22 18:29:28 +02:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= gmake zip
|
2008-04-21 00:27:05 +02:00
|
|
|
USE_XORG= x11 sm xextproto xext
|
1996-12-11 21:54:58 +01:00
|
|
|
NO_WRKSUBDIR= yes
|
2005-11-17 13:04:35 +01:00
|
|
|
|
|
|
|
DATADIR= ${DMDIR}
|
1996-12-11 21:54:58 +01:00
|
|
|
|
1999-01-15 03:54:22 +01:00
|
|
|
post-extract:
|
2002-01-29 11:53:27 +01:00
|
|
|
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz
|
1996-12-11 21:54:58 +01:00
|
|
|
|
2005-11-17 13:04:35 +01:00
|
|
|
post-patch:
|
2009-11-04 09:37:24 +01:00
|
|
|
${REINPLACE_CMD} 's|<linux/soundcard.h>|<sys/soundcard.h>|g'\
|
|
|
|
${WRKSRC}/sndserv/linux.c \
|
|
|
|
${WRKSRC}/linuxdoom-1.10/i_sound.c
|
|
|
|
${REINPLACE_CMD} 's|<errnos.h>|<errno.h>|g' \
|
|
|
|
${WRKSRC}/linuxdoom-1.10/i_video.c
|
|
|
|
${REINPLACE_CMD} 's|#include <alloca.h>|//#include <alloca.h>|g'\
|
|
|
|
${WRKSRC}/linuxdoom-1.10/r_data.c
|
|
|
|
${REINPLACE_CMD} 's|#include <alloca.h>|//#include <alloca.h>|g'\
|
|
|
|
${WRKSRC}/linuxdoom-1.10/w_wad.c
|
|
|
|
${REINPLACE_CMD} 's|<malloc.c>|<stdlib.h>|g'\
|
|
|
|
${WRKSRC}/linuxdoom-1.10/w_wad.c \
|
|
|
|
${WRKSRC}/sndserv/soundsrv.c \
|
|
|
|
${WRKSRC}/sndserv/wadread.c
|
|
|
|
${REINPLACE_CMD} 's|<values.h>|<limits.h>|g'\
|
|
|
|
${WRKSRC}/linuxdoom-1.10/m_bbox.h \
|
|
|
|
${WRKSRC}/linuxdoom-1.10/doomtype.h
|
|
|
|
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g'\
|
|
|
|
${WRKSRC}/linuxdoom-1.10/Makefile
|
2005-11-17 13:04:35 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-E -e 's|#include +<malloc.h>|#include <stdlib.h>|g'
|
|
|
|
|
1999-01-15 03:54:22 +01:00
|
|
|
do-build:
|
2014-04-13 11:54:02 +02:00
|
|
|
@cd ${WRKDIR}/linuxdoom-1.10 && ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE_CMD} X11BASE=${LOCALBASE}
|
|
|
|
@cd ${WRKDIR}/sndserv && ${SETENV} ${MAKE_ENV} ${MAKE_CMD}
|
1996-12-11 21:54:58 +01:00
|
|
|
|
1999-01-15 03:54:22 +01:00
|
|
|
do-install:
|
2014-04-13 11:54:02 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/doom
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom \
|
|
|
|
${STAGEDIR}${PREFIX}/libexec/doom/xdoom
|
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver \
|
|
|
|
${STAGEDIR}${PREFIX}/libexec/doom/sndserver
|
2005-11-17 13:04:35 +01:00
|
|
|
@(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} "cd ${PREFIX}/libexec/doom"; \
|
2014-04-13 11:54:02 +02:00
|
|
|
${ECHO_CMD} 'export PATH=.:$$PATH';${ECHO_CMD} "export DOOMWADDIR=${DATADIR}"; \
|
|
|
|
${ECHO_CMD} "./xdoom $$*") > ${STAGEDIR}${PREFIX}/bin/doom
|
|
|
|
@${CHMOD} ugo+x ${STAGEDIR}${PREFIX}/bin/doom
|
2005-11-17 13:04:35 +01:00
|
|
|
|
|
|
|
.include "${.CURDIR}/../doom-data/Makefile.include"
|
1996-12-11 21:54:58 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|