Commit 6826cf2f authored by Loren Merritt's avatar Loren Merritt

pkg-config: major.minor.patch version


git-svn-id: svn://svn.videolan.org/x264/trunk@379 df754926-b1dd-0310-bc7b-ec298dee348c
parent 8e44d938
......@@ -131,6 +131,7 @@ void x264_param_default( x264_param_t *param )
memset( param->cqm_8iy, 16, 64 );
memset( param->cqm_8py, 16, 64 );
param->b_repeat_headers = 1;
param->b_aud = 0;
}
......
......@@ -273,6 +273,8 @@ EOF
echo "default: x264vfw.dll" >> config.mak
fi
./version.sh
# x264.pc file creation
rm -f x264.pc
cat > x264.pc << EOF
......@@ -283,7 +285,7 @@ includedir=$includedir
Name: x264
Description: H.264 (MPEG4 AVC) encoder library
Version:
Version: $(grep POINTVER < config.h | sed -e 's/.* "//; s/".*//')
Libs: -L$libdir -lx264
Cflags: -I$includedir
EOF
......
......@@ -3,6 +3,10 @@ VER=`svnversion .`
if [ "x$VER" != x -a "$VER" != exported ]
then
echo "#define X264_VERSION \" svn-$VER\"" > config.h
API=`grep '#define X264_BUILD' < x264.h | grep -o '[1-9][0-9]*\>'`
VER=`echo $VER | grep -o '^[0-9]*'`
echo "#define X264_POINTVER \"0.$API.$VER\"" >> config.h
else
echo "#define X264_VERSION \"\"" > config.h
echo "#define X264_POINTVER \"\"" >> config.h
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment