Changeset 51081


Ignore:
Timestamp:
May 17, 2009, 7:12:54 PM (11 years ago)
Author:
raimue@…
Message:

multimedia/mplayer-devel:
Fix fetch error by moving fetch of the binary codecs into the appropriate
variants. Also remove duplication of other phases in this variant as
simplification.

As this prevented installation without +binary_codecs, no revision bump.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/mplayer-devel/Portfile

    r50967 r51081  
    4545    system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libavformat ${worksrcpath}/libavformat/"
    4646    system "svn export -r${ffmpeg_ver} svn://svn.ffmpeg.org/ffmpeg/trunk/libpostproc ${worksrcpath}/libpostproc/"
    47     system "curl --create-dirs http://www.mplayerhq.hu/MPlayer/releases/codecs/${mplayercodecsfile} -o ${distpath}/${mplayercodecsfile}"
    4847}
    4948# Do not use the following environment variables, otherwise the build phase
     
    227226
    228227        depends_build-append    bin:unzip:unzip
    229 
    230         post-extract {
    231             system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
    232         }
    233 
    234         configure.args-append   --codecsdir=${prefix}/share/${name}/codecs
    235 
    236         post-destroot {
    237             xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs
    238             system "cd ${destroot}${prefix}/share/${name}/codecs && \
    239                 pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\""
    240         }
    241228    }
    242229    if {[variant_isset darwin_i386]} {
     
    253240
    254241        depends_build-append    bin:unzip:unzip
    255 
    256         post-extract {
    257             system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
    258         }
    259 
    260         configure.args-append   --codecsdir=${prefix}/share/${name}/codecs
    261 
    262         post-destroot {
    263             xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs
    264             system "cd ${destroot}${prefix}/share/${name}/codecs && \
    265                 pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\""
    266         }
     242    }
     243
     244    post-fetch {
     245        system "curl --create-dirs http://www.mplayerhq.hu/MPlayer/releases/codecs/${mplayercodecsfile} -o ${distpath}/${mplayercodecsfile}"
     246    }
     247
     248    post-extract {
     249        system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
     250    }
     251
     252    configure.args-append   --codecsdir=${prefix}/share/${name}/codecs
     253
     254    post-destroot {
     255        xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs
     256        system "cd ${destroot}${prefix}/share/${name}/codecs && \
     257            pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\""
    267258    }
    268259}
Note: See TracChangeset for help on using the changeset viewer.