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> |