Ticket #13290: MPlayer-cd.patch

File MPlayer-cd.patch, 1.8 KB (added by ecronin (Eric Cronin), 17 years ago)
  • Portfile

    old new  
    214214        depends_build-append        bin:unzip:unzip
    215215
    216216        post-extract {
    217             cd ${worksrcpath}
    218             system "unzip -q ${distpath}/${mplayercodecsfile}"
     217            system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
    219218        }
    220219
    221220        configure.args-append   --with-codecsdir=${prefix}/share/${name}/codecs
    222221
    223222        post-destroot {
    224223            xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs
    225             cd ${destroot}${prefix}/share/${name}/codecs
    226             system "gunzip -c \
    227                 ${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz | pax -r"
     224            system "cd ${destroot}${prefix}/share/${name}/codecs && \
     225                pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\""
    228226        }
    229227    }
    230228    if {[variant_isset darwin_i386]} {
     
    242240        depends_lib-append          bin:unzip:unzip
    243241
    244242        post-extract {
    245             cd ${worksrcpath}
    246             system "unzip -q ${distpath}/${mplayercodecsfile}"
     243            system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}"
    247244        }
    248245
    249246        configure.args-append   --with-codecsdir=${prefix}/share/${name}/codecs
    250247
    251248        post-destroot {
    252249            xinstall -m 755 -d ${destroot}${prefix}/share/${name}/codecs
    253             cd ${destroot}${prefix}/share/${name}/codecs
    254             system "gunzip -c \
    255                 \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\" | pax -r"
     250            system "cd ${destroot}${prefix}/share/${name}/codecs" && \
     251                pax -r -z -f \"${worksrcpath}/${mplayercodecs}/Contents/Archive.pax.gz\""
    256252        }
    257253    }
    258254}