blob: fda50082c3e393c7302a3548e6fecea1a7eabe05 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# $NetBSD: Makefile,v 1.15 2022/01/10 01:46:30 ryoon Exp $
DISTNAME= cannonball-0.34
PKGREVISION= 4
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=djyt/}
GITHUB_TAG= v${PKGVERSION_NOREV}
EXTRACT_USING= bsdtar
MAINTAINER= fox@NetBSD.org
HOMEPAGE= https://github.com/djyt/cannonball/wiki
COMMENT= Enhanced OutRun Engine
LICENSE= mame-license
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
USE_CMAKE= yes
CONFIGURE_DIRS= build
CMAKE_ARG_PATH= ${WRKSRC}/cmake
CMAKE_ARGS+= -DTARGET=linux.cmake
TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils
ICON_SIZES= 16
INSTALLATION_DIRS+= bin libexec share/applications \
share/cannonball share/cannonball/res \
share/cannonball/conf ${PKGMANDIR}/man6
.for s in ${ICON_SIZES}
INSTALLATION_DIRS+= share/icons/hicolor/${s}x${s}/apps
.endfor
pre-configure:
.for s in ${ICON_SIZES}
cd ${WRKSRC} && ${PREFIX}/bin/icotool -w ${s} -h ${s} -x -o ${s}.png \
res/cannonball.ico
.endfor
${MKDIR} ${WRKSRC}/build
post-build:
${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/cannonball.sh.in > \
${WRKDIR}/cannonball.sh
do-install:
${INSTALL_DATA} ${WRKSRC}/build/res/tilemap.bin \
${DESTDIR}${PREFIX}/share/cannonball/res/tilemap.bin
${INSTALL_DATA} ${WRKSRC}/build/res/tilepatch.bin \
${DESTDIR}${PREFIX}/share/cannonball/res/tilepatch.bin
${INSTALL_DATA} ${WRKSRC}/build/config.xml \
${DESTDIR}${PREFIX}/share/cannonball/conf/config.xml
${INSTALL_DATA} ${FILESDIR}/cannonball.desktop \
${DESTDIR}${PREFIX}/share/applications
${INSTALL_SCRIPT} ${WRKDIR}/cannonball.sh \
${DESTDIR}${PREFIX}/bin/cannonball
${INSTALL_PROGRAM} ${WRKSRC}/build/cannonball \
${DESTDIR}${PREFIX}/libexec
${INSTALL_MAN} ${WRKSRC}/docs/cannonball.6 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man6
.for s in ${ICON_SIZES}
${INSTALL_DATA} ${WRKSRC}/${s}.png \
${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/cannonball.png
.endfor
.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.if ${OPSYS} != "Darwin"
. include "../../graphics/glu/buildlink3.mk"
. include "../../graphics/MesaLib/buildlink3.mk"
.endif
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|