florian 5c856d90d2 Upgrade to sane-backends 1.0.19, fit its compilation as well
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10504 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-20 15:52:35 +00:00

94 lines
2.2 KiB
Makefile

#
# 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.19
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
PKG_MD5SUM:=8c0936272dcfd4e98c51512699f1c06f
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
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
$(call Package/sane-backends/Default)
SECTION:=utils
CATEGORY:=Utilities
DEPENDS:=+sane-libs
TITLE+= (backends)
endef
define Package/sane-backends/description
SANE (Scanner Access Now Easy) is a universal scanner interface.
endef
define Package/sane-libs
$(call Package/sane-backends/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE+= (libraries)
endef
define Package/sane-libs/description
SANE (Scanner Access Now Easy) is a universal scanner interface.
endef
define Build/Configure
$(call Build/Configure/Default, \
--disable-ipv6 \
--disable-translations \
--without-gphoto2 \
--disable-debug \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/sane-backends/conffiles
/etc/sane.d/saned.conf
endef
define Package/sane-backends/install
$(INSTALL_DIR) $(1)/etc/sane.d
$(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/saned $(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 Build/InstallDev
mkdir -p $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/sane $(1)/usr/include/
mkdir -p $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.{la,so*} $(1)/usr/lib/
endef
$(eval $(call BuildPackage,sane-backends))
$(eval $(call BuildPackage,sane-libs))