2006-08-08 09:30:11 +00:00
|
|
|
#
|
2009-07-26 11:57:29 +00:00
|
|
|
# Copyright (C) 2006-2009 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
|
2009-08-10 23:33:14 +00:00
|
|
|
PKG_VERSION:=1.0.20
|
|
|
|
PKG_RELEASE:=1
|
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)/
|
2009-08-10 23:33:14 +00:00
|
|
|
PKG_MD5SUM:=a0cfdfdebca2feb4f2ba5d3418b15a42
|
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
|
2009-09-02 22:39:29 +00:00
|
|
|
DEPENDS:=+sane-libs +libtiff
|
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
|
2008-04-13 18:13:38 +00:00
|
|
|
DEPENDS:=+libjpeg +libpthread +libusb
|
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 \
|
|
|
|
--without-gphoto2 \
|
|
|
|
--disable-debug \
|
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
|
|
|
|
|
2009-08-10 23:33:14 +00:00
|
|
|
define Build/Compile
|
2006-08-08 09:30:11 +00:00
|
|
|
$(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
|
|
|
|
|
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))
|