[Ffmpeg-cvslog] CVS: ffmpeg configure, 1.209, 1.210 Makefile, 1.83, 1.84
Diego Biurrun CVS
diego
Tue Oct 4 13:19:10 CEST 2005
Update of /cvsroot/ffmpeg/ffmpeg
In directory mail:/var2/tmp/cvs-serv15240
Modified Files:
configure Makefile
Log Message:
Move all definitions of external dependencies into configure instead of
defining it in configure and the Makefiles in a random fashion.
patch by j -- at -- v2v -- dot -- cc
Index: configure
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/configure,v
retrieving revision 1.209
retrieving revision 1.210
diff -u -d -r1.209 -r1.210
--- configure 3 Oct 2005 08:15:48 -0000 1.209
+++ configure 4 Oct 2005 11:19:07 -0000 1.210
@@ -375,6 +375,7 @@
SLIBSUF=".dll"
EXESUF=".exe"
extralibs=""
+pkg_requires=""
v4l="no"
audio_oss="no"
dv1394="no"
@@ -470,6 +471,7 @@
--disable-audio-oss) audio_oss="no"
;;
--disable-audio-beos) audio_beos="no"
+ extralibs="$extralibs -lbe -lmedia"
;;
--disable-dv1394) dv1394="no"
;;
@@ -481,33 +483,48 @@
;;
--enable-a52bin) a52bin="yes"
;;
- --enable-dts) dts="yes" ; extralibs="$extralibs -ldts"
+ --enable-dts) dts="yes"
+ extralibs="$extralibs -ldts"
;;
--enable-pp) pp="yes"
;;
--enable-shared-pp) shared_pp="yes"
;;
--enable-libgsm) libgsm="yes"
+ extralibs="$extralibs -lgsm"
;;
- --enable-mp3lame) mp3lame="yes"; extralibs="$extralibs -lmp3lame"
+ --enable-mp3lame) mp3lame="yes"
+ extralibs="$extralibs -lmp3lame"
;;
--enable-libogg) libogg="yes"
+ extralibs="$extralibs -logg"
+ pkg_requires="$pkg_requires ogg >= 1.1"
;;
--enable-vorbis) vorbis="yes"
+ extralibs="$extralibs -lvorbis -lvorbisenc"
+ pkg_requires="$pkg_requires vorbis vorbisenc"
;;
--enable-theora) theora="yes"
+ extralibs="$extralibs -ltheora"
+ pkg_requires="$pkg_requires theora"
;;
--enable-faad) faad="yes"
+ extralibs="$extralibs -lfaad"
;;
--enable-faadbin) faadbin="yes"
;;
- --enable-faac) faac="yes"; extralibs="$extralibs -lfaac"
+ --enable-faac) faac="yes"
+ extralibs="$extralibs -lfaac"
;;
--enable-xvid) xvid="yes"
+ extralibs="$extralibs -lxvidcore"
;;
- --enable-x264) x264="yes"; extralibs="$extralibs -lx264"
+ --enable-x264) x264="yes"
+ extralibs="$extralibs -lx264"
;;
--enable-dc1394) dc1394="yes"
+ extralibs="$extralibs -ldc1394_control -lraw1394"
+ pkg_requires="$pkg_requires libraw1394"
;;
--disable-vhook) vhook="no"
;;
@@ -1772,17 +1789,6 @@
lavf_version=`grep '#define LIBAVFORMAT_VERSION ' "$source_path/libavformat/avformat.h" | sed 's/[^0-9\.]//g'`
lavu_version=`grep '#define LIBAVUTIL_VERSION ' "$source_path/libavutil/avutil.h" | sed 's/[^0-9\.]//g'`
-requires=
-test "$dc1394" = "yes" && extralibs="$extralibs -ldc1394_control" && requires="$requires libraw1394"
-test "$libgsm" = "yes" && extralibs="$extralibs -lgsm"
-test "$libogg" = "yes" && requires="$requires ogg >= 1.1"
-test "$vorbis" = "yes" && requires="$requires vorbis"
-test "$mp3lame" = "yes" && extralibs="$extralibs -lmp3lame"
-test "$theora" = "yes" && requires="$requires theora"
-test "$faad" = "yes" && test "$faadbin" = "no" && extralibs="$extralibs -lfaad"
-test "$faac" = "yes" && extralibs="$extralibs -lfaac"
-test "$xvid" = "yes" && extralibs="$extralibs -lxvidcore"
-
# libavutil.pc
cat <<EOF >libavutil.pc
prefix=$prefix
@@ -1824,7 +1830,7 @@
Name: libavcodec
Description: FFmpeg codec library
Version: $lavc_version
-Requires: $requires libavutil = $lavu_version
+Requires: $pkg_requires libavutil = $lavu_version
Conflicts:
Libs: -L\${libdir} -lavcodec $extralibs
Cflags: -I\${includedir} -I\${includedir}/ffmpeg
@@ -1839,7 +1845,7 @@
Name: libavcodec
Description: FFmpeg codec library
Version: $lavc_version
-Requires: $requires libavutil = $lavu_version
+Requires: $pkg_requires libavutil = $lavu_version
Conflicts:
Libs: \${libdir}/${LIBPREF}avcodec${LIBSUF} $extralibs
Cflags: -I\${includedir}
@@ -1855,7 +1861,7 @@
Name: libavformat
Description: FFmpeg container format library
Version: $lavf_version
-Requires: $requires libavcodec = $lavc_version
+Requires: $pkg_requires libavcodec = $lavc_version
Conflicts:
Libs: -L\${libdir} -lavformat $extralibs
Cflags: -I\${includedir} -I\${includedir}/ffmpeg
@@ -1870,7 +1876,7 @@
Name: libavformat
Description: FFmpeg container format library
Version: $lavf_version
-Requires: $requires libavcodec = $lavc_version
+Requires: $pkg_requires libavcodec = $lavc_version
Conflicts:
Libs: \${libdir}/${LIBPREF}avformat${LIBSUF} $extralibs
Cflags: -I\${includedir}
Index: Makefile
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/Makefile,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- Makefile 10 Aug 2005 08:49:10 -0000 1.83
+++ Makefile 4 Oct 2005 11:19:07 -0000 1.84
@@ -38,43 +38,6 @@
DEP_LIBS=libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(SLIBPREF)avformat$(SLIBSUF)
else
DEP_LIBS=libavcodec/$(LIBPREF)avcodec$(LIBSUF) libavformat/$(LIBPREF)avformat$(LIBSUF)
-ifeq ($(CONFIG_MP3LAME),yes)
-EXTRALIBS+=-lmp3lame
-endif
-endif
-
-ifeq ($(CONFIG_LIBOGG),yes)
-ifeq ($(CONFIG_LIBVORBIS),yes)
-EXTRALIBS+= -lvorbisenc -lvorbis
-endif
-ifeq ($(CONFIG_LIBTHEORA),yes)
-EXTRALIBS+= -ltheora
-endif
-EXTRALIBS+= -logg
-endif
-
-ifeq ($(CONFIG_FAAD),yes)
-ifeq ($(CONFIG_FAADBIN),yes)
-# no libs needed
-else
-EXTRALIBS += -lfaad
-endif
-endif
-
-ifeq ($(CONFIG_FAAC),yes)
-EXTRALIBS+=-lfaac
-endif
-
-ifeq ($(CONFIG_XVID),yes)
-EXTRALIBS+=-lxvidcore
-endif
-
-ifeq ($(CONFIG_LIBGSM),yes)
-EXTRALIBS+=-lgsm
-endif
-
-ifeq ($(CONFIG_DC1394),yes)
-EXTRALIBS+=-ldc1394_control -lraw1394
endif
ifeq ($(BUILD_VHOOK),yes)
More information about the ffmpeg-cvslog
mailing list