freebsd-ports/games/doom/Makefile

73 lines
2.3 KiB
Makefile
Raw Normal View History

# Created by: Jean-Marc Zucconi <jmz@FreeBSD.org>
1999-08-25 08:06:33 +02:00
# $FreeBSD$
2000-04-14 08:43:02 +02:00
PORTNAME= doom
PORTVERSION= 1.10
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= IDSOFTWARE/source
DISTNAME= doomsrc
MAINTAINER= ports@FreeBSD.org
COMMENT= DOOM: the game and the sound server
LICENSE= IDSOFTWARE
LICENSE_NAME= ID SOFTWARE LICENSE
2015-01-16 22:41:35 +01:00
LICENSE_FILE= ${WRKSRC}/linuxdoom-${PORTVERSION}/DOOMLIC.TXT
LICENSE_PERMS= dist-mirror pkg-mirror
NO_CDROM= Redistribution is limited, see license; Requested by id Software
1999-06-22 18:29:28 +02:00
ONLY_FOR_ARCHS= i386
2014-03-10 15:49:26 +01:00
USES= gmake zip
USE_XORG= x11 sm xextproto xext
NO_WRKSUBDIR= yes
DATADIR= ${DMDIR}
1999-01-15 03:54:22 +01:00
post-extract:
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz
post-patch:
${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
@${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:
@cd ${WRKDIR}/linuxdoom-1.10 && ${SETENV} ${MAKE_ENV} \
${MAKE_CMD} X11BASE=${LOCALBASE}
@cd ${WRKDIR}/sndserv && ${SETENV} ${MAKE_ENV} ${MAKE_CMD}
1999-01-15 03:54:22 +01:00
do-install:
@${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
@(${ECHO_CMD} "#!${SH}"; ${ECHO_CMD} "cd ${PREFIX}/libexec/doom"; \
${ECHO_CMD} 'export PATH=.:$$PATH';${ECHO_CMD} "export DOOMWADDIR=${DATADIR}"; \
${ECHO_CMD} "./xdoom $$*") > ${STAGEDIR}${PREFIX}/bin/doom
@${CHMOD} ugo+x ${STAGEDIR}${PREFIX}/bin/doom
.include "${.CURDIR}/../doom-data/Makefile.include"
.include <bsd.port.mk>