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/libpng/default.bash
2016-06-20 11:21:26 +01:00

46 lines
785 B
Bash

version=\
(
'1.6.23'
)
url=\
(
"http://downloads.sourceforge.net/project/libpng/libpng16/$version/libpng-$version.tar.xz"
)
md5=\
(
'9b320a05ed4db1f3f0865c8a951fd9aa '
)
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()
{
# Libs:
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libpng*.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
}