Lines 1-6
Link Here
|
1 |
PORTNAME= mednafen |
1 |
PORTNAME= mednafen |
2 |
PORTVERSION= 1.26.1 |
2 |
DISTVERSION= 1.32.1 |
3 |
PORTREVISION= 3 |
|
|
4 |
PORTEPOCH= 1 |
3 |
PORTEPOCH= 1 |
5 |
CATEGORIES= emulators games |
4 |
CATEGORIES= emulators games |
6 |
MASTER_SITES= https://mednafen.github.io/releases/files/ |
5 |
MASTER_SITES= https://mednafen.github.io/releases/files/ |
Lines 12-86
WWW= https://mednafen.github.io
Link Here
|
12 |
LICENSE= GPLv2+ |
11 |
LICENSE= GPLv2+ |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
12 |
LICENSE_FILE= ${WRKSRC}/COPYING |
14 |
|
13 |
|
15 |
LIB_DEPENDS= libcdio.so:sysutils/libcdio \ |
14 |
LIB_DEPENDS= libFLAC.so:audio/flac \ |
16 |
libsndfile.so:audio/libsndfile \ |
15 |
liblzo2.so:archivers/lzo2 \ |
17 |
libvorbis.so:audio/libvorbis |
16 |
libmpcdec.so:audio/musepack \ |
|
|
17 |
libtrio.so:devel/trio \ |
18 |
libvorbisfile.so:audio/libvorbis \ |
19 |
libzstd.so:archivers/zstd |
20 |
|
21 |
USES= autoreconf compiler:c++11-lang gl iconv localbase pkgconfig sdl \ |
22 |
tar:xz |
23 |
USE_GL= egl |
24 |
USE_SDL= sdl2 |
25 |
|
26 |
GNU_CONFIGURE= yes |
27 |
CONFIGURE_ARGS+= --with-external-libzstd \ |
28 |
--with-external-lzo \ |
29 |
--with-external-mpcdec \ |
30 |
--with-external-tremor \ |
31 |
--with-external-trio |
18 |
|
32 |
|
19 |
GNU_CONFIGURE= yes |
|
|
20 |
USE_SDL= sdl2 net2 |
21 |
USE_GL= gl glu |
22 |
CPPFLAGS+= -I${LOCALBASE}/include |
23 |
LDFLAGS+= -L${LOCALBASE}/lib |
24 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
25 |
SUB_FILES= pkg-message |
33 |
SUB_FILES= pkg-message |
26 |
|
34 |
|
27 |
CONFIGURE_ARGS+=--disable-alsa --disable-alsatest \ |
35 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
28 |
--with-sdl-prefix=${LOCALBASE} |
|
|
29 |
|
30 |
USES= compiler:c++11-lib cpe gl iconv pkgconfig:build sdl tar:xz |
31 |
CPE_VENDOR= david_shadoff |
32 |
|
33 |
OPTIONS_DEFINE= NLS DOCS JACK |
34 |
OPTIONS_MULTI= EMU |
35 |
OPTIONS_MULTI_EMU= GB GBA LINX MD NES NGP PCE PCFX PSX SMS SWAN VB |
36 |
OPTIONS_DEFAULT= GB GBA LINX MD NES NGP PCE PCFX PSX SMS SWAN VB |
37 |
|
38 |
GB_DESC= build with GameBoy emulation |
39 |
GBA_DESC= build with GameBoy Advance emulation |
40 |
LINX_DESC= build with Atari Lynx emulation |
41 |
MD_DESC= build with Sega Genesis/MegaDrive emulation |
42 |
NES_DESC= build with Nintendo Entertainment System emulation |
43 |
NGP_DESC= build with Neo Geo Pocket emulation |
44 |
PCE_DESC= build with PC Engine (TurboGrafx 16) emulation |
45 |
PCFX_DESC= build with PC-FX emulation |
46 |
PSX_DESC= build with Playstation emulation |
47 |
SMS_DESC= build with SMS+GG emulation |
48 |
SWAN_DESC= build with WonderSWan emulation |
49 |
VB_DESC= build with Virtual Boy emulation |
50 |
JACK_DESC= support the JACK audio API |
51 |
|
52 |
OPTIONS_SUB= yes |
53 |
|
54 |
NLS_USES= gettext |
55 |
NLS_CONFIGURE_ENABLE=nls |
56 |
|
57 |
JACK_LIB_DEPENDS=libjack.so:audio/jack |
58 |
JACK_CONFIGURE_ENABLE=jack |
59 |
|
60 |
GB_CONFIGURE_ENABLE=gb |
61 |
GBA_CONFIGURE_ENABLE=gba |
62 |
LINX_CONFIGURE_ENABLE=lynx |
63 |
MD_CONFIGURE_ENABLE=md |
64 |
NES_CONFIGURE_ENABLE=nes |
65 |
NGP_CONFIGURE_ENABLE=ngp |
66 |
PCE_CONFIGURE_ENABLE=pce |
67 |
PCFX_CONFIGURE_ENABLE=pcfx |
68 |
PSX_CONFIGURE_ENABLE=psx |
69 |
SMS_CONFIGURE_ENABLE=sms |
70 |
SWAN_CONFIGURE_ENABLE=wswan |
71 |
VB_CONFIGURE_ENABLE=vb |
72 |
|
73 |
post-patch: |
74 |
@${REINPLACE_CMD} -e 's|versionsort|alphasort|g' \ |
75 |
${WRKSRC}/src/drivers/Joystick_Linux.cpp |
76 |
|
36 |
|
77 |
pre-configure: |
37 |
OPTIONS_DEFINE= DOCS NLS |
78 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ |
38 |
OPTIONS_DEFAULT= ALSA APPLE2 GP GPA JACK LYNX MD NES NGP PCE PCFX PSX \ |
79 |
-e 's|/usr/X11R6|${LOCALBASE}|g' \ |
39 |
SMS SNES SS VB WSWAN |
80 |
${WRKSRC}/configure |
40 |
OPTIONS_GROUP= AUDIO |
|
|
41 |
OPTIONS_GROUP_AUDIO= ALSA JACK |
42 |
OPTIONS_MULTI= EMU |
43 |
OPTIONS_MULTI_EMU= APPLE2 GP GPA LYNX MD NES NGP PCE PCFX PSX SMS SNES SS \ |
44 |
VB WSWAN |
45 |
OPTIONS_SUB= yes |
46 |
|
47 |
APPLE2_DESC= Apple II |
48 |
GPA_DESC= GameBoy Advance |
49 |
GP_DESC= GameBoy |
50 |
LYNX_DESC= Atari Lynx |
51 |
MD_DESC= Sega Genesis/Megadrive |
52 |
NES_DESC= Nintendo Entertainment System |
53 |
NGP_DESC= Neo Geo Pocket |
54 |
PCE_DESC= PC Engine/TurboGrafx 16 |
55 |
PCFX_DESC= PC-FX |
56 |
PSX_DESC= Sony PlayStation |
57 |
SMS_DESC= Sega Game Gear + Sega Master System |
58 |
SNES_DESC= Super Nintendo Entertainment System/Super Famicom |
59 |
SS_DESC= Sega Saturn |
60 |
VB_DESC= Virtual Boy |
61 |
WSWAN_DESC= WonderSwan |
62 |
|
63 |
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib |
64 |
ALSA_CONFIGURE_ENABLE= alsa |
65 |
ALSA_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-src_drivers_main.cpp |
66 |
|
67 |
APPLE2_CONFIGURE_ENABLE= apple2 |
68 |
|
69 |
GPA_CONFIGURE_ENABLE= gba |
70 |
|
71 |
GP_CONFIGURE_ENABLE= gb |
72 |
|
73 |
JACK_LIB_DEPENDS= libjack.so:audio/jack |
74 |
JACK_CONFIGURE_ENABLE= jack |
75 |
|
76 |
LYNX_CONFIGURE_ENABLE= lynx |
77 |
|
78 |
MD_CONFIGURE_ENABLE= md |
79 |
|
80 |
NES_CONFIGURE_ENABLE= nes |
81 |
|
82 |
NGP_CONFIGURE_ENABLE= ngp |
81 |
|
83 |
|
82 |
post-install: |
84 |
NLS_USES= gettext |
83 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
85 |
NLS_CONFIGURE_ENABLE= nls |
84 |
@${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${STAGEDIR}${DOCSDIR} |
86 |
|
|
|
87 |
PCE_CONFIGURE_ENABLE= pce pce-fast |
88 |
|
89 |
PCFX_CONFIGURE_ENABLE= pcfx |
90 |
|
91 |
PSX_CONFIGURE_ENABLE= psx |
92 |
|
93 |
SMS_CONFIGURE_ENABLE= sms |
94 |
|
95 |
SNES_CONFIGURE_ENABLE= snes snes-faust |
96 |
|
97 |
SS_CONFIGURE_ENABLE= ss |
98 |
|
99 |
VB_CONFIGURE_ENABLE= vb |
100 |
|
101 |
WSWAN_CONFIGURE_ENABLE= wswan |
102 |
|
103 |
pre-configure: |
104 |
${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' \ |
105 |
${WRKSRC}/m4/lib-link.m4 \ |
106 |
${WRKSRC}/m4/lib-prefix.m4 |
107 |
|
108 |
post-install-DOCS-on: |
109 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
110 |
${INSTALL_DATA} ${WRKSRC}/ChangeLog \ |
111 |
${STAGEDIR}${DOCSDIR} |
112 |
${INSTALL_DATA} ${WRKSRC}/README \ |
113 |
${STAGEDIR}${DOCSDIR} |
114 |
(cd ${WRKSRC} && \ |
115 |
${COPYTREE_SHARE} Documentation ${STAGEDIR}${DOCSDIR}) |
85 |
|
116 |
|
86 |
.include <bsd.port.mk> |
117 |
.include <bsd.port.mk> |