Ticket #33059: Portfile-2.3.23

File Portfile-2.3.23, 4.1 KB (added by mklein-de (Michael Klein), 12 years ago)

upgrade to 2.3.23 (make the patch for 2.3.13 obsolete)

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