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/packages/alsa-lib/default.bash

58 lines
1.0 KiB
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
"1.0.26"
)
url=\
(
"http://alsa.cybermirror.org/lib/alsa-lib-${version}.tar.bz2"
)
md5=\
(
"2dfa35d28471d721e592b616beedf965"
)
requires=\
(
'ncurses/default'
)
configure()
{
CC="$cmd_target_cc" ./configure \
--prefix="/usr" \
--with-configdir="/usr/share/alsa" \
--build="$cfg_host_canonical" \
--host="$cfg_target_canonical" \
--disable-alsatest \
--disable-python \
--with-debug
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make DESTDIR="$cfg_dir_toolchain_sysroot" install
sed "s%/usr/lib%$cfg_dir_toolchain_sysroot/usr/lib%g" "$cfg_dir_toolchain_sysroot/usr/lib/libasound.la" -i
}
target_install()
{
cp -av \
"$cfg_dir_toolchain_sysroot/usr/lib/alsa-lib" \
"$cfg_dir_rootfs/usr/lib" &&
cp -av \
"$cfg_dir_toolchain_sysroot/usr/lib/libasound.so"* \
"$cfg_dir_rootfs/usr/lib" &&
cp -av \
"$cfg_dir_toolchain_sysroot/usr/share/alsa" \
"$cfg_dir_rootfs/usr/share/"
}