2003-06-02 03:15:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.23 2003/06/02 01:19:36 jschauma Exp $
|
1999-12-28 15:20:41 +01:00
|
|
|
|
|
|
|
DISTNAME= q1source
|
|
|
|
PKGNAME= quake-2.30
|
2003-03-09 20:46:51 +01:00
|
|
|
PKGREVISION= 1
|
2003-03-29 13:40:00 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
1999-12-28 15:20:41 +01:00
|
|
|
CATEGORIES= games x11
|
2002-01-24 13:44:08 +01:00
|
|
|
MASTER_SITES= ftp://ftp.fu-berlin.de/pc/msdos/games/idgames/idstuff/source/ \
|
1999-12-28 15:20:41 +01:00
|
|
|
ftp://ftp.idsoftware.com/idstuff/source/
|
|
|
|
EXTRACT_SUFX= .zip
|
|
|
|
|
2003-06-02 03:15:31 +02:00
|
|
|
MAINTAINER= tech-pkg@netbsd.org
|
1999-12-28 15:20:41 +01:00
|
|
|
HOMEPAGE= http://www.idsoftware.com/
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= legendary first person shoot'em up game
|
1999-12-28 15:20:41 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
DEPENDS+= quakedata-[0-9]*:../../games/quakedata
|
1999-12-28 15:20:41 +01:00
|
|
|
|
2000-12-27 04:36:41 +01:00
|
|
|
ONLY_FOR_PLATFORM= *-*-i386
|
|
|
|
|
2002-10-20 14:59:07 +02:00
|
|
|
USE_BUILDLINK2= yes
|
1999-12-28 15:20:41 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ENV+= MAINDIR=${WRKSRC}
|
2000-10-05 06:44:59 +02:00
|
|
|
|
2000-02-01 03:30:29 +01:00
|
|
|
USE_X11BASE= yes
|
1999-12-28 15:20:41 +01:00
|
|
|
|
2002-10-20 14:59:07 +02:00
|
|
|
MAKE_ENV+= MESA_DIR=${BUILDLINK_PREFIX.Mesa}
|
2002-01-02 11:01:34 +01:00
|
|
|
MAKE_ENV+= X11BASE=${X11BASE}
|
2000-10-05 07:53:35 +02:00
|
|
|
|
1999-12-28 15:20:41 +01:00
|
|
|
do-configure:
|
2002-01-02 11:01:34 +01:00
|
|
|
cd ${WRKSRC}/qw && ${LN} -fs makefile.linux ${MAKEFILE}
|
|
|
|
cd ${WRKSRC}/winquake && ${LN} -fs makefile.linuxi386 ${MAKEFILE}
|
2000-02-01 03:30:29 +01:00
|
|
|
|
|
|
|
#pre-build:
|
2002-01-02 11:01:34 +01:00
|
|
|
# cd ${WRKSRC}/winquake && \
|
2000-02-01 03:30:29 +01:00
|
|
|
# ${MV} common.c common.c.orig && \
|
|
|
|
# ${SED} "s@GAMENAME, basedir@GAMENAME, \"${PREFIX}/share/quake/\"@" \
|
|
|
|
# < common.c.orig > common.c
|
|
|
|
|
|
|
|
do-build:
|
2002-01-02 11:01:34 +01:00
|
|
|
( cd ${WRKSRC}/qw ; ${SETENV} ${MAKE_ENV} ${GMAKE} MAINDIR=`pwd` CFLAGS="${CFLAGS}" all)
|
|
|
|
( cd ${WRKSRC}/winquake ; ${SETENV} ${MAKE_ENV} ${GMAKE} MAINDIR=`pwd` CFLAGS="${CFLAGS}" \
|
2000-02-01 03:30:29 +01:00
|
|
|
WRKSRC="${WRKSRC}" all)
|
|
|
|
|
|
|
|
do-install:
|
2002-01-02 11:01:34 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qw/release_version/qwsv ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qw/release_version/qwcl.x11 ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qw/release_version/glqwcl.glx ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/winquake/release_version/bin/glquake.glx ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/winquake/release_version/bin/quake.x11 ${PREFIX}/bin
|
2000-02-01 03:30:29 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} =====================================================================
|
|
|
|
@ ${ECHO} For running quake you need data files. Look for quakesw-1.0.6.tar.gz.
|
|
|
|
@ ${ECHO} Extract it somewhere, and start quake from the same directory, e.g.
|
|
|
|
@ ${ECHO} by running \'quake.x11\'.
|
|
|
|
@ ${ECHO} =====================================================================
|
1999-12-28 15:20:41 +01:00
|
|
|
|
2003-03-09 20:46:51 +01:00
|
|
|
.include "../../graphics/MesaLib/buildlink2.mk"
|
2003-03-24 18:56:43 +01:00
|
|
|
.include "../../graphics/glu/buildlink2.mk"
|
1999-12-28 15:20:41 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|