View | Details | Raw Unified | Return to bug 227351 | Differences between
and this patch

Collapse All | Expand All

(-)i/emulators/mesen/Makefile (+71 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	mesen
4
DISTVERSION=	0.9.7
5
CATEGORIES=	emulators
6
7
MAINTAINER=	greg@unrelenting.technology
8
COMMENT=	Cross-platform Nintendo Entertainment System (NES/Famicom) emulator
9
10
LICENSE=	GPLv3
11
12
# ARM/MIPS are only supported on Android
13
ONLY_FOR_ARCHS=	amd64 i386
14
15
BUILD_DEPENDS=	zip:archivers/zip
16
LIB_DEPENDS=	libevdev.so:devel/libevdev \
17
		libgdiplus.so:x11-toolkits/libgdiplus
18
19
USES=		compiler:c++14-lang gmake pkgconfig
20
USE_GITHUB=	yes
21
GH_ACCOUNT=	SourMesen
22
GH_PROJECT=	Mesen
23
USE_SDL=	sdl2
24
MAKEFILE=	makefile
25
MAKE_ARGS=	MESENPLATFORM=${MESEN_ARCH} LTO=true SYSTEM_LIBEVDEV=true FSLIB=-lc++experimental
26
MESEN_ARCH=	${ARCH:S/amd64/x64/:S/i386/x86/}
27
28
OPTIONS_MULTI=			FRONTENDS
29
OPTIONS_MULTI_FRONTENDS=	MONO LIBRETRO
30
OPTIONS_DEFAULT=		MONO LIBRETRO
31
OPTIONS_SUB=			yes
32
33
MONO_DESC=	Mono based GUI frontend
34
LIBRETRO_DESC=	Libretro core
35
36
MONO_ALL_TARGET=	ui
37
MONO_BUILD_DEPENDS=	mono:lang/mono
38
MONO_RUN_DEPENDS=	mono:lang/mono
39
MONO_DESKTOP_ENTRIES=	"Mesen" "NES/Famicom Emulator" \
40
			"${PORTNAME}" "${PORTNAME}" "emulator;Nintendo;NES;Famicom;" false
41
42
LIBRETRO_ALL_TARGET=	libretro
43
44
.include <bsd.port.options.mk>
45
46
do-install:
47
.if ${PORT_OPTIONS:MMONO}
48
	${MKDIR} ${STAGEDIR}${PREFIX}/libexec/mesen
49
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/
50
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
51
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
52
	${INSTALL_LIB} ${WRKSRC}/bin/${MESEN_ARCH}/Release/Dependencies/libMesenCore.${MESEN_ARCH}.dll \
53
			${STAGEDIR}${PREFIX}/libexec/mesen/libMesenCore.dll
54
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${MESEN_ARCH}/Release/Mesen.exe \
55
			${STAGEDIR}${PREFIX}/libexec/mesen/
56
	${INSTALL_DATA} ${WRKSRC}/GUI.NET/Resources/MesenIcon.png \
57
			${STAGEDIR}${PREFIX}/share/icons/hicolor/64x64/apps/mesen.png
58
	${INSTALL_DATA} ${WRKSRC}/GUI.NET/Resources/MesenIconMedium.png \
59
			${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/mesen.png
60
	${INSTALL_DATA} ${WRKSRC}/GUI.NET/Resources/MesenIconSmall.png \
61
			${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/mesen.png
62
	${INSTALL_SCRIPT} ${FILESDIR}/launch.sh ${STAGEDIR}${PREFIX}/bin/mesen
63
	${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${STAGEDIR}${PREFIX}/bin/mesen
64
.endif
65
.if ${PORT_OPTIONS:MLIBRETRO}
66
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/libretro
67
	${INSTALL_LIB} ${WRKSRC}/bin/mesen_libretro.${MESEN_ARCH}.so \
68
			${STAGEDIR}${PREFIX}/lib/libretro/mesen_libretro.so
69
.endif
70
71
.include <bsd.port.mk>
(-)i/emulators/mesen/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1544655695
2
SHA256 (SourMesen-Mesen-0.9.7_GH0.tar.gz) = 9f1222bd68cd5b9436b6ffdf9d405970598230756f94be4df1cb695bac8fa419
3
SIZE (SourMesen-Mesen-0.9.7_GH0.tar.gz) = 17322685
(-)i/emulators/mesen/files/launch.sh (+2 lines)
Added Link Here
1
#!/bin/sh
2
exec mono %%PREFIX%%/libexec/mesen/Mesen.exe $*
(-)i/emulators/mesen/pkg-descr (+3 lines)
Added Link Here
1
Mesen is a high-accuracy NES and Famicom emulator and NSF player.
2
3
WWW: https://www.mesen.ca/
(-)i/emulators/mesen/pkg-plist (+7 lines)
Added Link Here
1
%%LIBRETRO%%lib/libretro/mesen_libretro.so
2
%%MONO%%bin/mesen
3
%%MONO%%libexec/mesen/Mesen.exe
4
%%MONO%%libexec/mesen/libMesenCore.dll
5
%%MONO%%share/icons/hicolor/16x16/apps/mesen.png
6
%%MONO%%share/icons/hicolor/32x32/apps/mesen.png
7
%%MONO%%share/icons/hicolor/64x64/apps/mesen.png

Return to bug 227351