2006-08-08 09:30:11 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sane-backends
|
|
|
|
PKG_VERSION:=1.0.17
|
2006-11-20 17:33:46 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-08-08 09:30:11 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
|
|
|
|
PKG_MD5SUM:=b51c10da8a81a04e1bae88c9e6556df2
|
2006-08-08 09:30:11 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-11-20 17:33:46 +00:00
|
|
|
define Package/sane-backends/Default
|
|
|
|
TITLE:=Scanner Access Now Easy
|
|
|
|
URL:=http://www.sane-project.org/
|
|
|
|
endef
|
|
|
|
|
2006-08-08 09:30:11 +00:00
|
|
|
define Package/sane-backends
|
2006-11-20 17:33:46 +00:00
|
|
|
$(call Package/sane-backends/Default)
|
2006-08-08 09:30:11 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2006-11-20 17:33:46 +00:00
|
|
|
DEPENDS:=+sane-libs
|
|
|
|
TITLE+= (backends)
|
2006-08-08 09:30:11 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/sane-backends/description
|
|
|
|
SANE (Scanner Access Now Easy) is a universal scanner interface.
|
|
|
|
endef
|
|
|
|
|
2006-11-09 13:17:02 +00:00
|
|
|
define Package/sane-libs
|
2006-11-20 17:33:46 +00:00
|
|
|
$(call Package/sane-backends/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= (libraries)
|
2006-11-09 13:17:02 +00:00
|
|
|
endef
|
2007-10-14 04:32:56 +00:00
|
|
|
|
|
|
|
define Package/sane-libs/description
|
|
|
|
SANE (Scanner Access Now Easy) is a universal scanner interface.
|
|
|
|
endef
|
2006-11-09 13:17:02 +00:00
|
|
|
|
2006-08-08 09:30:11 +00:00
|
|
|
define Build/Configure
|
2006-10-30 13:51:50 +00:00
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-ipv6 \
|
|
|
|
--disable-translations \
|
|
|
|
--without-gphoto2 \
|
|
|
|
--disable-debug \
|
|
|
|
)
|
2006-08-08 09:30:11 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2006-10-30 13:51:50 +00:00
|
|
|
all install
|
2006-08-08 09:30:11 +00:00
|
|
|
endef
|
|
|
|
|
2006-11-20 17:33:46 +00:00
|
|
|
define Package/sane-backends/conffiles
|
|
|
|
/etc/sane.d/saned.conf
|
|
|
|
endef
|
|
|
|
|
2006-08-08 09:30:11 +00:00
|
|
|
define Package/sane-backends/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/sane.d
|
2006-08-08 09:30:11 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2006-08-08 09:30:11 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/saned $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
2006-11-09 13:17:02 +00:00
|
|
|
define Package/sane-libs/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-11-20 17:33:46 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.so.* $(1)/usr/lib/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/sane
|
2006-11-20 17:33:46 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sane/libsane-*.so.* $(1)/usr/lib/sane/
|
2006-11-09 13:17:02 +00:00
|
|
|
endef
|
|
|
|
|
2006-08-08 09:30:11 +00:00
|
|
|
$(eval $(call BuildPackage,sane-backends))
|
2006-11-09 13:17:02 +00:00
|
|
|
$(eval $(call BuildPackage,sane-libs))
|