blob: b4f14600222b4d838646e39cf6c5f35bde948d55 (
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
|
# $NetBSD: Makefile,v 1.2 2019/10/06 18:22:22 nia Exp $
DISTNAME= fallingtime-1.0.2
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GITHUB:=cxong/}
GITHUB_PROJECT= FallingTime
MAINTAINER= cfkoch@edgebsd.org
HOMEPAGE= https://github.com/cxong/FallingTime
COMMENT= Arcade game inspired by Fall Down
LICENSE= gnu-gpl-v2
EXTRACT_USING= bsdtar
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
CMAKE_ARGS+= -DINSTALL_PREFIX=${PREFIX}/libexec
CMAKE_ARGS+= -DINSTALL_DATA_PREFIX=${PREFIX}/share/fallingtime
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/pixmaps
pre-configure:
${SED} -e 's,@@PREFIX@@,${PREFIX},g' \
${FILESDIR}/fallingtime.template > ${WRKDIR}/fallingtime
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/fallingtime \
${DESTDIR}${PREFIX}/bin/fallingtime
${INSTALL_DATA} ${WRKSRC}/pkg/linux/io.github.cxong.fallingtime.desktop \
${DESTDIR}${PREFIX}/share/applications/fallingtime.desktop
${INSTALL_DATA} ${WRKSRC}/pkg/linux/fallingtime.png \
${DESTDIR}${PREFIX}/share/pixmaps/fallingtime.png
.include "../../devel/SDL2/buildlink3.mk"
.include "../../audio/SDL2_mixer/buildlink3.mk"
.include "../../fonts/SDL2_ttf/buildlink3.mk"
.include "../../graphics/SDL2_image/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|