]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
mplayer: Enable live and tv options
authorKelvin Cheung <keguang.zhang@gmail.com>
Tue, 8 Nov 2011 11:16:17 +0000 (19:16 +0800)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 9 Nov 2011 22:42:23 +0000 (23:42 +0100)
1.Enable TV interface.
2.Enable LIVE555 Streaming Media if live555 is available.

[Peter: cleanup CFLAGS/LDFLAGS handling]
Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/mplayer/mplayer.mk

index 4c034401906a199f7eea4a16135dd7daf4b346d5..776cc68eea6b6d3e9ae0b2e2255efb94c58727a6 100644 (file)
@@ -8,6 +8,9 @@ MPLAYER_VERSION = 32726
 # MPLAYER_SITE = http://www.mplayerhq.hu/MPlayer/releases
 MPLAYER_SITE = svn://svn.mplayerhq.hu/mplayer/trunk
 
+MPLAYER_CFLAGS = $(TARGET_CFLAGS)
+MPLAYER_LDFLAGS = $(TARGET_LDFLAGS)
+
 # mplayer needs pcm+mixer support, but configure fails to check for it
 ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yyy)
 MPLAYER_DEPENDENCIES += alsa-lib
@@ -75,6 +78,17 @@ else
 MPLAYER_CONF_OPTS += --disable-mad
 endif
 
+ifeq ($(BR2_PACKAGE_LIVE555),y)
+MPLAYER_DEPENDENCIES += live555
+MPLAYER_CONF_OPTS += --enable-live
+MPLAYER_LIVE555 = liveMedia groupsock UsageEnvironment BasicUsageEnvironment
+MPLAYER_CFLAGS += \
+       $(addprefix -I$(STAGING_DIR)/usr/include/live/,$(MPLAYER_LIVE555))
+MPLAYER_LDFLAGS += $(addprefix -l,$(MPLAYER_LIVE555)) -lstdc++
+else
+MPLAYER_CONF_OPTS += --disable-live
+endif
+
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBTHEORA),libtheora)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG),libpng)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_JPEG),jpeg)
@@ -106,15 +120,13 @@ define MPLAYER_CONFIGURE_CMDS
                --cc="$(TARGET_CC)" \
                --as="$(TARGET_AS)" \
                --charset=UTF-8 \
-               --extra-cflags="$(TARGET_CFLAGS)" \
-               --extra-ldflags="$(TARGET_LDFLAGS)" \
+               --extra-cflags="$(MPLAYER_CFLAGS)" \
+               --extra-ldflags="$(MPLAYER_LDFLAGS)" \
                --enable-mad \
                --enable-fbdev \
                $(MPLAYER_CONF_OPTS) \
                --enable-cross-compile \
                --disable-ivtv \
-               --disable-tv \
-               --disable-live \
                --enable-dynamic-plugins \
        )
 endef