libusb: make InstallDev explicit
authorRosen Penev <rosenp@gmail.com>
Mon, 4 Jan 2021 00:27:10 +0000 (16:27 -0800)
committerPaul Spooren <mail@aparcar.org>
Sun, 17 Jan 2021 09:37:08 +0000 (23:37 -1000)
Helps to see what actually gets installed.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
package/libs/libusb/Makefile

index d8380ee67d6395470edc138b4c04405ba31a1c5c..e931536339815415f42309ff946d62b471dfbbfc 100644 (file)
@@ -46,12 +46,17 @@ CONFIGURE_ARGS += \
        --disable-log
 
 define Build/InstallDev
-       $(CP) $(PKG_INSTALL_DIR)/* $(1)/
+       $(INSTALL_DIR) $(1)/usr/include/libusb-1.0
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/libusb-1.0/libusb.h $(1)/usr/include/libusb-1.0/
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-1.0.* $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libusb-1.0.pc $(1)/usr/lib/pkgconfig/
 endef
 
 define Package/libusb-1.0/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-1.0.so.* $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,libusb-1.0))