2005-02-17 20:56:29 +01:00
|
|
|
# $NetBSD: Makefile,v 1.33 2005/02/17 19:56:29 xtraeme Exp $
|
1999-12-28 15:20:41 +01:00
|
|
|
|
|
|
|
DISTNAME= q1source
|
|
|
|
PKGNAME= quake-2.30
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 4
|
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-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
1999-12-28 15:20:41 +01:00
|
|
|
HOMEPAGE= http://www.idsoftware.com/
|
2003-07-21 18:45:54 +02: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
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2004-04-10 06:13:27 +02:00
|
|
|
USE_BUILDLINK3= yes
|
2004-01-24 14:30:55 +01:00
|
|
|
USE_GNU_TOOLS+= make
|
1999-12-28 15:20:41 +01:00
|
|
|
MAKE_ENV+= MAINDIR=${WRKSRC}
|
2000-10-05 06:44:59 +02:00
|
|
|
|
2003-11-18 15:13:47 +01:00
|
|
|
USE_X11= 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
|
|
|
|
2005-02-17 20:56:29 +01:00
|
|
|
LDFLAGS+= ${LIBOSSAUDIO}
|
2005-02-17 19:23:24 +01: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
|
|
|
|
|
|
|
do-build:
|
2005-02-17 19:23:24 +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:
|
2005-02-17 19:23:24 +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
|
|
|
|
2004-04-10 06:13:27 +02:00
|
|
|
.include "../../graphics/MesaLib/buildlink3.mk"
|
|
|
|
.include "../../graphics/glu/buildlink3.mk"
|
2005-02-17 20:56:29 +01:00
|
|
|
.include "../../mk/ossaudio.buildlink3.mk"
|
1999-12-28 15:20:41 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|