Ticket #12159: MPlayer-lzo2.patch

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

    old new  
    4646livecheck.regex     MPlayer-(1.0rc\[0-9\]+)\.tar\.bz2
    4747
    4848depends_lib         port:jpeg port:lame port:libiconv port:libmad \
    49                     port:libpng port:libvorbis port:lzo port:ncurses \
     49                    port:libpng port:libvorbis port:lzo2 port:ncurses \
    5050                    port:zlib
    5151
     52post-patch {
     53    reinplace "s|-llzo|-llzo2|g" ${worksrcpath}/configure
     54    reinplace "s|#include <lzo1x.h>|#include <lzoutil.h>\\\n#include <lzo1x.h>|g"\
     55        ${worksrcpath}/libmpcodecs/vd_lzo.c
     56}
     57
    5258# MPlayer's ./configure REALLY does not want you to use ENV for this
    5359configure.cflags    {}
    5460configure.cxxflags  {}
     
    5662configure.ldflags   {}
    5763
    5864configure.args \
    59                     --with-extraincdir=${prefix}/include:${prefix}/include/cdparanoia/interface:${prefix}/include/cdparanoia/paranoia \
     65                    --with-extraincdir=${prefix}/include:${prefix}/include/cdparanoia/interface:${prefix}/include/cdparanoia/paranoia:${prefix}/include/lzo \
    6066                    --with-extralibdir=${prefix}/lib:${prefix}/lib/samba3 \
    6167                    --datadir=${prefix}/share/${name} \
    6268                    --confdir=${prefix}/etc/${name} \