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/mcclibusb/default.bash
2015-12-16 17:44:23 +00:00

57 lines
930 B
Bash

version=\
(
'1.09'
)
url=\
(
"ftp://lx10.tx.ncsu.edu/pub/Linux/drivers/USB/MCCLIBUSB.$version.tgz"
)
md5=\
(
'd3d629e1714e0a1482a3ca6fef0ab74c'
)
maintainer=\
(
'Ricardo Martins <rasm@oceanscan-mst.com>'
)
requires=\
(
'libusb/default'
'hidapi/default'
)
build()
{
$cmd_make CC="$cmd_target_cc" -C ../mcc-libusb
}
host_install()
{
cd "../mcc-libusb" &&
$cmd_mkdir \
"$cfg_dir_toolchain_sysroot/usr/lib" \
"$cfg_dir_toolchain_sysroot/usr/include/mccusb" &&
$cmd_cp \
libmccusb.so libmccusb.a \
"$cfg_dir_toolchain_sysroot/usr/lib" &&
$cmd_cp \
pmd.h usb-1608G.h \
"$cfg_dir_toolchain_sysroot/usr/include/mccusb"
}
target_install()
{
cd "../mcc-libusb" &&
$cmd_cp \
"$cfg_dir_toolchain_sysroot/usr/lib/libmccusb"*.so* \
"$cfg_dir_rootfs/lib" &&
$cmd_target_strip "$cfg_dir_rootfs/lib/libmccusb"*.so*
}