2006-08-08 09:30:11 +00:00
|
|
|
#
|
2012-06-03 17:37:56 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-08-08 09:30:11 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sane-backends
|
2012-12-05 17:30:59 +00:00
|
|
|
PKG_VERSION:=1.0.23
|
|
|
|
PKG_RELEASE:=1
|
2006-08-08 09:30:11 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2012-12-05 17:30:59 +00:00
|
|
|
PKG_SOURCE_URL:=http://fossies.org/linux/misc \
|
|
|
|
ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION) \
|
2011-07-17 09:45:40 +00:00
|
|
|
https://alioth.debian.org/frs/download.php/3503
|
2012-12-05 17:30:59 +00:00
|
|
|
PKG_MD5SUM:=e226a89c54173efea80e91e9a5eb6573
|
2006-08-08 09:30:11 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-08-08 09:30:11 +00:00
|
|
|
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
|
|
|
|
|
2008-04-13 18:13:38 +00:00
|
|
|
define Package/sane-backends/Default/description
|
|
|
|
SANE (Scanner Access Now Easy) is a universal scanner interface.
|
|
|
|
endef
|
|
|
|
|
2006-08-08 09:30:11 +00:00
|
|
|
define Package/sane-backends
|
2008-04-13 18:13:38 +00:00
|
|
|
$(call Package/sane-backends/Default)
|
2006-08-08 09:30:11 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2011-11-20 13:42:15 +00:00
|
|
|
DEPENDS:=+sane-libs
|
2006-11-20 17:33:46 +00:00
|
|
|
TITLE+= (backends)
|
2006-08-08 09:30:11 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/sane-backends/description
|
2008-04-13 18:13:38 +00:00
|
|
|
$(call Package/sane-backends/Default/description)
|
|
|
|
This package contains the SANE daemon.
|
2007-10-14 04:32:56 +00:00
|
|
|
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
|
2012-12-05 17:30:59 +00:00
|
|
|
DEPENDS:=+libjpeg +libtiff +libusb +libv4l +cups
|
2006-11-20 17:33:46 +00:00
|
|
|
TITLE+= (libraries)
|
2006-11-09 13:17:02 +00:00
|
|
|
endef
|
2007-10-14 04:32:56 +00:00
|
|
|
|
|
|
|
define Package/sane-libs/description
|
2008-04-13 18:13:38 +00:00
|
|
|
$(call Package/sane-backends/Default/description)
|
|
|
|
This package contains the SANE shared libraries.
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
2009-08-10 23:33:14 +00:00
|
|
|
|
2008-12-27 18:39:48 +00:00
|
|
|
define Package/sane-frontends
|
|
|
|
$(call Package/sane-backends/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+sane-backends
|
|
|
|
TITLE+= (frontends)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sane-frontends/description
|
|
|
|
$(call Package/sane-backends/Default/description)
|
|
|
|
This package contains the SANE frontends.
|
|
|
|
endef
|
2009-08-10 23:33:14 +00:00
|
|
|
|
2009-09-02 22:39:29 +00:00
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-Wl,-rpath-link $(STAGING_DIR)/usr/lib \
|
|
|
|
-Wl,-rpath-link $(PKG_BUILD_DIR)/backend/.libs
|
|
|
|
|
2008-04-13 18:13:38 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-translations \
|
2011-06-19 23:00:24 +00:00
|
|
|
--disable-latex \
|
2008-04-13 18:13:38 +00:00
|
|
|
--without-gphoto2 \
|
|
|
|
--disable-debug \
|
2011-07-17 09:45:40 +00:00
|
|
|
--without-snmp
|
2006-08-08 09:30:11 +00:00
|
|
|
|
2009-09-02 23:24:35 +00:00
|
|
|
define Build/Configure
|
|
|
|
mkdir -p $(PKG_BUILD_DIR)/backend/.libs
|
|
|
|
$(Build/Configure/Default)
|
|
|
|
endef
|
2006-08-08 09:30:11 +00:00
|
|
|
|
2006-11-20 17:33:46 +00:00
|
|
|
define Package/sane-backends/conffiles
|
|
|
|
/etc/sane.d/saned.conf
|
|
|
|
endef
|
|
|
|
|
2008-12-27 18:39:48 +00:00
|
|
|
define Package/sane-backends/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/sane.d
|
2009-08-10 23:33:14 +00:00
|
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2008-12-27 18:39:48 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
2006-08-08 09:30:11 +00:00
|
|
|
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
|
|
|
|
|
2008-12-27 18:39:48 +00:00
|
|
|
define Package/sane-frontends/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
2008-01-03 17:27:52 +00:00
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2008-01-03 17:27:52 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/sane $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-04-13 18:13:38 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.{a,so*} $(1)/usr/lib/
|
2008-01-03 17:27:52 +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))
|
2008-12-27 18:39:48 +00:00
|
|
|
$(eval $(call BuildPackage,sane-frontends))
|