summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-03-07 19:27:17 +0000
committerMåns Rullgård <mans@mansr.com>2008-03-07 19:27:17 +0000
commit0e32c8c65a1c42d9f6489eca2231dde17716d139 (patch)
tree54e899e3dd02ab3ad510e8628385085e3ff3fe5b /configure
parent88b5db9f0881b8d22dc9a5f9e824ed1d22b375a0 (diff)
downloadffmpeg-0e32c8c65a1c42d9f6489eca2231dde17716d139.tar.gz
simplify library version handling
Originally committed as revision 12362 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 3 insertions, 14 deletions
diff --git a/configure b/configure
index ad127f4f2b..52a31f5d44 100755
--- a/configure
+++ b/configure
@@ -2006,6 +2006,9 @@ get_version(){
file=$source_path/$2
eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }')
eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO
+ lcname=$(tolower $name)
+ eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak
+ eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak
}
get_version LIBSWSCALE libswscale/swscale.h
@@ -2019,20 +2022,6 @@ get_version LIBAVFILTER libavfilter/avfilter.h
if enabled shared; then
echo "BUILD_SHARED=yes" >> config.mak
echo "PIC=-fPIC -DPIC" >> config.mak
- echo "SPPMAJOR=$LIBPOSTPROC_VERSION_MAJOR" >> config.mak
- echo "SPPVERSION=$LIBPOSTPROC_VERSION" >> config.mak
- echo "LAVCMAJOR=$LIBAVCODEC_VERSION_MAJOR" >> config.mak
- echo "LAVCVERSION=$LIBAVCODEC_VERSION" >> config.mak
- echo "LAVDMAJOR=$LIBAVDEVICE_VERSION_MAJOR" >> config.mak
- echo "LAVDVERSION=$LIBAVDEVICE_VERSION" >> config.mak
- echo "LAVFMAJOR=$LIBAVFORMAT_VERSION_MAJOR" >> config.mak
- echo "LAVFVERSION=$LIBAVFORMAT_VERSION" >> config.mak
- echo "LAVUMAJOR=$LIBAVUTIL_VERSION_MAJOR" >> config.mak
- echo "LAVUVERSION=$LIBAVUTIL_VERSION" >> config.mak
- echo "LAVFIMAJOR=$LIBAVFILTER_VERSION_MAJOR" >> config.mak
- echo "LAVFIVERSION=$LIBAVFILTER_VERSION" >> config.mak
- echo "SWSMAJOR=$LIBSWSCALE_VERSION_MAJOR" >> config.mak
- echo "SWSVERSION=$LIBSWSCALE_VERSION" >> config.mak
echo "SLIBNAME=${SLIBNAME}" >> config.mak
echo "SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}" >> config.mak
echo "SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}" >> config.mak