Ticket #32046: mjpegtools-2.0.0.diff

File mjpegtools-2.0.0.diff, 2.0 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)

proposed patch

  • Portfile

     
    33PortSystem 1.0
    44
    55name            mjpegtools
    6 version         1.9.0
    7 revision        4
     6version         2.0.0
    87categories      multimedia
    98maintainers     gmail.com:filippo.natali
    109platforms       darwin
     
    1312                        editing and MPEG compression of audio and video.
    1413
    1514homepage        http://mjpeg.sourceforge.net/
    16 master_sites    sourceforge:mjpeg
     15master_sites    sourceforge:project/mjpeg/mjpegtools/${version}
    1716
    18 checksums       md5     309a6fcf0900a010d6a9c1e91afc2f5c \
    19                 sha1    1701233354c7ea86b5b7808c4dd5d03a71118e48 \
    20                 rmd160  79e0eb4bce468bb8f12da336e29abe8fab390a5f
     17checksums       rmd160  454e23bedb2bd592912a546d0621b5c3662c3bb2 \
     18                sha256  bf3541593e71602f7b440c2e7d81b433f53d0511e74642f35bea9b3feded7a97
    2119
    2220depends_build   port:pkgconfig
    2321
    24 depends_lib     port:xorg-libXxf86dga \
    25                 port:gtk2 \
     22depends_lib     port:gtk2 \
    2623                port:libsdl_gfx \
    2724                port:libpng \
    2825                port:jpeg \
    2926                port:libdv \
    3027                port:libquicktime
    3128
    32 patchfiles      jpeg-7.patch
     29configure.args  --enable-simd-accel \
     30                --disable-sdltest \
     31                --without-x
    3332
    34 configure.args  --mandir=${prefix}/share/man --infodir=${prefix}/share/info --enable-simd-accel --disable-sdltest --with-x
    3533
    36 variant no_x11 {
    37          depends_lib-delete port:xorg-libXxf86dga
    38          configure.args-delete --with-x
    39          configure.args-append --without-x
     34variant x11 conflicts no_x11 {
     35    configure.args-delete --without-x
     36    configure.args-append --with-x
     37    depends_lib-append port:xorg-libXxf86dga
    4038}
    4139
    42 livecheck.regex "<title>${name} (\\d+(?:\\.\\d+)*) released.*</title>"
     40variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
     41
     42if {[variant_isset no_x11]} {
     43    default_variants -x11
     44} else {
     45    default_variants +x11
     46}
     47
     48livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}