# $Id: Portfile 61871 2009-12-22 20:53:10Z jeremyhu@macports.org $

PortSystem              1.0

name                    basiliskii
version                 0.9
revision                1
categories              emulators
platforms               darwin
maintainers             nomaintainer
description             Opensource 68k Mac emulator

long_description \
    Just type 'BasiliskII' at the command prompt inside an x environment. To use Basilisk II, you need either a 512K Mac Classic ROM image or a 512K or 1MB 32-bit clean Macintosh ROM image. You also need a copy of Mac OS (0.x thru 7.5 for Classic emulation, 7.x or 8.0/8.1 for Mac II emulation).  For copyright reasons, none of these items are included with Basilisk II.  Mac OS 7.5.3 and earlier versions can be downloaded from Apple and various other Internet sites. Mac ROM files are not freely available. You have to own a real Mac and read out its ROM.

homepage                http://basilisk.cebix.net/
distfiles               BasiliskII_src_31052001.tar.gz
master_sites            sourceforge:basilisk
checksums               md5 5017e21226c27a4a029da0486dcf04e1
depends_lib             port:libtool \
                        lib:libgtk.1:gtk1
worksrcdir              BasiliskII-${version}/src/Unix
configure.args          --without-esd \
                        --without-mon \
                        --disable-xf86-dga
build.args              CC=c++

post-patch {
    if {[file exists ${prefix}/share/libtool/config/config.guess]} {
        copy -force ${prefix}/share/libtool/config/config.guess ${prefix}/share/libtool/config/config.sub ${worksrcpath}
    } else {
        copy -force ${prefix}/share/libtool/config.guess ${prefix}/share/libtool/config.sub ${worksrcpath}
    }
}
