pkgsrc/games/quake/Makefile
tv c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00

53 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2004/10/03 00:14:46 tv Exp $
DISTNAME= q1source
PKGNAME= quake-2.30
PKGREVISION= 4
CATEGORIES= games x11
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
WRKSRC= ${WRKDIR}
USE_BUILDLINK3= yes
USE_GNU_TOOLS+= make
MAKE_ENV+= MAINDIR=${WRKSRC}
USE_X11= yes
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
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"