summaryrefslogtreecommitdiff
path: root/games/fnaify/Makefile
blob: 7395e0ba0a1115a1bb14c9a1717a9f55fb252837 (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
# $NetBSD: Makefile,v 1.10 2022/11/23 16:20:03 adam Exp $

GITHUB_PROJECT=	fnaify
GITHUB_RELEASE=	${PKGVERSION_NOREV}
DISTNAME=	fnaify-3.0
PKGREVISION=	8
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=rfht/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/rfht/fnaify/
COMMENT=	Launcher for games using the FNA engine
LICENSE=	isc

USE_LANGUAGES=	# none
USE_TOOLS+=	bash:run

NO_BUILD=		yes
INSTALLATION_DIRS+=	${PKGMANDIR}/man1 bin share/fnaify

REPLACE_BASH+=			fnaify

.include "../../mk/bsd.prefs.mk"

SUBST_CLASSES+=			pkgsrc-paths
SUBST_STAGE.pkgsrc-paths=	pre-configure
SUBST_FILES.pkgsrc-paths+=	fnaify
SUBST_SED.pkgsrc-paths=		-e 's,^depdir.*,depdir=${PREFIX}/lib:${X11BASE}/lib,'
SUBST_SED.pkgsrc-paths+=	-e 's,^fnadir.*,fnadir=${PREFIX}/share/FNA/,'
SUBST_SED.pkgsrc-paths+=	-e s,/usr/local/,${PREFIX},
.if ${OPSYS} == "NetBSD"
SUBST_SED.pkgsrc-paths+=	-e s,ld.so,ld.elf_so,
.endif

.include "../../devel/libstubborn/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/SDL2_image/buildlink3.mk"
.include "../../audio/openal-soft/buildlink3.mk"
.include "../../audio/faudio/buildlink3.mk"
.include "../../multimedia/libtheoraplay/buildlink3.mk"
.include "../../games/fna/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"