source: branches/packages_10.03.2/utils/sane-backends/Makefile @ 30153

Last change on this file since 30153 was 30153, checked in by jow, 4 years ago

[packages_10.03.2] sane-backends: merge r27239, r27634, r29278

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