# $Id: Portfile 57758 2009-09-16 07:48:28Z ryandesign@macports.org $

PortSystem              1.0

name                    adtpro
set my_name             ADTPro
version                 1.1.2
categories              emulators
maintainers             ryandesign
license                 GPLv2
homepage                http://adtpro.sourceforge.net/
master_sites            sourceforge
platforms               darwin
distname                ${my_name}-${version}
use_configure           no
universal_variant       no
use_parallel_build      no

description \
    transfers disks and disk images between Apple IIs and modern computers

long_description \
    Apple Disk Transfer ProDOS (ADTPro) transfers diskettes and logical \
    disk images between Apple II-era computers and the modern world. \
    Disks can be transferred using a Super Serial card, IIgs modem port or \
    IIc/Laser 128 serial port\; an Uthernet Ethernet card\; or the built-in \
    cassette ports.

checksums \
    md5     eb966f77bac2ea43bf2e0dbc1c9523bc \
    sha1    fdc90f2b4060ad4df559018fc678258ff976a693 \
    rmd160  c36ee719e55836c5213b2b3fa3a0c0504c71ceaf

build {}

set my_dir ${prefix}/share/${name}

destroot {
    xinstall -W ${filespath} ${name}.in ${destroot}${prefix}/bin/${name}
    reinplace "s|@MY_DIR@|${my_dir}|" ${destroot}${prefix}/bin/${name}
    set my_ddir ${destroot}${my_dir}
    xinstall -d ${my_ddir}/lib/rxtx/Mac_OS_X
    xinstall -W ${worksrcpath} ${name}.command ${my_ddir}
    xinstall -W ${worksrcpath}/lib ADTPro-${version}.jar ${my_ddir}/lib
    xinstall -W ${worksrcpath}/lib/rxtx RXTXcomm.jar ${my_ddir}/lib/rxtx
    xinstall -W ${worksrcpath}/lib/rxtx/Mac_OS_X librxtxSerial.jnilib ${my_ddir}/lib/rxtx/Mac_OS_X
    copy ${worksrcpath}/disks ${my_ddir}
}

livecheck.regex         <title>${name}\\s+${my_name}-(.*) released.*</title>
