[FFmpeg-devel] [PATCH] build: postproc cleanup.
Clément Bœsch
ubitux at gmail.com
Mon Dec 24 06:16:19 CET 2012
This reverts 79f80f5c, moves postproc along with the other libraries,
and fix the postproc dependency to libavutil.
---
configure | 48 ++----------------------------------------------
libpostproc/version.h | 2 --
2 files changed, 2 insertions(+), 48 deletions(-)
diff --git a/configure b/configure
index 2b0a0ff..9085fe4 100755
--- a/configure
+++ b/configure
@@ -307,8 +307,6 @@ Optimization options (experts only):
--disable-mipsdspr2 disable MIPS DSP ASE R2 optimizations
--disable-mipsfpu disable floating point MIPS optimizations
--disable-fast-unaligned consider unaligned accesses slow
- --postproc-version=V build libpostproc version V.
- Where V can be '$ALT_PP_VER_MAJOR.$ALT_PP_VER_MINOR.$ALT_PP_VER_MICRO' or 'current'. [$postproc_version_default]
Developer options (useful when working on FFmpeg itself):
--enable-coverage build with test coverage instrumentation
@@ -1117,6 +1115,7 @@ LIBRARY_LIST="
avformat
avresample
avutil
+ postproc
swresample
swscale
"
@@ -1198,7 +1197,6 @@ CONFIG_LIST="
openal
openssl
pic
- postproc
rdft
runtime_cpudetect
safe_bitstream_reader
@@ -1540,7 +1538,6 @@ CMDLINE_SET="
nm
optflags
pkg_config
- postproc_version
progs_suffix
random_seed
samples
@@ -2010,7 +2007,7 @@ avdevice_deps="avutil avcodec avformat"
avfilter_deps="avutil"
avformat_deps="avutil avcodec"
avresample_deps="avutil"
-postproc_deps="gpl"
+postproc_deps="avutil gpl"
swscale_deps="avutil"
# programs
@@ -2042,7 +2039,6 @@ incdir_default='${prefix}/include'
libdir_default='${prefix}/lib'
mandir_default='${prefix}/share/man'
shlibdir_default="$libdir_default"
-postproc_version_default="current"
# toolchain
ar_default="ar"
@@ -2069,17 +2065,10 @@ cpu="generic"
target_os_default=$(tolower $(uname -s))
host_os=$target_os_default
-# alternative libpostproc version
-ALT_PP_VER_MAJOR=51
-ALT_PP_VER_MINOR=2
-ALT_PP_VER_MICRO=101
-ALT_PP_VER=$ALT_PP_VER_MAJOR.$ALT_PP_VER_MINOR.$ALT_PP_VER_MICRO
-
# configurable options
enable $PROGRAM_LIST
enable $DOCUMENT_LIST
enable $(filter_out avresample $LIBRARY_LIST)
-enable postproc
enable stripping
enable asm
@@ -2316,18 +2305,6 @@ if enabled cross_compile; then
die "Must specify target arch and OS when cross-compiling"
fi
-set_default postproc_version
-
-# Check if we should build alternative libpostproc version instead of current
-if test "$postproc_version" = $ALT_PP_VER; then
- LIBPOSTPROC_VERSION=$ALT_PP_VER
- LIBPOSTPROC_VERSION_MAJOR=$ALT_PP_VER_MAJOR
- LIBPOSTPROC_VERSION_MINOR=$ALT_PP_VER_MINOR
- LIBPOSTPROC_VERSION_MICRO=$ALT_PP_VER_MICRO
-elif test "$postproc_version" != current; then
- die "Invalid argument to --postproc-version. See --help output."
-fi
-
ar_default="${cross_prefix}${ar_default}"
cc_default="${cross_prefix}${cc_default}"
cxx_default="${cross_prefix}${cxx_default}"
@@ -4443,21 +4420,6 @@ get_version(){
eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
}
-get_version_old(){
- name=$1
- file=$source_path/$2
-# This condition will be removed when we stop supporting old libpostproc versions
-if ! test "$name" = LIBPOSTPROC || test "$postproc_version" = current; then
- eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }')
- eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO
-fi
- lcname=$(tolower $name)
- eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak
- eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
-}
-
-get_version_old LIBPOSTPROC libpostproc/version.h
-
map 'get_version $v' $LIBRARY_LIST
cat > $TMPH <<EOF
@@ -4508,12 +4470,6 @@ cat > $TMPH <<EOF
#define AVUTIL_AVCONFIG_H
EOF
-test "$postproc_version" != current && cat >> $TMPH <<EOF
-#define LIBPOSTPROC_VERSION_MAJOR $LIBPOSTPROC_VERSION_MAJOR
-#define LIBPOSTPROC_VERSION_MINOR $LIBPOSTPROC_VERSION_MINOR
-#define LIBPOSTPROC_VERSION_MICRO $LIBPOSTPROC_VERSION_MICRO
-EOF
-
print_config AV_HAVE_ $TMPH $HAVE_LIST_PUB
echo "#endif /* AVUTIL_AVCONFIG_H */" >> $TMPH
diff --git a/libpostproc/version.h b/libpostproc/version.h
index 35e1772..d0d3d43 100644
--- a/libpostproc/version.h
+++ b/libpostproc/version.h
@@ -28,11 +28,9 @@
#include "libavutil/avutil.h"
-#ifndef LIBPOSTPROC_VERSION_MAJOR
#define LIBPOSTPROC_VERSION_MAJOR 52
#define LIBPOSTPROC_VERSION_MINOR 2
#define LIBPOSTPROC_VERSION_MICRO 100
-#endif
#define LIBPOSTPROC_VERSION_INT AV_VERSION_INT(LIBPOSTPROC_VERSION_MAJOR, \
LIBPOSTPROC_VERSION_MINOR, \
--
1.8.0.2
More information about the ffmpeg-devel
mailing list