1996-12-11 20:54:58 +00:00
|
|
|
# New ports collection makefile for: games
|
|
|
|
# Version required: 1.8
|
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-06-22 16:29:28 +00:00
|
|
|
# $Id: Makefile,v 1.14 1999/06/20 01:14:06 cpiazza Exp $
|
1996-12-11 20:54:58 +00:00
|
|
|
#
|
|
|
|
|
1999-05-01 12:34:38 +00:00
|
|
|
DISTNAME= doomsrc
|
1999-01-18 08:44:45 +00:00
|
|
|
PKGNAME= doom-1.8
|
1996-12-11 20:54:58 +00:00
|
|
|
CATEGORIES= games
|
1999-02-10 03:53:31 +00:00
|
|
|
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/
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-01-15 02:54:22 +00:00
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-02-10 05:07:58 +00:00
|
|
|
NO_CDROM= requested by IDsoftware
|
|
|
|
|
1999-02-10 03:53:31 +00:00
|
|
|
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
|
|
|
|
|
1998-12-13 08:47:43 +00:00
|
|
|
USE_XLIB= yes
|
1999-05-01 12:34:38 +00:00
|
|
|
USE_ZIP= yes
|
1996-12-11 20:54:58 +00:00
|
|
|
NO_WRKSUBDIR= yes
|
1999-01-15 02:54:22 +00:00
|
|
|
USE_GMAKE= yes
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-02-10 03:53:31 +00:00
|
|
|
.if !defined(__REAL_FETCH__)
|
|
|
|
do-fetch:
|
|
|
|
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES
|
|
|
|
@${MAKE} ${.MAKEFLAGS} do-fetch __REAL_FETCH__=YES \
|
1999-02-10 05:07:58 +00:00
|
|
|
DISTFILES="${DISTFILES2}" MASTER_SITES="${MASTER_SITES2}"
|
1999-02-10 03:53:31 +00:00
|
|
|
.endif
|
1999-01-15 02:54:22 +00:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKDIR} && tar xzf linuxdoom-1.10.src.tgz && tar xzf sndserv.tgz
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-01-15 02:54:22 +00:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKDIR}/linuxdoom-1.10 && ${GMAKE}
|
|
|
|
@cd ${WRKDIR}/sndserv && ${GMAKE}
|
1996-12-11 20:54:58 +00:00
|
|
|
|
1999-01-15 02:54:22 +00:00
|
|
|
do-install:
|
1999-02-10 03:53:31 +00:00
|
|
|
@${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
|
|
|
|
@/bin/chmod ugo+x ${PREFIX}/bin/doom
|
|
|
|
@${GZCAT} ${DISTDIR}/${DISTFILES2} > ${PREFIX}/share/doom/doom1.wad
|
1996-12-11 20:54:58 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|