pkgsrc/games/quake3arena/Makefile
jlam 60f791e1e6 Move the check-shlibs target from bsd.pkg.mk to bsd.pkg.check.mk where
it will live with other "check" targets run after package installation.

Get rid of SHLIB_HANDLING, whose meaning had mutated over the years
from one thing to another.  Currently, it is used to basically note
whether the system's "ldd" command can be usefully run on the package's
binaries and libraries.  Rename this variable to CHECK_SHLIBS_SUPPORTED
for more clarity.

CHECK_SHLIBS is now a variable set exclusively by the user in /etc/mk.conf
to note whether the check for missing run-time search paths is performed
after a package is installed.  It defaults to "no" unless PKG_DEVELOPER
is set.
2006-05-22 22:22:02 +00:00

73 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2006/05/22 22:22:03 jlam Exp $
DISTNAME= linuxq3apoint-1.32b.x86
PKGREVISION= 2
PKGNAME= quake3arena-1.32b
CATEGORIES= games x11
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake3/linux/ \
ftp://mirrors.xmission.com/idsoftware/quake3/linux/
EXTRACT_SUFX= .run
MAINTAINER= jmcneill@NetBSD.org
HOMEPAGE= http://www.quake3arena.com/
COMMENT= Quake 3 Arena -- first person shooter (binary only, no data files)
CONFLICTS= quake3arena-demo-[0-9]*
.include "../../emulators/suse_linux/Makefile.application"
.if !defined(USE_NATIVE_LINUX)
DEPENDS+= suse_base>=6.3:../../emulators/${SUSE_DIR_PREFIX}_base
DEPENDS+= suse_x11>=6.3:../../emulators/${SUSE_DIR_PREFIX}_x11
DEPENDS+= suse_glx>=6.4:../../emulators/${SUSE_DIR_PREFIX}_glx
.endif
NO_SRC_ON_FTP= no
NO_BIN_ON_FTP= no
NO_CONFIGURE= yes
USE_TOOLS+= gtar gunzip tail
# The distfile is a self-extracting shell script. "266" is a magic
# number that's taken from the distfile itself.
#
EXTRACT_CMD= tail +266 ${DOWNLOADED_DISTFILE} | gunzip | gtar -xf -
.if !make(fetch)
ONLY_FOR_PLATFORM=*-*-i386
.endif
DISTBINNAME= quake3.x86
BINNAME= quake3arena
WRKSRC= ${WRKDIR}
LIBDIR= ${PREFIX}/lib/lokigames/${BINNAME}
SHAREDIR= ${PREFIX}/share/doc/lokigames
INSTALLATION_DIRS= bin
.include "../../mk/x11.buildlink3.mk"
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/${DISTBINNAME} \
${LIBDIR}/${BINNAME}
${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${SHAREDIR}/${BINNAME}-README
cd ${WRKSRC} && ${PAX} -rw baseq3 ${LIBDIR}
.if ${OPSYS} == "FreeBSD"
post-install:
${BRANDELF} -t Linux ${LIBDIR}/${BINNAME}
.endif
.include "../../mk/bsd.pkg.mk"