1 | # $Id$ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name vice |
---|
5 | version 2.3 |
---|
6 | categories emulators |
---|
7 | maintainers michael.klein@puffin.lb.shuttle.de openmaintainer |
---|
8 | description Versatile Commodore Emulator |
---|
9 | license GPL-2+ |
---|
10 | long_description VICE is an emulator collection which emulates the \ |
---|
11 | C64, the C64-DTV, the C128, the VIC20, almost all \ |
---|
12 | PET models, the PLUS4 and the CBM-II (aka C610). |
---|
13 | conflicts vice-devel |
---|
14 | platforms darwin |
---|
15 | |
---|
16 | homepage http://vice-emu.sourceforge.net |
---|
17 | |
---|
18 | master_sites sourceforge:project/vice-emu/releases |
---|
19 | |
---|
20 | checksums rmd160 056e48ffedfaecd470892c73b97af89c1e002ff9 \ |
---|
21 | sha256 b1817c8dce023069d5c15234c2b4da0a152d297ee8ed01f0b361795c4beeb50e |
---|
22 | |
---|
23 | depends_build port:bison port:flex |
---|
24 | depends_lib port:libedit port:giflib port:jpeg |
---|
25 | |
---|
26 | configure.args --disable-ffmpeg --disable-lame |
---|
27 | |
---|
28 | set appdir ${applications_dir}/VICE |
---|
29 | |
---|
30 | variant cocoa conflicts gnome sdl xaw xaw3d description "enables native Cocoa UI on Macs" { |
---|
31 | configure.args-append --with-cocoa |
---|
32 | } |
---|
33 | |
---|
34 | variant gnome conflicts cocoa sdl xaw xaw3d description "enables GNOME UI support" { |
---|
35 | depends_lib-append port:gtk2 |
---|
36 | configure.args-append --without-cocoa --enable-gnomeui --disable-bundle |
---|
37 | } |
---|
38 | |
---|
39 | variant sdl conflicts cocoa gnome xaw xaw3d description "enables SDL UI support" { |
---|
40 | depends_lib-append port:libsdl-framework |
---|
41 | configure.args-append --without-cocoa --enable-sdlui |
---|
42 | } |
---|
43 | |
---|
44 | variant xaw conflicts cocoa gnome sdl xaw3d description "enables plain Xaw UI" { |
---|
45 | depends_lib-append port:xorg-libXaw |
---|
46 | configure.args-append --without-cocoa --with-x --disable-bundle |
---|
47 | } |
---|
48 | |
---|
49 | variant xaw3d conflicts cocoa gnome sdl xaw description "enables Xaw3d UI" { |
---|
50 | depends_lib-append port:Xaw3d |
---|
51 | configure.args-append --without-cocoa --with-xaw3d --disable-bundle |
---|
52 | } |
---|
53 | |
---|
54 | variant app_bundle conflicts cocoa sdl description "enable application bundle for Xaw/Xaw3D/Gnome UI variants" { |
---|
55 | depends_build-append port:platypus |
---|
56 | configure.args-delete --disable-bundle |
---|
57 | configure.args-append --enable-bundle |
---|
58 | |
---|
59 | set appdir ${applications_dir} |
---|
60 | } |
---|
61 | |
---|
62 | variant ffmpeg description "enable FFmpeg library support" { |
---|
63 | depends_lib-append port:ffmpeg |
---|
64 | configure.args-delete --disable-ffmpeg |
---|
65 | configure.args-append --enable-ffmpeg |
---|
66 | } |
---|
67 | |
---|
68 | variant lame description "enable MP3 export with LAME" { |
---|
69 | configure.args-delete --disable-lame |
---|
70 | configure.args-append --enable-lame |
---|
71 | depends_lib-append port:lame |
---|
72 | } |
---|
73 | |
---|
74 | default_variants +ffmpeg +lame |
---|
75 | |
---|
76 | if {!([variant_isset gnome] || [variant_isset sdl] || [variant_isset xaw] || [variant_isset xaw3d])} { |
---|
77 | default_variants +cocoa |
---|
78 | } |
---|
79 | |
---|
80 | post-patch { |
---|
81 | reinplace "s|/Library/Frameworks/SDL.framework|${frameworks_dir}/SDL.framework|; s|-framework SDL|-F${frameworks_dir} -framework SDL|" ${worksrcpath}/configure |
---|
82 | } |
---|
83 | |
---|
84 | post-build { |
---|
85 | if {[variant_isset app_bundle] || [variant_isset cocoa] || [variant_isset sdl]} { |
---|
86 | system "make -C ${worksrcpath} bindist" |
---|
87 | } |
---|
88 | } |
---|
89 | |
---|
90 | destroot { |
---|
91 | |
---|
92 | if {[variant_isset app_bundle] || [variant_isset cocoa] || [variant_isset sdl]} { |
---|
93 | xinstall -d ${destroot}${appdir} |
---|
94 | eval copy [glob ${worksrcpath}/vice-macosx-*-${version}/*.app] ${destroot}${appdir} |
---|
95 | foreach tool {c1541 cartconv petcat} { |
---|
96 | eval xinstall [glob ${worksrcpath}/vice-macosx-*-${version}/tools/${tool}] ${destroot}${prefix}/bin |
---|
97 | } |
---|
98 | } else { |
---|
99 | set docdir ${prefix}/share/doc/${name} |
---|
100 | system "make -C ${worksrcpath} DESTDIR=${destroot} install" |
---|
101 | xinstall -d ${destroot}${docdir} |
---|
102 | move ${destroot}${prefix}/share/info/vice.pdf ${destroot}${docdir} |
---|
103 | move ${destroot}${prefix}/share/info/vice.txt ${destroot}${docdir} |
---|
104 | } |
---|
105 | } |
---|
106 | |
---|
107 | livecheck.type regex |
---|
108 | livecheck.url http://sourceforge.net/projects/vice-emu/files/releases |
---|
109 | livecheck.regex {vice-([0-9.]*)\.tar\.gz} |
---|