2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
11 PKG_NAME:=sane-backends
14 PKG_MD5SUM:=b51c10da8a81a04e1bae88c9e6556df2
16 PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/sane-backends
28 TITLE:=Scanner Access Now Easy (backends)
29 DESCRIPTION:=SANE (Scanner Access Now Easy) is a universal scanner interface.
30 URL:=http://www.sane-project.org
33 define Package/sane-backends/conffiles
34 /etc/sane.d/saned.conf
37 define Build/Configure
38 $(call Build/Configure/Default,--enable-shared \
41 --disable-translations \
47 $(MAKE) -C $(PKG_BUILD_DIR)
48 mkdir -p $(PKG_INSTALL_DIR)
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
54 define Package/sane-backends/install
55 install -d -m0755 $(1)/etc/sane.d
56 $(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
57 install -d -m0755 $(1)/usr/sbin
58 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/saned $(1)/usr/sbin/
61 $(eval $(call BuildPackage,sane-backends))