[MPlayer-cvslog] r23119 - in trunk: configure libaf/Makefile libmpcodecs/Makefile libmpdemux/Makefile

diego subversion at mplayerhq.hu
Thu Apr 26 13:22:22 CEST 2007


Author: diego
Date: Thu Apr 26 13:22:22 2007
New Revision: 23119

Log:
Add general variables for either static or shared FFmpeg libraries.


Modified:
   trunk/configure
   trunk/libaf/Makefile
   trunk/libmpcodecs/Makefile
   trunk/libmpdemux/Makefile

Modified: trunk/configure
==============================================================================
--- trunk/configure	(original)
+++ trunk/configure	Thu Apr 26 13:22:22 2007
@@ -6152,6 +6152,7 @@ echores "$_live"
 echocheck "FFmpeg libavutil (static)"
 if test "$_libavutil_a" = auto ; then
   if test -d libavutil ; then
+    _libavutil=yes
     _libavutil_a=yes
   else
     die "MPlayer will not compile without libavutil in the source tree."
@@ -6183,6 +6184,7 @@ EOF
       fi
       _res_comment="libavutil availability does not fit libavcodec version"
       if test "$_libavutil_required" = "$_libavutil_a"; then
+        _libavcodec="yes"
         _libavcodec_a="yes"
         _res_comment=""
       fi
@@ -6196,6 +6198,7 @@ if test "$_libavformat_a" = auto ; then
   # Note: static linking is preferred to dynamic linking
   _libavformat_a=no
   if test -d libavformat && test -f libavformat/utils.c ; then
+    _libavformat=yes
     _libavformat_a=yes
   fi
 fi
@@ -6205,6 +6208,7 @@ echocheck "FFmpeg libpostproc (static)"
 if test "$_libpostproc_a" = auto ; then
 _libpostproc_a=no
 if test -d libpostproc && test -f libpostproc/postprocess.h ; then
+   _libpostproc='yes'
    _libpostproc_a='yes'
 fi
 fi
@@ -6223,9 +6227,10 @@ EOF
     _inc_libavutil=`$_pkg_config --cflags libavutil`
     _ld_tmp=`$_pkg_config --libs libavutil`
     cc_check $_inc_libavutil $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \
-      && _libavutil_so=yes
+      && _libavutil=yes && _libavutil_so=yes
   elif cc_check -lavutil $_ld_lm ; then
     _ld_extra="$_ld_extra -lavutil"
+    _libavutil=yes
     _libavutil_so=yes
     _res_comment="using libavutil.so, but static libavutil is recommended"
   fi
@@ -6254,9 +6259,10 @@ EOF
     _inc_libavcodec=`$_pkg_config --cflags libavcodec`
     _ld_tmp=`$_pkg_config --libs libavcodec`
     cc_check $_inc_libavcodec $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \
-      && _libavcodec_so=yes
+      && _libavcodec=yes && _libavcodec_so=yes
   elif cc_check -lavcodec $_ld_lm ; then
     _ld_extra="$_ld_extra -lavcodec"
+    _libavcodec=yes
     _libavcodec_so=yes
     _res_comment="using libavcodec.so, but static libavcodec is recommended"
   fi
@@ -6277,9 +6283,10 @@ EOF
     _inc_libavformat=`$_pkg_config --cflags libavformat`
     _ld_tmp=`$_pkg_config --libs libavformat`
     cc_check $_inc_libavformat $_ld_tmp && _ld_extra="$_ld_extra $_ld_tmp" \
-      && _libavformat_so=yes
+      && _libavformat=yes && _libavformat_so=yes
   elif cc_check $_ld_lm -lavformat ; then
     _ld_extra="$_ld_extra -lavformat"
+    _libavformat=yes
     _libavformat_so=yes
     _res_comment="using libavformat.so, but static libavformat is recommended"
   fi
@@ -6301,6 +6308,7 @@ if test "$_libpostproc_so" = auto ; then
 EOF
   if cc_check -lpostproc $_ld_lm ; then
     _ld_extra="$_ld_extra -lpostproc"
+    _libpostproc=yes
     _libpostproc_so=yes
     _res_comment="using libpostproc.so, but static libpostproc is recommended"
   fi
@@ -7722,13 +7730,17 @@ WIN32DLL = $_win32dll
 QTX_CODECS = $_qtx
 REAL_CODECS = $_real
 XANIM_CODECS = $_xanim
-LIBAVUTIL = $_libavutil_a
+LIBAVUTIL = $_libavutil
+LIBAVUTIL_A = $_libavutil_a
 LIBAVUTIL_SO = $_libavutil_so
-LIBAVCODEC = $_libavcodec_a
+LIBAVCODEC = $_libavcodec
+LIBAVCODEC_A = $_libavcodec_a
 LIBAVCODEC_SO = $_libavcodec_so
-LIBAVFORMAT = $_libavformat_a
+LIBAVFORMAT = $_libavformat
+LIBAVFORMAT_A = $_libavformat_a
 LIBAVFORMAT_SO = $_libavformat_so
-LIBPOSTPROC = $_libpostproc_a
+LIBPOSTPROC = $_libpostproc
+LIBPOSTPROC_A = $_libpostproc_a
 LIBPOSTPROC_SO = $_libpostproc_so
 ZORAN = $_zr
 LIBLZO = $_liblzo

Modified: trunk/libaf/Makefile
==============================================================================
--- trunk/libaf/Makefile	(original)
+++ trunk/libaf/Makefile	Thu Apr 26 13:22:22 2007
@@ -30,6 +30,5 @@ SRCS_COMMON = af.c \
 
 SRCS_COMMON-$(HAVE_SYS_MMAN_H)      += af_export.c
 SRCS_COMMON-$(LIBAVCODEC)           += af_lavcresample.c
-SRCS_COMMON-$(LIBAVCODEC_SO)        += af_lavcresample.c
 
 include ../mpcommon.mak

Modified: trunk/libmpcodecs/Makefile
==============================================================================
--- trunk/libmpcodecs/Makefile	(original)
+++ trunk/libmpcodecs/Makefile	Thu Apr 26 13:22:22 2007
@@ -94,7 +94,7 @@ SRCS_COMMON = native/nuppelvideo.c \
               vf_yvu9.c \
 
 # These filters use private headers and do not work with shared libavcodec.
-SRCS_COMMON-$(LIBAVCODEC)            += vf_fspp.c \
+SRCS_COMMON-$(LIBAVCODEC_A)          += vf_fspp.c \
                                         vf_geq.c \
                                         vf_mcdeint.c \
                                         vf_qp.c \
@@ -107,12 +107,10 @@ SRCS_COMMON-$(HAVE_POSIX_SELECT)     += 
 SRCS_COMMON-$(JPEG)                  += vd_ijpg.c
 SRCS_COMMON-$(LIBA52)                += ad_liba52.c
 SRCS_COMMON-$(LIBAVCODEC)            += ad_ffmpeg.c vd_ffmpeg.c vf_lavc.c vf_lavcdeint.c
-SRCS_COMMON-$(LIBAVCODEC_SO)         += ad_ffmpeg.c vd_ffmpeg.c vf_lavc.c vf_lavcdeint.c
 SRCS_COMMON-$(LIBDV)                 += ad_libdv.c vd_libdv.c
 SRCS_COMMON-$(LIBMAD)                += ad_libmad.c
 SRCS_COMMON-$(LIBMPEG2)              += vd_libmpeg2.c
 SRCS_COMMON-$(LIBPOSTPROC)           += vf_pp.c
-SRCS_COMMON-$(LIBPOSTPROC_SO)        += vf_pp.c
 SRCS_COMMON-$(LIBTHEORA)             += vd_theora.c
 SRCS_COMMON-$(LIBVORBIS)             += ad_libvorbis.c
 SRCS_COMMON-$(MP3LIB)                += ad_mp3lib.c
@@ -134,7 +132,6 @@ SRCS_MENCODER = ae.c \
                 ve_raw.c \
 
 SRCS_MENCODER-$(LIBAVCODEC)           += ae_lavc.c ve_lavc.c
-SRCS_MENCODER-$(LIBAVCODEC_SO)        += ae_lavc.c ve_lavc.c
 SRCS_MENCODER-$(LIBDV)                += ve_libdv.c
 SRCS_MENCODER-$(LIBLZO)               += ve_nuv.c
 SRCS_MENCODER-$(QTX_CODECS)           += ve_qtvideo.c

Modified: trunk/libmpdemux/Makefile
==============================================================================
--- trunk/libmpdemux/Makefile	(original)
+++ trunk/libmpdemux/Makefile	Thu Apr 26 13:22:22 2007
@@ -47,7 +47,6 @@ SRCS_COMMON = asfheader.c \
 
 SRCS_COMMON-$(GIF)                     += demux_gif.c
 SRCS_COMMON-$(LIBAVFORMAT)             += demux_lavf.c
-SRCS_COMMON-$(LIBAVFORMAT_SO)          += demux_lavf.c
 SRCS_COMMON-$(LIBDV)                   += demux_rawdv.c
 SRCS_COMMON-$(LIBNUT)                  += demux_nut.c
 SRCS_COMMON-$(LIBVORBIS)               += demux_ogg.c
@@ -63,7 +62,6 @@ SRCS_MENCODER = muxer.c \
                 muxer_rawvideo.c \
 
 SRCS_MENCODER-$(LIBAVFORMAT)           += muxer_lavf.c
-SRCS_MENCODER-$(LIBAVFORMAT_SO)        += muxer_lavf.c
 
 include ../mpcommon.mak
 



More information about the MPlayer-cvslog mailing list