1 | # $Id: Portfile 115034 2013-12-23 02:11:20Z devans@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mednafen |
---|
6 | version 0.8.D.3 |
---|
7 | revision 2 |
---|
8 | epoch 1 |
---|
9 | platforms darwin |
---|
10 | categories emulators games |
---|
11 | license GPL-2 |
---|
12 | maintainers freebsd.org:adamw openmaintainer |
---|
13 | description Super-fast and super-compatible emulator for many video game systems |
---|
14 | long_description Medfafen is a portable (utilizing OpenGL and SDL) \ |
---|
15 | argument-driven multi-system emulator with many \ |
---|
16 | advanced features. The Atari Lynx, GameBoy, GameBoy \ |
---|
17 | Colour, GameBoy Advance, NES, PC Engine (TurboGrafx 16) \ |
---|
18 | and SuperGrafx are emulated. Mednafen has the ability \ |
---|
19 | to remap hotkey functions and virtual system inputs \ |
---|
20 | to a keyboard, a joystick, or both simultaneously. \ |
---|
21 | Save states are supported, as is real-time game \ |
---|
22 | rewinding. |
---|
23 | |
---|
24 | homepage http://mednafen.sourceforge.net/ |
---|
25 | master_sites sourceforge:project/${name}/Mednafen/${version} |
---|
26 | use_bzip2 yes |
---|
27 | checksums md5 57d22805071becd81858b0c088a275e5 \ |
---|
28 | sha1 b19b92101853cb653506456fd8ab1c0bb0b6e636 \ |
---|
29 | rmd160 546f49a9541ba4d0367fe682aef23cdadf3d7325 |
---|
30 | |
---|
31 | depends_lib port:libsdl \ |
---|
32 | port:libsdl_net \ |
---|
33 | port:libsndfile \ |
---|
34 | port:libcdio \ |
---|
35 | port:zlib |
---|
36 | |
---|
37 | depends_build port:pkgconfig |
---|
38 | |
---|
39 | # Just an FYI: even though it takes a billion years to compile |
---|
40 | # src/gba/arm.cpp, it *does* finish eventually. |
---|
41 | |
---|
42 | patchfiles patch-src_file_cpp.diff \ |
---|
43 | patch-src_drivers_shader_cpp.diff |
---|
44 | |
---|
45 | worksrcdir ${name} |
---|
46 | |
---|
47 | post-destroot { |
---|
48 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
49 | xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name} |
---|
50 | xinstall -m 755 ${worksrcpath}/ChangeLog ${destroot}${prefix}/share/doc/${name} |
---|
51 | eval xinstall [glob ${worksrcpath}/Documentation/*] ${destroot}${prefix}/share/doc/${name} |
---|
52 | } |
---|
53 | |
---|
54 | post-activate { |
---|
55 | |
---|
56 | ui_msg "\n |
---|
57 | Mednafen works by executing the ROM file of a game console you'd like to emulate. Note |
---|
58 | that no ROM files are included with Mednafen, so first you must obtain the game console |
---|
59 | ROM file of your choice, by legal means of course. |
---|
60 | |
---|
61 | Supported ROM file formats are listed in section 'File Formats/Expansion Hardware' |
---|
62 | in the Mednafen documenation at ${prefix}/share/doc/${name}. Once you've obtained a |
---|
63 | supported type of game console ROM file, start the Mednafen command-line executable and use |
---|
64 | the ROM filename (including path) as an argument. See the documentation for more options. |
---|
65 | \n" |
---|
66 | } |
---|