This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/ffmpeg/default.bash

57 lines
1.0 KiB
Bash
Raw Permalink Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-03-12 15:16:10 +00:00
"2.6"
2013-07-13 17:19:22 +01:00
)
url=\
(
"http://ffmpeg.org/releases/ffmpeg-$version.tar.bz2"
)
md5=\
(
2015-03-12 15:16:10 +00:00
'5bf6097833a3fea6a9e51b0a456c6922'
2013-07-13 17:19:22 +01:00
)
configure()
{
mkdir -p ../build
2013-07-13 17:19:22 +01:00
./configure \
--sysroot="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_rootfs/usr" \
--incdir="$cfg_dir_toolchain_sysroot/usr/include" \
--enable-cross-compile \
2013-07-13 17:19:22 +01:00
--cross-prefix="$cfg_target_canonical-" \
--libdir="$cfg_dir_builds/ffmpeg/build" \
2013-07-13 17:19:22 +01:00
--target-os="linux" \
--enable-shared \
--disable-static \
--enable-pic \
2013-07-13 17:19:22 +01:00
--enable-gpl \
--arch=$cfg_architecture
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make \
LIBDIR="$cfg_dir_toolchain_sysroot/usr/lib" \
install-headers
$cmd_make \
install-libs
}
2013-07-13 17:19:22 +01:00
target_install()
{
$cmd_make \
install-libs
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_rootfs/usr/lib/"
$cmd_cp -r "$cfg_dir_builds/ffmpeg/build/"* "$cfg_dir_toolchain_sysroot/usr/lib/"
2013-07-13 17:19:22 +01:00
}