Browse Source

Merge pull request #14046 from neheb/libusb-c

libusb-compat: fix libusb-config
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
5f9faebec4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      libs/libusb-compat/Makefile

+ 8
- 3
libs/libusb-compat/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libusb-compat PKG_NAME:=libusb-compat
PKG_VERSION:=0.1.7 PKG_VERSION:=0.1.7
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://github.com/libusb/libusb-compat-0.1/releases/download/v$(PKG_VERSION) PKG_SOURCE_URL:=https://github.com/libusb/libusb-compat-0.1/releases/download/v$(PKG_VERSION)
@ -41,8 +41,13 @@ endef
TARGET_CFLAGS += $(FPIC) TARGET_CFLAGS += $(FPIC)
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(2)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(2)/usr/bin/
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(1)/usr/bin/
$(SED) \
's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
$(1)/usr/bin/libusb-config
$(INSTALL_DIR) $(2)/bin
$(LN) ../../usr/bin/libusb-config $(2)/bin/
$(INSTALL_DIR) $(1)/usr/include $(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/usb.h $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/include/usb.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib


Loading…
Cancel
Save