diff --git a/libs/libusb/Makefile b/libs/libusb/Makefile index 2f4e229a5..690398311 100644 --- a/libs/libusb/Makefile +++ b/libs/libusb/Makefile @@ -25,7 +25,14 @@ define Package/libusb CATEGORY:=Libraries TITLE:=A library for accessing Linux USB devices URL:=http://libusb.sourceforge.net/ - DEPENDS:=+libstdcpp +endef + +define Package/libusbpp + SECTION:=libs + CATEGORY:=Libraries + TITLE:=A C++ library for accessing Linux USB devices + URL:=http://libusb.sourceforge.net/ + DEPENDS:=+libstdcpp +libusb endef define Build/Configure @@ -65,8 +72,18 @@ endef define Package/libusb/install $(INSTALL_DIR) $(1)/usr/lib $(CP) \ - $(PKG_INSTALL_DIR)/usr/lib/libusb*.so* \ + $(PKG_INSTALL_DIR)/usr/lib/libusb.so* \ + $(PKG_INSTALL_DIR)/usr/lib/libusb-*.so* \ + $(1)/usr/lib/ +endef + +define Package/libusbpp/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libusbpp.so* \ + $(PKG_INSTALL_DIR)/usr/lib/libusbpp-*.so* \ $(1)/usr/lib/ endef $(eval $(call BuildPackage,libusb)) +$(eval $(call BuildPackage,libusbpp))