summaryrefslogtreecommitdiff
path: root/games/yquake2/Makefile
blob: e36ba69512b97f6e4dfca8822d80369239b51b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# $NetBSD: Makefile,v 1.6 2020/03/08 16:49:50 wiz Exp $

DISTNAME=	quake2-7.42
PKGNAME=	y${DISTNAME}
PKGREVISION=	3
CATEGORIES=	games
MASTER_SITES=	https://deponie.yamagi.org/quake2/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.yamagi.org/quake2/
COMMENT=	Yamagi Quake II - alternative Quake II client
LICENSE=	gnu-gpl-v2

USE_CMAKE=	yes
USE_TOOLS+=	pkg-config
USE_LANGUAGES=	c99 c++

CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE="Release"
CMAKE_ARGS+=	-DSYSTEMWIDE_SUPPORT=ON

INSTALLATION_DIRS+=	bin libexec
INSTALLATION_DIRS+=	share/applications
INSTALLATION_DIRS+=	share/pixmaps
INSTALLATION_DIRS+=	share/yquake2/baseq2

pre-configure:
	${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/quake2.sh.in > ${WRKDIR}/quake2.sh

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/quake2.sh \
	    ${DESTDIR}${PREFIX}/bin/quake2
	${INSTALL_SCRIPT} ${WRKDIR}/quake2.sh \
	    ${DESTDIR}${PREFIX}/bin/q2ded
	${INSTALL_PROGRAM} ${WRKSRC}/release/quake2 \
	    ${DESTDIR}${PREFIX}/libexec/quake2
	${INSTALL_PROGRAM} ${WRKSRC}/release/q2ded \
	    ${DESTDIR}${PREFIX}/libexec/q2ded
	${INSTALL_LIB} ${WRKSRC}/release/baseq2/game.so \
	    ${DESTDIR}${PREFIX}/share/yquake2/baseq2
	${INSTALL_LIB} ${WRKSRC}/release/*.so \
	    ${DESTDIR}${PREFIX}/share/yquake2
	${INSTALL_DATA} ${FILESDIR}/yquake2.desktop \
	    ${DESTDIR}${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/stuff/icon/Quake2.png \
	    ${DESTDIR}${PREFIX}/share/pixmaps/quake2.png

.include "../../audio/openal-soft/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"