1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/games/doom/Makefile

55 lines
1.7 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.8
CATEGORIES= games
MASTER_SITES?= ftp://ftp.idsoftware.com/idstuff/source/ \
1999-01-15 02:54:22 +00:00
ftp://ftp.stomped.com/pub/idmirror/idstuff/source/ \
1999-06-20 01:14:06 +00:00
ftp://ftp.cdrom.com/pub/idgames/idstuff/source/
2000-04-14 06:43:02 +00:00
DISTNAME= doomsrc
1999-01-15 02:54:22 +00:00
MAINTAINER= jmz@FreeBSD.org
NO_CDROM= requested by IDsoftware
MASTER_SITES2= ftp://sunsite.unc.edu/pub/Linux/games/doom/ \
ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/games/doom/ \
ftp://ftp.funet.fi/pub/mirrors/sunsite.unc.edu/pub/Linux/games/doom/
DISTFILES2= doom1v18.wad.gz
1999-06-22 16:29:28 +00:00
ONLY_FOR_ARCHS= i386
USE_XLIB= yes
USE_ZIP= yes
NO_WRKSUBDIR= yes
1999-01-15 02:54:22 +00:00
USE_GMAKE= yes
.if !defined(__REAL_FETCH__)
do-fetch:
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES \
DISTFILES="${DISTFILES2}" MASTER_SITES="${MASTER_SITES2}"
.endif
1999-01-15 02:54:22 +00:00
post-extract:
@cd ${WRKDIR} && tar xzf linuxdoom-1.10.src.tgz && tar xzf sndserv.tgz
1999-01-15 02:54:22 +00:00
do-build:
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE}
@cd ${WRKDIR}/sndserv && ${GMAKE}
1999-01-15 02:54:22 +00:00
do-install:
@${MKDIR} ${PREFIX}/libexec/doom ${PREFIX}/share/doom
@${INSTALL_PROGRAM} ${WRKDIR}/linuxdoom-1.10/linux/linuxxdoom ${PREFIX}/libexec/doom/xdoom
@${INSTALL_PROGRAM} ${WRKDIR}/sndserv/linux/sndserver ${PREFIX}/libexec/doom/sndserver
@(${ECHO} "#!/bin/sh"; ${ECHO} "cd ${PREFIX}/libexec/doom"; \
${ECHO} 'export PATH=.:$$PATH';${ECHO} "export DOOMWADDIR=${PREFIX}/share/doom"; ${ECHO} "./xdoom $$*") > ${PREFIX}/bin/doom
1999-08-22 19:01:07 +00:00
@${CHMOD} ugo+x ${PREFIX}/bin/doom
@${GZCAT} ${DISTDIR}/${DISTFILES2} > ${PREFIX}/share/doom/doom1.wad
.include <bsd.port.mk>