Mercurial > mplayer.hg
changeset 13997:63023fad13a0
support for debianized LIVE.COM library
author | henry |
---|---|
date | Sat, 20 Nov 2004 14:46:22 +0000 |
parents | be8f4abbe960 |
children | 14c476d62fc2 |
files | configure libmpdemux/Makefile |
diffstat | 2 files changed, 42 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sat Nov 20 14:41:51 2004 +0000 +++ b/configure Sat Nov 20 14:46:22 2004 +0000 @@ -5469,15 +5469,6 @@ fi -if test -z "$_livelibdir" ; then - for I in $_libdir/live /usr/lib/live /usr/local/live /usr/local/lib/live; do - if test -d "$I" ; then - _livelibdir="$I" - break; - fi; - done -fi - echocheck "LIVE.COM Streaming Media libraries" if test "$_live" = auto && test "$_network" = yes ; then _TMPC=$TMPC @@ -5489,10 +5480,26 @@ #endif int main(void) {} EOF - if cc_check -I$_livelibdir/liveMedia/include/ -I$_livelibdir/UsageEnvironment/include -I$_livelibdir/groupsock/include; then - _live=yes + + _live_dist=no + if test -z "$_livelibdir" ; then + if cc_check -I/usr/include/liveMedia -I/usr/include/UsageEnvironment -I/usr/include/groupsock; then + _live_dist=yes + else + for I in $_libdir/live /usr/lib/live /usr/local/live /usr/local/lib/live; do + if test -d "$I" ; then + _livelibdir="$I" + break; + fi; + done + fi + fi + + if test "$_live_dist" = no && test "$_livelibdir" && cc_check -I$_livelibdir/liveMedia/include/ \ + -I$_livelibdir/UsageEnvironment/include -I$_livelibdir/groupsock/include; then + _live=yes else - _live=no + _live=no fi TMPC=$_TMPC fi @@ -5505,7 +5512,28 @@ LIVE_LIBS += \$(LIVE_LIB_DIR)/groupsock/libgroupsock.a LIVE_LIBS += \$(LIVE_LIB_DIR)/UsageEnvironment/libUsageEnvironment.a LIVE_LIBS += \$(LIVE_LIB_DIR)/BasicUsageEnvironment/libBasicUsageEnvironment.a -LIVE_LIBS += -lstdc++" +LIVE_LIBS += -lstdc++ +LIVE_INCLUDES = -I$\(LIVE_LIB_DIR)/liveMedia/include +LIVE_INCLUDES += -I$\(LIVE_LIB_DIR)/UsageEnvironment/include +LIVE_INCLUDES += -I$\(LIVE_LIB_DIR)/BasicUsageEnvironment/include +LIVE_INCLUDES += -I$\(LIVE_LIB_DIR)/groupsock/include" + _ld_live='$(LIVE_LIBS)' + _inputmodules="live.com $_inputmodules" +elif test "$_live_dist" = yes && test "$_network" = yes ; then + echores "yes (using distribution version)" + _live="yes" + _def_live='#define STREAMING_LIVE_DOT_COM 1' + _live_libs_def="# LIVE.COM Streaming Media libraries: +LIVE_LIB_DIR = $_livelibdir +LIVE_LIBS = -lliveMedia +LIVE_LIBS += -lgroupsock +LIVE_LIBS += -lUsageEnvironment +LIVE_LIBS += -lBasicUsageEnvironment +LIVE_LIBS += -lstdc++ +LIVE_INCLUDES = -I/usr/include/liveMedia +LIVE_INCLUDES += -I/usr/include/UsageEnvironment +LIVE_INCLUDES += -I/usr/include/BasicUsageEnvironment +LIVE_INCLUDES += -I/usr/include/groupsock" _ld_live='$(LIVE_LIBS)' _inputmodules="live.com $_inputmodules" else
--- a/libmpdemux/Makefile Sat Nov 20 14:41:51 2004 +0000 +++ b/libmpdemux/Makefile Sat Nov 20 14:46:22 2004 +0000 @@ -12,10 +12,7 @@ SRCS += realrtsp/asmrp.c realrtsp/real.c realrtsp/rmff.c realrtsp/rtsp.c realrtsp/rtsp_session.c realrtsp/sdpplin.c realrtsp/xbuffer.c ifeq ($(STREAMING_LIVE_DOT_COM),yes) CPLUSPLUSSRCS = demux_rtp.cpp demux_rtp_codec.cpp -CPLUSPLUSINCLUDE = -I$(LIVE_LIB_DIR)/liveMedia/include -CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/UsageEnvironment/include -CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/BasicUsageEnvironment/include -CPLUSPLUSINCLUDE += -I$(LIVE_LIB_DIR)/groupsock/include +CPLUSPLUSINCLUDE = $(LIVE_INCLUDES) endif endif