libusb: split off libusbpp into a separate package
authorFelix Fietkau <nbd@openwrt.org>
Thu, 14 Jun 2012 17:04:57 +0000 (17:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 14 Jun 2012 17:04:57 +0000 (17:04 +0000)
SVN-Revision: 32357

libs/libusb/Makefile

index 2f4e229a5d178962a6ddfc10ac44647eb92778c2..6903983110e56a071046db8030deba231c8c79e5 100644 (file)
@@ -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))