diff options
author | cheusov <cheusov@pkgsrc.org> | 2012-12-02 01:33:52 +0000 |
---|---|---|
committer | cheusov <cheusov@pkgsrc.org> | 2012-12-02 01:33:52 +0000 |
commit | 5cb5fa78ccfeb7d6cd8b39a6b8add5f9bf03f71e (patch) | |
tree | 4eeae9fb7445df4ca416eaf8a3f7a7ce34a443d4 /multimedia/mplayer-share/options.mk | |
parent | e0616fe73d16a50fc955f3e8074d4beb1c06ce7a (diff) | |
download | pkgsrc-5cb5fa78ccfeb7d6cd8b39a6b8add5f9bf03f71e.tar.gz |
New option "lirc" for mplayer enabled on systems that support it
Diffstat (limited to 'multimedia/mplayer-share/options.mk')
-rw-r--r-- | multimedia/mplayer-share/options.mk | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/multimedia/mplayer-share/options.mk b/multimedia/mplayer-share/options.mk index 366e173988b..d7b9666e839 100644 --- a/multimedia/mplayer-share/options.mk +++ b/multimedia/mplayer-share/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.47 2012/11/29 17:27:17 drochner Exp $ +# $NetBSD: options.mk,v 1.48 2012/12/02 01:33:52 cheusov Exp $ .if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*) @@ -7,7 +7,9 @@ PKG_OPTIONS_VAR= PKG_OPTIONS.${PKGNAME:C/-[0-9].*//} .include "../../mk/oss.buildlink3.mk" + .include "../../multimedia/libvdpau/available.mk" +.include "../../comms/lirc/available.mk" # ------------------------------------------------------------------------- # Define PKG_SUPPORTED_OPTIONS based on the current package and system. @@ -38,6 +40,10 @@ PKG_SUPPORTED_OPTIONS+= aalib caca esound ggi mplayer-menu nas pulseaudio sdl PKG_SUPPORTED_OPTIONS+= vdpau .endif +.if ${LIRC_AVAILABLE} == "yes" +PKG_SUPPORTED_OPTIONS+= lirc +.endif + . if ${OPSYS} != "SunOS" PKG_SUPPORTED_OPTIONS+= arts . endif @@ -89,7 +95,7 @@ PKG_SUPPORTED_OPTIONS+= xvid dvdread dvdnav \ lame mad mplayer-menu mplayer-real \ mplayer-default-cflags mplayer-runtime-cpudetection mplayer-win32 \ - nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau + nas oss pulseaudio png sdl theora vorbis x264 xvid vdpau lirc . if !empty(PKG_SUPPORTED_OPTIONS:M${o}) PKG_SUGGESTED_OPTIONS+= ${o} . endif @@ -356,6 +362,13 @@ CONFIGURE_ARGS+= --enable-vdpau CONFIGURE_ARGS+= --disable-vdpau .endif +.if !empty(PKG_OPTIONS:Mlirc) +CONFIGURE_ARGS+= --enable-lirc +. include "../../comms/lirc/buildlink3.mk" +.else +CONFIGURE_ARGS+= --disable-lirc +.endif + # ------------------------------------------------------------------------- # Handle extra libraries (part 1) # ------------------------------------------------------------------------- |