jow 1de539c66a sane-backends: update to 1.0.24 and fix configure
- bump to 1.0.24
	- get rid of shipped libtool
	- remove host include paths from configure macros
	- do not patch generated configure
	- refresh patches

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39460 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-04 15:32:37 +00:00

125 lines
3.0 KiB
Makefile

#
# Copyright (C) 2006-2014 OpenWrt.org
#
# 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
PKG_VERSION:=1.0.24
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://fossies.org/linux/misc \
https://alioth.debian.org/frs/download.php/3958
PKG_MD5SUM:=1ca68e536cd7c1852322822f5f6ac3a4
PKG_FIXUP:=autoreconf
PKG_REMOVE_FILES:=aclocal.m4
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/sane-backends/Default
TITLE:=Scanner Access Now Easy
URL:=http://www.sane-project.org/
endef
define Package/sane-backends/Default/description
SANE (Scanner Access Now Easy) is a universal scanner interface.
endef
define Package/sane-backends
$(call Package/sane-backends/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+sane-libs
TITLE+= (backends)
endef
define Package/sane-backends/description
$(call Package/sane-backends/Default/description)
This package contains the SANE daemon.
endef
define Package/sane-libs
$(call Package/sane-backends/Default)
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libjpeg +libtiff +libusb-compat +libv4l +cups
TITLE+= (libraries)
endef
define Package/sane-libs/description
$(call Package/sane-backends/Default/description)
This package contains the SANE shared libraries.
endef
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
TARGET_LDFLAGS += \
-Wl,-rpath-link $(STAGING_DIR)/usr/lib \
-Wl,-rpath-link $(PKG_BUILD_DIR)/backend/.libs
CONFIGURE_ARGS+= \
--enable-shared \
--enable-static \
--disable-translations \
--disable-latex \
--without-gphoto2 \
--disable-debug \
--without-snmp
define Build/Configure
mkdir -p $(PKG_BUILD_DIR)/backend/.libs
$(Build/Configure/Default)
endef
define Package/sane-backends/conffiles
/etc/sane.d/saned.conf
endef
define Package/sane-backends/install
$(INSTALL_DIR) $(1)/etc/sane.d
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
endef
define Package/sane-libs/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.so.* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/usr/lib/sane
$(CP) $(PKG_INSTALL_DIR)/usr/lib/sane/libsane-*.so.* $(1)/usr/lib/sane/
endef
define Package/sane-frontends/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/sane $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.{a,so*} $(1)/usr/lib/
endef
$(eval $(call BuildPackage,sane-backends))
$(eval $(call BuildPackage,sane-libs))
$(eval $(call BuildPackage,sane-frontends))