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
|
2009-11-04 08:37:24 +00:00
|
|
|
PORTREVISION= 5
|
1996-12-11 20:54:58 +00:00
|
|
|
CATEGORIES= games
|
2009-09-19 11:42:22 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE:S|$|source/|}
|
2005-11-17 12:04:35 +00:00
|
|
|
DISTNAME= doomsrc
|
1996-12-11 20:54:58 +00:00
|
|
|
|
2010-10-28 08:46:36 +00:00
|
|
|
MAINTAINER= c.petrik.sosa@gmail.com
|
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
|
1999-05-01 12:34:38 +00:00
|
|
|
USE_ZIP= yes
|
2008-04-20 22:27:05 +00:00
|
|
|
USE_XORG= x11 sm xextproto xext
|
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:
|
2009-11-04 08:37:24 +00: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 12:04:35 +00:00
|
|
|
@${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:
|
- 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 17:56:05 +00:00
|
|
|
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} X11BASE=${LOCALBASE}
|
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>
|