# $Id: Portfile 33895 2008-02-07 02:49:50Z ryandesign@macports.org $ PortSystem 1.0 name adtpro set my_name ADTPro version 1.0.5 categories emulators maintainers ryandesign homepage http://adtpro.sourceforge.org/ master_sites sourceforge platforms darwin distname ${my_name}-${version} use_configure no universal_variant 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 49a0d087acfdce23ca43ce1ef81b0da1 \ sha1 2660ccd2c896284336e278473a730f484c55d689 \ rmd160 c2aa3ab45340c1ddcf117b244fb9f0ebcfb94efa 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-1.0.5.jar ${my_ddir}/lib xinstall -W ${worksrcpath}/lib/rxtx fixperm.command 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} } post-activate { ui_msg " Each user who wants to use the serial mode of ${my_name} must run ${my_dir}/lib/rxtx/fixperm.command once first. This requires admin privileges. " } livecheck.regex ${name}\\s+${my_name}-(.*) released.*