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
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))