Ticket #28935: ffmpeg-Portfile.diff

File ffmpeg-Portfile.diff, 898 bytes (added by daitakahashi, 14 years ago)
  • Portfile

    old new  
    33
    44PortSystem 1.0
    55PortGroup xcodeversion 1.0
     6PortGroup muniversal 1.0
    67
    78name            ffmpeg
    89conflicts       ffmpeg-devel
     
    119120
    120121#add --enable-libopenjpeg when problems with openjpeg.h are resolved
    121122
    122 if {$build_arch != ""} {
    123     configure.args-append --arch=${build_arch}
    124 }
    125 
    126123test.run        yes
    127124
    128125#
    129126# configure isn't autoconf and they do use a dep cache
    130127#
    131128
    132 universal_variant no
     129if { [variant_isset universal] } {
     130    configure.universal_args-delete             --disable-dependency-tracking
     131
     132    foreach arch ${universal_archs_supported} {
     133        lappend merger_configure_args($arch)    --arch=${arch}
     134    }
     135} else {
     136    configure.args-append --arch=${configure.build_arch}
     137}
    133138
    134139post-destroot {
    135140    file mkdir ${destroot}${prefix}/share/doc/${name}