[118506] trunk/dports/multimedia/libmpeg2/Portfile

Ryan Schmidt ryandesign at macports.org
Fri Apr 4 01:24:48 PDT 2014


On Apr 3, 2014, at 09:25, mojca at macports.org wrote:

> Revision
> 118506
> Author
> mojca at macports.org
> Date
> 2014-04-03 07:25:00 -0700 (Thu, 03 Apr 2014)
> Log Message
> 
> libmpeg2: add +sdl +x11 (#39383)
> Modified Paths
> 
> 	• trunk/dports/multimedia/libmpeg2/Portfile
> Diff
> 
> Modified: trunk/dports/multimedia/libmpeg2/Portfile (118505 => 118506)

> -variant no_sdl description {Don't use libsdl} {
> -    depends_lib-delete  port:libsdl
> -    configure.args-append --disable-sdl
> 
> +variant sdl conflicts no_sdl description {Use libsdl} {
> +    depends_lib-append      port:libsdl
> +    configure.args-replace  --disable-sdl --enable-sdl
> 
>  }
> 
>  
> 
> -variant no_x11 {
> -    configure.args-append --without-x
> -    configure.args-delete --x-includes=${prefix}/include
> -    configure.args-delete --x-libraries=${prefix}/lib
> -    depends_lib-delete port:xorg-libXv
> 
> +variant x11 conflicts no_x11 {
> +    depends_lib-append      port:xorg-libXv
> +    configure.args-replace  --without-x --with-x
> +    configure.args-append   --x-includes=${prefix}/include \
> +                            --x-libraries=${prefix}/lib
> 
>  }
> 
>  
> 
> +variant no_sdl conflicts sdl description {Legacy compatibility variant} {}
> +variant no_x11 conflicts x11 description {Legacy compatibility variant} {}
> +
> +default_variants    +sdl +x11

If the user had previously selected +no_sdl, the default should be -sdl, otherwise the default should be +sdl.

If the user had previously selected +no_x11, the default should be -x11, otherwise the default should be +x11.

See other ports for an example.



More information about the macports-dev mailing list