1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/games/doom/Makefile

55 lines
1.5 KiB
Makefile
Raw Normal View History

# 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
#
1999-08-25 06:06:33 +00:00
# $FreeBSD$
#
2000-04-14 06:43:02 +00:00
PORTNAME= doom
PORTVERSION= 1.10
CATEGORIES= games
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
1999-01-15 02:54:22 +00:00
MAINTAINER= jmz@FreeBSD.org
COMMENT= DOOM: the game and the sound server
NO_CDROM= requested by IDsoftware
1999-06-22 16:29:28 +00:00
ONLY_FOR_ARCHS= i386
USE_GMAKE= yes
USE_REINPLACE= yes
USE_XLIB= yes
USE_ZIP= yes
NO_WRKSUBDIR= yes
DATADIR= ${DMDIR}
1999-01-15 02:54:22 +00:00
post-extract:
@cd ${WRKDIR} && ${TAR} xzf linuxdoom-1.10.src.tgz && ${TAR} xzf sndserv.tgz
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:
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE} X11BASE=${X11BASE}
1999-01-15 02:54:22 +00:00
@cd ${WRKDIR}/sndserv && ${GMAKE}
1999-01-15 02:54:22 +00:00
do-install:
@${MKDIR} ${PREFIX}/libexec/doom
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${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 $$*") > ${PREFIX}/bin/doom
1999-08-22 19:01:07 +00:00
@${CHMOD} ugo+x ${PREFIX}/bin/doom
.include "${.CURDIR}/../doom-data/Makefile.include"
.include <bsd.port.mk>