Ticket #13290: MPlayer-cd.patch
File MPlayer-cd.patch, 1.8 KB (added by ecronin (Eric Cronin), 17 years ago) |
---|
-
Portfile
old new 214 214 depends_build-append bin:unzip:unzip 215 215 216 216 post-extract { 217 cd ${worksrcpath} 218 system "unzip -q ${distpath}/${mplayercodecsfile}" 217 system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}" 219 218 } 220 219 221 220 configure.args-append --with-codecsdir=${prefix}/share/${name}/codecs 222 221 223 222 post-destroot { 224 223 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\"" 228 226 } 229 227 } 230 228 if {[variant_isset darwin_i386]} { … … 242 240 depends_lib-append bin:unzip:unzip 243 241 244 242 post-extract { 245 cd ${worksrcpath} 246 system "unzip -q ${distpath}/${mplayercodecsfile}" 243 system "unzip -q -d ${worksrcpath} ${distpath}/${mplayercodecsfile}" 247 244 } 248 245 249 246 configure.args-append --with-codecsdir=${prefix}/share/${name}/codecs 250 247 251 248 post-destroot { 252 249 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\"" 256 252 } 257 253 } 258 254 }