pkgsrc/games/ioquake3/Makefile

39 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2019/04/12 18:39:34 nia Exp $
#
DISTNAME= ioquake3-1.36
PKGREVISION= 3
CATEGORIES= games
MASTER_SITES= http://ioquake3.org/files/1.36/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.ioquake3.org/
COMMENT= Open source Quake 3 distribution
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake
BUILD_TARGET= release
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/ioquake3
cd ${WRKSRC} && ${GMAKE} copyfiles COPYDIR=${DESTDIR}${PREFIX}/lib/ioquake3
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" && ${MACHINE_CPU:U} == "arm"
QUAKE_ARCH!= uname -m
.else
QUAKE_ARCH= ${MACHINE_ARCH}
.endif
PLIST_SUBST+= QUAKE_ARCH=${QUAKE_ARCH:Q}
# recursive error after: VM_CompileX86: mprotect failed
NOT_PAX_MPROTECT_SAFE+= lib/ioquake3/ioq3ded.${QUAKE_ARCH}
NOT_PAX_MPROTECT_SAFE+= lib/ioquake3/ioquake3.${QUAKE_ARCH}
.include "../../audio/openal-soft/buildlink3.mk"
.include "../../devel/SDL/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"