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

41 lines
629 B
Bash

version=\
(
'8.21'
)
url=\
(
"http://downloads.sourceforge.net/project/pcre/pcre/$version/pcre-$version.tar.bz2"
)
md5=\
(
'0a7b592bea64b7aa7f4011fc7171a730'
)
configure()
{
"../pcre-$version/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-strip
}
target_install()
{
for l in pcre pcrecpp pcreposix; do
cp -a "$cfg_dir_toolchain_sysroot/usr/lib"/lib$l.so* "$cfg_dir_rootfs"/lib
done
}