source: trunk/dports/emulators/mednafen/Portfile

Last change on this file was 126720, checked in by devans@…, 3 years ago

binary dependents of libcdio: increment revision to rebuild with latest libcdio, libiso9660 after recent upgrade of libcdio.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 126720 2014-10-14 14:16:52Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            mednafen
6version         0.8.D.3
7revision        3
8epoch       1
9platforms       darwin
10categories      emulators games
11license         GPL-2
12maintainers     freebsd.org:adamw openmaintainer
13description     Super-fast and super-compatible emulator for many video game systems
14long_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
24homepage        http://mednafen.sourceforge.net/
25master_sites    sourceforge:project/${name}/Mednafen/${version}
26use_bzip2       yes
27checksums           md5     57d22805071becd81858b0c088a275e5 \
28                    sha1    b19b92101853cb653506456fd8ab1c0bb0b6e636 \
29                    rmd160  546f49a9541ba4d0367fe682aef23cdadf3d7325
30
31depends_lib     port:libsdl \
32                port:libsdl_net \
33                port:libsndfile \
34                port:libcdio \
35                port:zlib
36
37depends_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
42patchfiles  patch-src_file_cpp.diff \
43            patch-src_drivers_shader_cpp.diff
44
45worksrcdir      ${name}
46
47post-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
54post-activate {
55
56ui_msg "\n
57Mednafen works by executing the ROM file of a game console you'd like to emulate.  Note
58that no ROM files are included with Mednafen, so first you must obtain the game console
59ROM file of your choice, by legal means of course. 
60
61Supported ROM file formats are listed in section 'File Formats/Expansion Hardware'
62in the Mednafen documenation at ${prefix}/share/doc/${name}.  Once you've obtained a
63supported type of game console ROM file, start the Mednafen command-line executable and use
64the ROM filename (including path) as an argument.  See the documentation for more options.
65\n"
66}
Note: See TracBrowser for help on using the repository browser.