Ticket #30672: sheepshaver.Portfile.diff

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

     
    22# $Id$
    33
    44PortSystem          1.0
     5PortGroup           github 1.0
    56
     7set git_shasum      86c50b78fe
     8set git_date        2013-11-05
     9github.setup        cebix macemu ${git_shasum}
    610name                sheepshaver
    7 cvs.date            20110101
    8 version             2.3-${cvs.date}
     11version             2.3_git_${git_date}_${git_shasum}
    912categories          emulators
    1013platforms           darwin
    1114maintainers         nomaintainer
     
    2124
    2225homepage            http://sheepshaver.cebix.net/
    2326
    24 fetch.type          cvs
    25 cvs.root            :pserver:anoncvs@cvs.cebix.net:/home/cvs/cebix
    26 cvs.password        anoncvs
    27 cvs.module          BasiliskII SheepShaver
     27checksums           rmd160  49ff473856b1db0ee802470f7b5d8f2d47d22e31 \
     28                    sha256  90291cc63f93004f17003227bcc9347753e3487bf7345b64b9597ab14525fd83
    2829
    2930depends_build       port:autoconf \
    3031                    port:automake
    3132
    32 depends_lib         port:libsdl \
    33                     port:gtk2
     33depends_lib         port:libsdl
    3434
    35 worksrcdir          SheepShaver/src/Unix
     35worksrcdir          "${worksrcdir}/SheepShaver/src/Unix"
    3636
    3737post-extract {
    3838    file mkdir ${worksrcpath}/Darwin
     
    4141patchfiles          patch-Makefile.in.diff
    4242
    4343pre-configure {
    44     system "cd ${worksrcpath}/../../ && make links"
    45     system "cd ${worksrcpath} && NO_CONFIGURE=yes ACLOCAL_FLAGS=\"-I m4\" ./autogen.sh"
     44    system -W "${worksrcpath}/../../" "make links"
     45    system -W "${worksrcpath}" "NO_CONFIGURE=yes ACLOCAL_FLAGS=\"-I m4\" ./autogen.sh"
    4646}
    4747
    4848configure.args      --enable-sdl-video \
    4949                    --enable-sdl-audio \
    5050                    --disable-vosf \
    51                     --without-mon \
    52                     --with-gtk \
    53                     --without-esd
     51                    --without-esd \
     52                    --without-gtk \
     53                    --without-mon
    5454
    5555post-destroot {
    5656    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     
    5757    file copy ${worksrcpath}/../../doc/Linux ${destroot}${prefix}/share/doc/${name}
    5858}
    5959
    60 variant no_x11 {
    61     configure.args-delete   --with-gtk
    62     configure.args-append   --without-gtk
    63     depends_lib-delete      port:gtk2
     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
    6466}
    6567
     68if {[variant_isset no_x11]} {
     69    default_variants -gtk
     70} else {
     71    default_variants +gtk
     72}
     73
    6674universal_variant   no