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/libav/default.bash

47 lines
739 B
Bash
Raw Normal View History

version=\
(
"10.1"
)
url=\
(
"http://libav.org/releases/libav-$version.tar.gz"
)
md5=\
(
99c123b9ba9c0ff8c6bfd67a635f99ac
)
configure()
{
$cmd_mkdir build
./configure \
--sysroot="$cfg_dir_toolchain_sysroot" \
--prefix="$cfg_dir_builds/libav/libav-$version/build/" \
--cross-prefix="$cfg_target_canonical-" \
--target-os="linux" \
--enable-memalign-hack \
--enable-shared \
--enable-pic \
--enable-gpl \
--arch=$cfg_architecture
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
$cmd_cp -r "build/"* "$cfg_dir_toolchain_sysroot/usr/"
}
target_install()
{
$cmd_cp -r "build/"* "$cfg_dir_rootfs/usr/"
}