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

54 lines
895 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
"14.4.1"
)
url=\
(
"http://downloads.sourceforge.net/project/sox/sox/14.4.1/sox-$version.tar.gz"
)
md5=\
(
"670307f40763490a2bc0d1f322071e7a"
)
requires=(
"alsa-lib/default"
"alsa-utils/default"
"flac/default"
)
configure()
{
./configure \
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical"
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_target_strip -v "$cfg_dir_toolchain_sysroot/usr/bin/"*-sox* -o "$cfg_dir_rootfs/usr/bin/sox"
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libsox*.so*; do
if [ -L "$f" ]; then
$cmd_cp "$f" "$cfg_dir_rootfs/usr/lib"
else
$cmd_target_strip -v "$f" -o "$cfg_dir_rootfs/usr/lib/$(basename "$f")"
fi
done
}