From 1037173cbcacd590badb3594d5e705408c0a5fbf Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 14 Jun 2012 17:04:57 +0000 Subject: [PATCH] libusb: split off libusbpp into a separate package git-svn-id: svn://svn.openwrt.org/openwrt/packages@32357 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libusb/Makefile | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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))