blob: 2108ffcb500cd6292ab2ad6260c4829ac5902862 (
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.6 2021/09/08 21:05:00 nia Exp $
PKGREVISION= 1
.include "Makefile.common"
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/drhelius/Gearsystem
COMMENT= Sega Master System / Game Gear / SG-1000 emulator
LICENSE= gnu-gpl-v3
UNLIMIT_RESOURCES+= datasize virtualsize
USE_TOOLS+= gmake
# Same as platforms/linux.
BUILD_DIRS= platforms/bsd
MAKE_FLAGS+= CXX=${CXX}
MAKE_FLAGS+= GIT_VERSION="pkgsrc"
# alloca
BUILDLINK_TRANSFORM+= opt:-std=c++11:-std=gnu++11
INSTALLATION_DIRS+= bin share/applications share/pixmaps
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BUILD_DIRS}/gearsystem \
${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${FILESDIR}/gearsystem.desktop \
${DESTDIR}${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/platforms/ios/Gearsystem/Images.xcassets/AppIcon.appiconset/sms_icon_120.png \
${DESTDIR}${PREFIX}/share/pixmaps/gearsystem.png
.include "../../devel/SDL2/buildlink3.mk"
.if ${OPSYS} != "Darwin"
. include "../../graphics/glew/buildlink3.mk"
. include "../../graphics/MesaLib/buildlink3.mk"
.endif
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
.include "../../mk/bsd.pkg.mk"
|