2002-02-24 18:03:24 +01:00
|
|
|
# $NetBSD: Makefile,v 1.9 2002/02/24 17:03:24 wiz Exp $
|
2000-12-09 19:25:05 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= linuxq3ademo-1_11-6_x86_gz
|
|
|
|
PKGNAME= quake3arena-demo-1.11.6
|
|
|
|
CATEGORIES= games x11
|
|
|
|
MASTER_SITES= http://download1.activision.com/activision/quake3/demo/ \
|
|
|
|
http://download2.activision.com/activision/quake3/demo/
|
|
|
|
EXTRACT_SUFX= .sh
|
|
|
|
|
|
|
|
MAINTAINER= wiz@netbsd.org
|
|
|
|
HOMEPAGE= http://www.quake3arena.com/
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= Quake 3 Arena -- first person shooter (linux demo)
|
2000-12-09 19:25:05 +01:00
|
|
|
|
|
|
|
DEPENDS+= suse_linux>=6.3:../../emulators/suse_linux
|
2002-02-24 18:03:24 +01:00
|
|
|
DEPENDS+= suse_glx>=6.4:../../emulators/suse_glx
|
2000-12-09 19:25:05 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
CONFLICTS= quake3arena-[0-9]*
|
2000-12-14 01:01:25 +01:00
|
|
|
|
2000-12-09 19:25:05 +01:00
|
|
|
NO_CONFIGURE= yes
|
2001-09-09 22:36:07 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-12-09 19:25:05 +01:00
|
|
|
EXTRACT_CMD= ${SED} '1,/^END_OF_STUB$$/d' ${DOWNLOADED_DISTFILE} | \
|
|
|
|
${GTAR} xzf -
|
|
|
|
|
|
|
|
ONLY_FOR_PLATFORM=*-*-i386
|
|
|
|
|
|
|
|
DISTBINNAME= q3demo
|
|
|
|
BINNAME= quake3arena-demo
|
|
|
|
|
|
|
|
DIST_SUBDIR= lokigames
|
|
|
|
LIBDIR= ${PREFIX}/lib/lokigames/${BINNAME}
|
|
|
|
SHAREDIR= ${PREFIX}/share/doc/lokigames
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
|
|
|
|
-e 's#@@LIBDIR@@#${LIBDIR}#g' \
|
|
|
|
-e 's#@@BINNAME@@#${BINNAME}#g' \
|
|
|
|
<${FILESDIR}/wrapper.sh >${WRKDIR}/${BINNAME}.sh
|
|
|
|
|
|
|
|
# The executable must be in the same directory as the data.
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM_DIR} ${LIBDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${SHAREDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh ${PREFIX}/bin/${BINNAME}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/x86/glibc-2.1/${DISTBINNAME} \
|
|
|
|
${LIBDIR}/${BINNAME}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/x86/glibc-2.1/q3ded ${LIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/x86/glibc-2.1/libMesaVoodooGL.so.3.2 \
|
|
|
|
${LIBDIR}
|
2001-03-28 12:28:28 +02:00
|
|
|
${LN} -s ${LIBDIR}/libMesaVoodooGL.so.3.2 \
|
|
|
|
${LIBDIR}/libMesaVoodooGL.so.3
|
|
|
|
${LN} -s ${LIBDIR}/libMesaVoodooGL.so.3.2 \
|
|
|
|
${LIBDIR}/libMesaVoodooGL.so
|
2000-12-09 19:25:05 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${SHAREDIR}/${BINNAME}-README
|
|
|
|
cd ${WRKSRC} ; ${PAX} -rw demoq3 icon.bmp icon.xpm ${LIBDIR}
|
|
|
|
cd ${WRKSRC} ; ${PAX} -rw Help ${SHAREDIR}
|
|
|
|
${MV} ${SHAREDIR}/Help ${SHAREDIR}/quake3arena-Help
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|