libusb: split off libusbpp into a separate package

git-svn-id: svn://svn.openwrt.org/openwrt/packages@32357 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2012-06-14 17:04:57 +00:00
parent 34f552b714
commit 1037173cbc

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