PortSystem 1.0

name            iRecovery
version         0.01
revision        3
categories      sysutils
maintainers     nomaintainer
description     Console client for iBoot/iBSS iPhone, iPod touch and iPad

long_description \
                iRecovery is a libusb-based command line utility for Mac OS X \
                and Linux.  It is able to talk to the iBoot/iBSS in Apple's \
                iPhone/iPod touch via USB.  It supports iBoot/iBSS 2.x, 3.x \
                and 4.x.

homepage        https://github.com/westbaer/irecovery

fetch.type      git
git.url         git://github.com/westbaer/irecovery.git
git.branch      b4f662f2133f47e2c93a2bd1953ae2625232e4ae

platforms       darwin

depends_lib     port:libusb-compat \
                port:readline

use_configure   no

build.target    CFLAGS_OSX="-I${prefix}/include -L${prefix}/lib -lusb -framework CoreFoundation -framework IOKit -lreadline" macosx

destroot {
        xinstall ${worksrcpath}/irecovery ${destroot}${prefix}/bin
       
        set sharedir ${destroot}${prefix}/share/doc/${name}
        xinstall -d ${sharedir} 
        xinstall -m 0644 -W ${worksrcpath} LICENSE README ${sharedir}
}