[PATCH] No LaTeX documentation for sane-backend package
[openwrt/svn-archive/archive.git] / utils / sane-backends / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=sane-backends
11 PKG_VERSION:=1.0.20
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
16 PKG_MD5SUM:=a0cfdfdebca2feb4f2ba5d3418b15a42
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/sane-backends/Default
24 TITLE:=Scanner Access Now Easy
25 URL:=http://www.sane-project.org/
26 endef
27
28 define Package/sane-backends/Default/description
29 SANE (Scanner Access Now Easy) is a universal scanner interface.
30 endef
31
32 define Package/sane-backends
33 $(call Package/sane-backends/Default)
34 SECTION:=utils
35 CATEGORY:=Utilities
36 DEPENDS:=+sane-libs +libtiff
37 TITLE+= (backends)
38 endef
39
40 define Package/sane-backends/description
41 $(call Package/sane-backends/Default/description)
42 This package contains the SANE daemon.
43 endef
44
45 define Package/sane-libs
46 $(call Package/sane-backends/Default)
47 SECTION:=libs
48 CATEGORY:=Libraries
49 DEPENDS:=+libjpeg +libpthread +libusb
50 TITLE+= (libraries)
51 endef
52
53 define Package/sane-libs/description
54 $(call Package/sane-backends/Default/description)
55 This package contains the SANE shared libraries.
56 endef
57
58 define Package/sane-frontends
59 $(call Package/sane-backends/Default)
60 SECTION:=utils
61 CATEGORY:=Utilities
62 DEPENDS:=+sane-backends
63 TITLE+= (frontends)
64 endef
65
66 define Package/sane-frontends/description
67 $(call Package/sane-backends/Default/description)
68 This package contains the SANE frontends.
69 endef
70
71 TARGET_LDFLAGS += \
72 -Wl,-rpath-link $(STAGING_DIR)/usr/lib \
73 -Wl,-rpath-link $(PKG_BUILD_DIR)/backend/.libs
74
75 CONFIGURE_ARGS+= \
76 --enable-shared \
77 --enable-static \
78 --disable-translations \
79 --disable-latex \
80 --without-gphoto2 \
81 --disable-debug \
82
83 define Build/Configure
84 mkdir -p $(PKG_BUILD_DIR)/backend/.libs
85 $(Build/Configure/Default)
86 endef
87
88 define Package/sane-backends/conffiles
89 /etc/sane.d/saned.conf
90 endef
91
92 define Package/sane-backends/install
93 $(INSTALL_DIR) $(1)/etc/sane.d
94 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(1)/etc/sane.d/
95 $(INSTALL_DIR) $(1)/usr/sbin
96 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
97 endef
98
99 define Package/sane-libs/install
100 $(INSTALL_DIR) $(1)/usr/lib
101 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.so.* $(1)/usr/lib/
102 $(INSTALL_DIR) $(1)/usr/lib/sane
103 $(CP) $(PKG_INSTALL_DIR)/usr/lib/sane/libsane-*.so.* $(1)/usr/lib/sane/
104 endef
105
106 define Package/sane-frontends/install
107 $(INSTALL_DIR) $(1)/usr/bin
108 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
109 endef
110
111 define Build/InstallDev
112 $(INSTALL_DIR) $(1)/usr/include
113 $(CP) $(PKG_INSTALL_DIR)/usr/include/sane $(1)/usr/include/
114 $(INSTALL_DIR) $(1)/usr/lib
115 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsane.{a,so*} $(1)/usr/lib/
116 endef
117
118 $(eval $(call BuildPackage,sane-backends))
119 $(eval $(call BuildPackage,sane-libs))
120 $(eval $(call BuildPackage,sane-frontends))