Ticket #30672: sheepshaver.Portfile

File sheepshaver.Portfile, 2.4 KB (added by mojca (Mojca Miklavec), 10 years ago)

Portfile for the latest version from GitHub

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 114119 2013-11-29 22:31:11Z jmr@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7set git_shasum      86c50b78fe
8set git_date        2013-11-05
9github.setup        cebix macemu ${git_shasum}
10name                sheepshaver
11version             2.3_git_${git_date}_${git_shasum}
12categories          emulators
13platforms           darwin
14maintainers         nomaintainer
15
16description         PowerPC Mac OS run-time environment
17
18long_description    SheepShaver is an Open Source PowerPC Mac OS run-time \
19                    environment. That is, it enables you to run PowerPC \
20                    Classic Mac OS software on your computer, even if you are \
21                    using a different operating system. However, you still \
22                    need a copy of Mac OS and a Power Macintosh ROM image to \
23                    use this program.
24
25homepage            http://sheepshaver.cebix.net/
26
27checksums           rmd160  49ff473856b1db0ee802470f7b5d8f2d47d22e31 \
28                    sha256  90291cc63f93004f17003227bcc9347753e3487bf7345b64b9597ab14525fd83
29
30depends_build       port:autoconf \
31                    port:automake
32
33depends_lib         port:libsdl
34
35worksrcdir          "${worksrcdir}/SheepShaver/src/Unix"
36
37post-extract {
38    file mkdir ${worksrcpath}/Darwin
39}
40
41patchfiles          patch-Makefile.in.diff
42
43pre-configure {
44    system -W "${worksrcpath}/../../" "make links"
45    system -W "${worksrcpath}" "NO_CONFIGURE=yes ACLOCAL_FLAGS=\"-I m4\" ./autogen.sh"
46}
47
48configure.args      --enable-sdl-video \
49                    --enable-sdl-audio \
50                    --disable-vosf \
51                    --without-esd \
52                    --without-gtk \
53                    --without-mon
54
55post-destroot {
56    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
57    file copy ${worksrcpath}/../../doc/Linux ${destroot}${prefix}/share/doc/${name}
58}
59
60# legacy variant - remove after January 2015
61variant no_x11 conflicts gtk description {Legacy compatibility variant} {}
62
63variant gtk conflicts no_x11 {
64    depends_lib-append      port:gtk2
65    configure.args-replace  --without-gtk --with-gtk
66}
67
68if {[variant_isset no_x11]} {
69    default_variants -gtk
70} else {
71    default_variants +gtk
72}
73
74universal_variant   no