mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
Added gettext to the cross compilation script/instructions
This commit is contained in:
parent
63b70d1d4c
commit
b342c5c8f6
@ -323,7 +323,20 @@ Get the full wxWidgets source archive from http://www.wxwidgets.org/
|
|||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
2.3.9. file/libmagic (optional)
|
2.3.9. gettext (optional)
|
||||||
|
|
||||||
|
Get precompiled gettext binaries for mingw from
|
||||||
|
http://sourceforge.net/projects/mingw/files/ You only need the
|
||||||
|
"gettext...-dev-..." package.
|
||||||
|
|
||||||
|
cd $HOME/mingw/src
|
||||||
|
wget 'http://downloads.sourceforge.net/project/mingw/MSYS%20gettext/gettext-0.17-1/gettext-0.17-1-msys-1.0.11-dev.tar.lzma?use_mirror=heanet'
|
||||||
|
mkdir gettext
|
||||||
|
cd gettext
|
||||||
|
lzma -d < ../gettext-0.17-1-msys-1.0.11-dev.tar.lzma | tar xf -
|
||||||
|
cp -R . $HOME/mingw
|
||||||
|
|
||||||
|
2.3.10. file/libmagic (optional)
|
||||||
|
|
||||||
Get precompiled libmagic binaries for mingw from
|
Get precompiled libmagic binaries for mingw from
|
||||||
http://sourceforge.net/projects/mingw/files/ You need both the
|
http://sourceforge.net/projects/mingw/files/ You need both the
|
||||||
@ -338,7 +351,7 @@ http://sourceforge.net/projects/mingw/files/ You need both the
|
|||||||
lzma -d < ../libmagic-5.03-1-msys-1.0.11-dev.tar.lzma | tar xf -
|
lzma -d < ../libmagic-5.03-1-msys-1.0.11-dev.tar.lzma | tar xf -
|
||||||
cp -R . $HOME/mingw
|
cp -R . $HOME/mingw
|
||||||
|
|
||||||
2.3.10. bzip2 (optional)
|
2.3.11. bzip2 (optional)
|
||||||
|
|
||||||
Get precompiled bzip2 binaries for mingw from
|
Get precompiled bzip2 binaries for mingw from
|
||||||
http://sourceforge.net/projects/mingw/files/ You need both the
|
http://sourceforge.net/projects/mingw/files/ You need both the
|
||||||
@ -362,7 +375,7 @@ http://sourceforge.net/projects/mingw/files/ You need both the
|
|||||||
$_' include/bzlib.h
|
$_' include/bzlib.h
|
||||||
cp -R . $HOME/mingw
|
cp -R . $HOME/mingw
|
||||||
|
|
||||||
2.3.11. mkvtoolnix itself
|
2.3.12. mkvtoolnix itself
|
||||||
|
|
||||||
Change back into the mkvtoolnix source code directory and execute the
|
Change back into the mkvtoolnix source code directory and execute the
|
||||||
following commands:
|
following commands:
|
||||||
|
@ -33,15 +33,15 @@ LOG_DIR=${INSTALL_DIR}/log
|
|||||||
|
|
||||||
# Package versions
|
# Package versions
|
||||||
BOOST_VER=1_42_0
|
BOOST_VER=1_42_0
|
||||||
BZIP2_MSYS_VER=1.0.11
|
|
||||||
BZIP2_VER=1.0.5-1
|
BZIP2_VER=1.0.5-1
|
||||||
EXPAT_VER=2.0.1-1
|
EXPAT_VER=2.0.1-1
|
||||||
FLAC_VER=1.2.1
|
FLAC_VER=1.2.1
|
||||||
|
GETTEXT_VER=0.17-1
|
||||||
ICONV_VER=1.13
|
ICONV_VER=1.13
|
||||||
LIBEBML_VER=0.7.8
|
LIBEBML_VER=0.7.8
|
||||||
LIBMATROSKA_VER=0.8.1
|
LIBMATROSKA_VER=0.8.1
|
||||||
MAGIC_MSYS_VER=1.0.11
|
|
||||||
MAGIC_VER=5.03-1
|
MAGIC_VER=5.03-1
|
||||||
|
MSYS_VER=1.0.11
|
||||||
OGG_VER=1.1.4
|
OGG_VER=1.1.4
|
||||||
VORBIS_VER=1.2.3
|
VORBIS_VER=1.2.3
|
||||||
WXWIDGETS_VER=2.8.10
|
WXWIDGETS_VER=2.8.10
|
||||||
@ -246,8 +246,8 @@ function install_file {
|
|||||||
echo Installing file/magic
|
echo Installing file/magic
|
||||||
test -f $ID_LIB/libmagic.a -a -f $ID_INCLUDE/magic.h && return
|
test -f $ID_LIB/libmagic.a -a -f $ID_INCLUDE/magic.h && return
|
||||||
|
|
||||||
local dll_tar=libmagic-${MAGIC_VER}-msys-${MAGIC_MSYS_VER}-dll-1.tar.lzma
|
local dll_tar=libmagic-${MAGIC_VER}-msys-${MSYS_VER}-dll-1.tar.lzma
|
||||||
local dev_tar=libmagic-${MAGIC_VER}-msys-${MAGIC_MSYS_VER}-dev.tar.lzma
|
local dev_tar=libmagic-${MAGIC_VER}-msys-${MSYS_VER}-dev.tar.lzma
|
||||||
local base_url=http://downloads.sourceforge.net/project/mingw/MSYS%20file/file-${MAGIC_VER}
|
local base_url=http://downloads.sourceforge.net/project/mingw/MSYS%20file/file-${MAGIC_VER}
|
||||||
|
|
||||||
cd $SRC_DIR || exit 1
|
cd $SRC_DIR || exit 1
|
||||||
@ -265,13 +265,32 @@ function install_file {
|
|||||||
cp -R . $INSTALL_DIR >> $log 2>&1 || fail
|
cp -R . $INSTALL_DIR >> $log 2>&1 || fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install_gettext {
|
||||||
|
local log=$LOG_DIR/gettext.log
|
||||||
|
echo Installing gettext
|
||||||
|
test -f $ID_LIB/libintl.a -a -f $ID_INCLUDE/libintl.h && return
|
||||||
|
|
||||||
|
local dev_tar=gettext-${GETTEXT_VER}-msys-${MSYS_VER}-dev.tar.lzma
|
||||||
|
local base_url=http://downloads.sourceforge.net/project/mingw/MSYS%20gettext/gettext-${GETTEXT_VER}
|
||||||
|
|
||||||
|
cd $SRC_DIR || exit 1
|
||||||
|
if [ ! -f ${dev_tar} ]; then
|
||||||
|
wget "${base_url}/${dev_tar}?use_mirror=${SOURCEFORGE_MIRROR}" >> $log 2>&1 || fail
|
||||||
|
fi
|
||||||
|
|
||||||
|
test -d gettext || { mkdir gettext >> $log 2>&1 || fail ; }
|
||||||
|
cd gettext >> $log 2>&1 || fail
|
||||||
|
lzma -d < ../${dev_tar} | tar xf - >> $log 2>&1 || fail
|
||||||
|
cp -R . $INSTALL_DIR >> $log 2>&1 || fail
|
||||||
|
}
|
||||||
|
|
||||||
function install_bzip2 {
|
function install_bzip2 {
|
||||||
local log=$LOG_DIR/bzip2.log
|
local log=$LOG_DIR/bzip2.log
|
||||||
echo Installing bzip2
|
echo Installing bzip2
|
||||||
test -f $ID_LIB/libbz2.a -a -f $ID_INCLUDE/bzlib.h && return
|
test -f $ID_LIB/libbz2.a -a -f $ID_INCLUDE/bzlib.h && return
|
||||||
|
|
||||||
local dll_tar=libbz2-${BZIP2_VER}-msys-${BZIP2_MSYS_VER}-dll-1.tar.gz
|
local dll_tar=libbz2-${BZIP2_VER}-msys-${MSYS_VER}-dll-1.tar.gz
|
||||||
local dev_tar=libbz2-${BZIP2_VER}-msys-${BZIP2_MSYS_VER}-dev.tar.gz
|
local dev_tar=libbz2-${BZIP2_VER}-msys-${MSYS_VER}-dev.tar.gz
|
||||||
local base_url=http://downloads.sourceforge.net/project/mingw/MSYS%20bzip2/bzip2-${BZIP2_VER}
|
local base_url=http://downloads.sourceforge.net/project/mingw/MSYS%20bzip2/bzip2-${BZIP2_VER}
|
||||||
|
|
||||||
cd $SRC_DIR || exit 1
|
cd $SRC_DIR || exit 1
|
||||||
@ -368,6 +387,7 @@ install_iconv
|
|||||||
install_ogg
|
install_ogg
|
||||||
install_vorbis
|
install_vorbis
|
||||||
install_flac
|
install_flac
|
||||||
|
install_gettext
|
||||||
install_file
|
install_file
|
||||||
install_bzip2
|
install_bzip2
|
||||||
install_wxwidgets
|
install_wxwidgets
|
||||||
|
Loading…
Reference in New Issue
Block a user