2018-07-16 20:45:36 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
2023-02-27 11:17:46 +00:00
|
|
|
# Copyright (C) 2016-present Team LibreELEC (https://libreelec.tv)
|
2011-01-09 18:44:38 +01:00
|
|
|
|
2010-11-14 12:39:19 +01:00
|
|
|
PKG_NAME="libusb-compat"
|
2023-02-27 11:17:46 +00:00
|
|
|
PKG_VERSION="0.1.8"
|
2023-10-14 09:30:46 +02:00
|
|
|
PKG_SHA256="b692dcf674c070c8c0bee3c8230ce4ee5903f926d77dc8b968a4dd1b70f9b05c"
|
2010-11-14 12:39:19 +01:00
|
|
|
PKG_LICENSE="GPL"
|
2020-12-31 11:26:18 +00:00
|
|
|
PKG_SITE="https://github.com/libusb/libusb-compat-0.1"
|
|
|
|
|
PKG_URL="https://github.com/libusb/libusb-compat-0.1/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
|
2014-01-30 14:31:09 +01:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libusb"
|
2018-10-22 15:06:12 +02:00
|
|
|
PKG_LONGDESC="The libusb project's aim is to create a Library for use by user level applications to USB devices."
|
2023-02-27 11:17:46 +00:00
|
|
|
PKG_TOOLCHAIN="autotools"
|
2013-12-25 17:33:51 +01:00
|
|
|
|
2022-01-07 14:16:31 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--disable-log \
|
|
|
|
|
--disable-debug-log \
|
|
|
|
|
--disable-examples-build"
|
|
|
|
|
|
|
|
|
|
post_configure_target() {
|
|
|
|
|
libtool_remove_rpath libtool
|
|
|
|
|
}
|
2013-12-25 17:33:51 +01:00
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2021-01-19 19:34:16 +00:00
|
|
|
rm -rf ${INSTALL}/usr/bin
|
|
|
|
|
sed -e "s:\(['= ]\)/usr:\\1${SYSROOT_PREFIX}/usr:g" -i ${SYSROOT_PREFIX}/usr/bin/libusb-config
|
2013-12-25 17:33:51 +01:00
|
|
|
}
|