add wxBase framework library
[openwrt/svn-archive/archive.git] / utils / sane-backends / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sane-backends
12 PKG_VERSION:=1.0.17
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
17 PKG_MD5SUM:=b51c10da8a81a04e1bae88c9e6556df2
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/sane-backends/Default
26 TITLE:=Scanner Access Now Easy
27 DESCRIPTION:=\
28 SANE (Scanner Access Now Easy) is a universal scanner interface.
29 URL:=http://www.sane-project.org/
30 endef
31
32 define Package/sane-backends
33 $(call Package/sane-backends/Default)
34 SECTION:=utils
35 CATEGORY:=Utilities
36 DEPENDS:=+sane-libs
37 TITLE+= (backends)
38 endef
39
40 define Package/sane-libs
41 $(call Package/sane-backends/Default)
42 SECTION:=libs
43 CATEGORY:=Libraries
44 TITLE+= (libraries)
45 endef
46
47 define Build/Configure
48 $(call Build/Configure/Default, \
49 --disable-ipv6 \
50 --disable-translations \
51 --without-gphoto2 \
52 --disable-debug \
53 )
54 endef
55
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR="$(PKG_INSTALL_DIR)" \
59 all install
60 endef
61
62 define Package/sane-backends/conffiles
63 /etc/sane.d/saned.conf
64 endef
65
66 define Package/sane-backends/install
67 $(INSTALL_DIR) $(1)/etc/sane.d
68 $(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
69 $(INSTALL_DIR) $(1)/usr/sbin
70 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/saned $(1)/usr/sbin/
71 endef
72
73 define Package/sane-libs/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.so.* $(1)/usr/lib/
76 $(INSTALL_DIR) $(1)/usr/lib/sane
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sane/libsane-*.so.* $(1)/usr/lib/sane/
78 endef
79
80 $(eval $(call BuildPackage,sane-backends))
81 $(eval $(call BuildPackage,sane-libs))