Added rule for 0MQ.
This commit is contained in:
parent
3d8202f28c
commit
4e13aec0a1
46
rules/zeromq/default.bash
Normal file
46
rules/zeromq/default.bash
Normal file
@ -0,0 +1,46 @@
|
||||
version=\
|
||||
(
|
||||
"4.1.3"
|
||||
)
|
||||
|
||||
url=\
|
||||
(
|
||||
"http://download.zeromq.org/zeromq-$version.tar.gz"
|
||||
)
|
||||
|
||||
md5=\
|
||||
(
|
||||
"d0824317348cfb44b8692e19cc73dc3a"
|
||||
)
|
||||
|
||||
configure()
|
||||
{
|
||||
./configure \
|
||||
--prefix="${cfg_dir_toolchain_sysroot}/usr" \
|
||||
--target="$cfg_target_canonical" \
|
||||
--host="$cfg_target_canonical" \
|
||||
--build="$cfg_host_canonical" \
|
||||
--without-libsodium
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
$cmd_make
|
||||
}
|
||||
|
||||
host_install()
|
||||
{
|
||||
$cmd_make install
|
||||
}
|
||||
|
||||
target_install()
|
||||
{
|
||||
# Libs:
|
||||
for f in "$cfg_dir_toolchain_sysroot/usr/lib/"libzmq.*; 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
|
||||
}
|
Reference in New Issue
Block a user