53 lines
955 B
Bash
53 lines
955 B
Bash
version=\
|
|
(
|
|
"2.6"
|
|
)
|
|
|
|
url=\
|
|
(
|
|
"http://ffmpeg.org/releases/ffmpeg-$version.tar.bz2"
|
|
)
|
|
|
|
md5=\
|
|
(
|
|
'5bf6097833a3fea6a9e51b0a456c6922'
|
|
)
|
|
|
|
configure()
|
|
{
|
|
$cmd_mkdir build
|
|
./configure \
|
|
--sysroot="$cfg_dir_toolchain_sysroot" \
|
|
--prefix="$cfg_dir_builds/ffmpeg/ffmpeg-$version/build/" \
|
|
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \
|
|
--enable-cross-compile \
|
|
--cross-prefix="$cfg_target_canonical-" \
|
|
--target-os="linux" \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--enable-pic \
|
|
--enable-gpl \
|
|
--arch=$cfg_architecture
|
|
}
|
|
|
|
build()
|
|
{
|
|
$cmd_make
|
|
}
|
|
|
|
host_install()
|
|
{
|
|
$cmd_make \
|
|
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
|
|
install-headers
|
|
$cmd_make install
|
|
$cmd_cp -r "build/"* "$cfg_dir_toolchain_sysroot/usr/"
|
|
}
|
|
|
|
target_install()
|
|
{
|
|
$cmd_make \
|
|
install-libs
|
|
$cmd_cp -r "build/"* "$cfg_dir_rootfs/usr/"
|
|
}
|