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
|
2009-09-19 13:42:22 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|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
|
|
|
|
2012-10-06 10:02:07 +02:00
|
|
|
LICENSE= GPLv1
|
|
|
|
|
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
|
|
|
|
2013-09-20 19:36:33 +02:00
|
|
|
NO_STAGE= yes
|
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:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} X11BASE=${LOCALBASE}
|
1999-01-15 03:54:22 +01:00
|
|
|
@cd ${WRKDIR}/sndserv && ${GMAKE}
|
1996-12-11 21:54:58 +01:00
|
|
|
|
1999-01-15 03:54:22 +01:00
|
|
|
do-install:
|
2005-11-17 13:04:35 +01:00
|
|
|
@${MKDIR} ${PREFIX}/libexec/doom
|
1999-02-10 04:53:31 +01: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 13:04:35 +01: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 21:01:07 +02:00
|
|
|
@${CHMOD} ugo+x ${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>
|