PKG_NAME:=sane-backends
PKG_VERSION:=1.0.17
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
include $(INCLUDE_DIR)/package.mk
+define Package/sane-backends/Default
+ TITLE:=Scanner Access Now Easy
+ DESCRIPTION:=\
+ SANE (Scanner Access Now Easy) is a universal scanner interface.
+ URL:=http://www.sane-project.org/
+endef
+
define Package/sane-backends
+ $(call Package/sane-backends/Default)
SECTION:=utils
CATEGORY:=Utilities
- TITLE:=Scanner Access Now Easy (backends)
- DESCRIPTION:=\
- SANE (Scanner Access Now Easy) is a universal scanner interface.
- URL:=http://www.sane-project.org
+ DEPENDS:=+sane-libs
+ TITLE+= (backends)
endef
define Package/sane-libs
- SECTION:=libs
- CATEGORY:=Libraries
- TITLE:=Scanner Access Now Easy (libraries)
- DESCRIPTION:=\
- SANE (Scanner Access Now Easy) is a universal scanner interface.
- URL:=http://www.sane-project.org
+ $(call Package/sane-backends/Default)
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE+= (libraries)
endef
-define Package/sane-backends/conffiles
-/etc/sane.d/saned.conf
-endef
-
define Build/Configure
$(call Build/Configure/Default, \
--disable-ipv6 \
all install
endef
+define Package/sane-backends/conffiles
+/etc/sane.d/saned.conf
+endef
+
define Package/sane-backends/install
install -d -m0755 $(1)/etc/sane.d
$(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
endef
define Package/sane-libs/install
- install -d -m0755 $(1)/usr/lib/
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
+ install -d -m0755 $(1)/usr/lib
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.so.* $(1)/usr/lib/
+ install -d -m0755 $(1)/usr/lib/sane
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/sane/libsane-*.so.* $(1)/usr/lib/sane/
endef
$(eval $(call BuildPackage,sane-backends))