Ticket #34011: yorick-av-devel-variant.diff

File yorick-av-devel-variant.diff, 1.0 KB (added by paumard, 13 years ago)

use a variant instead of path: dependency for ffmpeg/ffmpeg-devel

  • Portfile

    old new  
    88github.setup        paumard yorick-${uname} 0.0.1 v
    99categories          science multimedia
    1010platforms           darwin
    11 maintainers         users.sourceforge.net:paumard
     11maintainers         users.sourceforge.net:paumard openmaintainer
    1212
    1313description         Write movies to various formats from within Yorick
    1414
     
    2020checksums           rmd160  b6a864310bc93b4700af1edf43af7ad5dfae1881 \
    2121                    sha256  b81accb4b3c1ac2a74daf8c127c4f6e0ed87af9c877643a0636d0848c65dc540
    2222
    23 depends_lib-append  port:yorick \
    24                     path:lib/libavcodec.dylib:ffmpeg
     23depends_lib-append  path:bin/yorick:yorick \
     24                    port:ffmpeg
     25
     26variant devel description {Link against ffmpeg-devel insted of ffmpeg} {
     27    depends_lib-replace s/port:ffmpeg/port:ffmpeg-devel/
     28}
     29
     30if { ![catch { registry_active ffmpeg-devel }] } {
     31    default_variants +devel
     32}
    2533
    2634# yorick is not universal
    2735universal_variant   no