Ticket #13509: isightcapture-use_dmg.diff

File isightcapture-use_dmg.diff, 1.1 KB (added by ryandesign (Ryan Carsten Schmidt), 16 years ago)

updated patch for isightcapture

  • Portfile

     
    1010homepage                http://www.intergalactic.de/pages/iSight.html
    1111master_sites            http://www.intergalactic.de/pages/iSight_files/
    1212distname                ${name}${version2}
    13 extract.suffix          .dmg
     13use_dmg                 yes
    1414
    1515description \
    1616        captures a frame from an iSight camera and saves it to a file
     
    2626        sha1 038cc8852641c4ca10f4960eb30d508a0e9b99c1 \
    2727        rmd160 fcbfc6bf0dd08d3b8a4a268378a57b54a5bfd82e
    2828
    29 set dmg_mount /tmp/${name}-${version}
    30 
    31 extract {
    32         file mkdir ${dmg_mount}
    33         system "hdiutil attach ${distpath}/${distname}${extract.suffix} -private -nobrowse -mountpoint ${dmg_mount}"
    34 }
    35 
    3629use_configure no
    3730
    3831build {}
    3932
    4033destroot {
    41         xinstall -m 755 ${dmg_mount}/${name} ${destroot}${prefix}/bin
     34        xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin
    4235}
    4336
    44 post-destroot {
    45         system "hdiutil detach ${dmg_mount}"
    46         file delete -force ${dmg_mount}
    47 }
    48 
    4937default_variants +universal
    5038variant universal {}
    5139pre-fetch {