pkgsrc/games/quake/Makefile

62 lines
2.1 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.23 2003/06/02 01:19:36 jschauma Exp $
DISTNAME= q1source
PKGNAME= quake-2.30
PKGREVISION= 1
WRKSRC= ${WRKDIR}
CATEGORIES= games x11
2002-01-24 13:44:08 +01:00
MASTER_SITES= ftp://ftp.fu-berlin.de/pc/msdos/games/idgames/idstuff/source/ \
ftp://ftp.idsoftware.com/idstuff/source/
EXTRACT_SUFX= .zip
MAINTAINER= tech-pkg@netbsd.org
HOMEPAGE= http://www.idsoftware.com/
COMMENT= legendary first person shoot'em up game
DEPENDS+= quakedata-[0-9]*:../../games/quakedata
ONLY_FOR_PLATFORM= *-*-i386
2002-10-20 14:59:07 +02:00
USE_BUILDLINK2= yes
USE_GMAKE= yes
MAKE_ENV+= MAINDIR=${WRKSRC}
2000-10-05 06:44:59 +02:00
USE_X11BASE= yes
2002-10-20 14:59:07 +02:00
MAKE_ENV+= MESA_DIR=${BUILDLINK_PREFIX.Mesa}
MAKE_ENV+= X11BASE=${X11BASE}
do-configure:
cd ${WRKSRC}/qw && ${LN} -fs makefile.linux ${MAKEFILE}
cd ${WRKSRC}/winquake && ${LN} -fs makefile.linuxi386 ${MAKEFILE}
#pre-build:
# cd ${WRKSRC}/winquake && \
# ${MV} common.c common.c.orig && \
# ${SED} "s@GAMENAME, basedir@GAMENAME, \"${PREFIX}/share/quake/\"@" \
# < common.c.orig > common.c
do-build:
( cd ${WRKSRC}/qw ; ${SETENV} ${MAKE_ENV} ${GMAKE} MAINDIR=`pwd` CFLAGS="${CFLAGS}" all)
( cd ${WRKSRC}/winquake ; ${SETENV} ${MAKE_ENV} ${GMAKE} MAINDIR=`pwd` CFLAGS="${CFLAGS}" \
WRKSRC="${WRKSRC}" all)
do-install:
${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
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} =====================================================================
.include "../../graphics/MesaLib/buildlink2.mk"
2003-03-24 18:56:43 +01:00
.include "../../graphics/glu/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"