libgphoto2: fix dependencies, remove libusb-0.1 plugin
authorFelix Fietkau <nbd@openwrt.org>
Tue, 12 Jun 2012 01:57:13 +0000 (01:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 12 Jun 2012 01:57:13 +0000 (01:57 +0000)
SVN-Revision: 32261

libs/libgphoto2/Makefile

index 2ef80ce7ae0fc3b0a3dbdbac76b44631eadcbb94..cc45ece1373dd1bf7445668bd842ec9de410f797 100644 (file)
@@ -30,14 +30,14 @@ endef
 
 define Package/libgphoto2
   $(call Package/libgphoto2/Default)
-  DEPENDS:=+libusb +libexif +libjpeg +libpthread +libltdl $(ICONV_DEPENDS)
+  DEPENDS:=+libexif +libjpeg +libpthread +libltdl $(ICONV_DEPENDS)
   TITLE:=The basic library of the gphoto2 program.
   MENU:=1
 endef
 
 define Package/libgphoto2-drivers
   $(call Package/libgphoto2/Default)
-  DEPENDS:=libgphoto2
+  DEPENDS:=libgphoto2 +libusb-1.0 +libgd
   TITLE:=Gphoto2 drivers for various cameras
 endef
 
@@ -96,6 +96,7 @@ define Package/libgphoto2-drivers/install
        $(INSTALL_DIR) $(1)/usr/lib/
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgphoto2{,_port} $(1)/usr/lib/
        rm -rf $(1)/usr/lib/libgphoto2{,_port}/*/*.{,l}a
+       rm -f $(1)/usr/lib/libgphoto2_port/*/usb.so
 endef
 
 $(eval $(call BuildPackage,libgphoto2))