summaryrefslogtreecommitdiff
path: root/package/sane-backends/Makefile
blob: 5d54f26f9256f8273870eb184fc5e2c41481bd75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		sane-backends
PKG_VERSION:=		1.0.22
PKG_RELEASE:=		3
PKG_MD5SUM:=		fadf56a60f4776bfb24491f66b617cf5
PKG_DESCR:=		scanner access now easy
PKG_SECTION:=		misc
PKG_DEPENDS:=		libpthread
PKG_BUILDDEP:=		libpthread libusb libusb-compat
PKG_URL:=		http://www.sane-project.org/
PKG_SITES:=		ftp://ftp2.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz

PKG_SUBPKGS:=		SANE_BACKEND SANE_BACKEND_NET SANE_BACKEND_ABATON SANE_BACKEND_AGFAFOCUS
PKG_SUBPKGS+=		SANE_BACKEND_APPLE SANE_BACKEND_ARTEC_EPLUS48U SANE_BACKEND_ARTEC SANE_BACKEND_AS6E
PKG_SUBPKGS+=		SANE_BACKEND_AVISION SANE_BACKEND_BH SANE_BACKEND_CANON630U SANE_BACKEND_CANON
PKG_SUBPKGS+=		SANE_BACKEND_COOLSCAN2 SANE_BACKEND_COOLSCAN SANE_BACKEND_DC25 SANE_BACKEND_DMC
PKG_SUBPKGS+=		SANE_BACKEND_EPSON SANE_BACKEND_FUJITSU SANE_BACKEND_GENESYS SANE_BACKEND_GT68XX
PKG_SUBPKGS+=		SANE_BACKEND_HP3500 SANE_BACKEND_HP4200 SANE_BACKEND_HP5400 SANE_BACKEND_HP
PKG_SUBPKGS+=		SANE_BACKEND_IBM SANE_BACKEND_LEO SANE_BACKEND_LEXMARK SANE_BACKEND_MA1509
PKG_SUBPKGS+=		SANE_BACKEND_MATSUSHITA SANE_BACKEND_MICROTEK2 SANE_BACKEND_MICROTEK
PKG_SUBPKGS+=		SANE_BACKEND_MUSTEK SANE_BACKEND_MUSTEK_USB SANE_BACKEND_MUSTEK_USB2
PKG_SUBPKGS+=		SANE_BACKEND_NEC SANE_BACKEND_NIASH SANE_BACKEND_PIE SANE_BACKEND_PIXMA
PKG_SUBPKGS+=		SANE_BACKEND_PLUSTEK_PP SANE_BACKEND_PLUSTEK SANE_BACKEND_RICOH
PKG_SUBPKGS+=		SANE_BACKEND_S9036 SANE_BACKEND_SCEPTRE SANE_BACKEND_SHARP SANE_BACKEND_SM3600
PKG_SUBPKGS+=		SANE_BACKEND_SM3840 SANE_BACKEND_SNAPSCAN SANE_BACKEND_SP15C SANE_BACKEND_ST400
PKG_SUBPKGS+=		SANE_BACKEND_STV680 SANE_BACKEND_TAMARACK SANE_BACKEND_TECO1 SANE_BACKEND_TECO2
PKG_SUBPKGS+=		SANE_BACKEND_TECO3 SANE_BACKEND_TEST SANE_BACKEND_U12 SANE_BACKEND_UMAX1220U
PKG_SUBPKGS+=		SANE_BACKEND_UMAX_PP SANE_BACKEND_UMAX

PKGSN_SANE_BACKEND_NET:=	sane-backend
PKGSN_SANE_BACKEND_ABATON:=	sane-backend
PKGSN_SANE_BACKEND_AGFAFOCUS:=	sane-backend
PKGSN_SANE_BACKEND_APPLE:=	sane-backend
PKGSN_SANE_BACKEND_ARTEC_EPLUS48U:=	sane-backend
PKGSN_SANE_BACKEND_ARTEC:=	sane-backend
PKGSN_SANE_BACKEND_AS6E:=	sane-backend
PKGSN_SANE_BACKEND_AVISION:=	sane-backend
PKGSN_SANE_BACKEND_BH:=		sane-backend
PKGSN_SANE_BACKEND_CANON630U:=	sane-backend
PKGSN_SANE_BACKEND_CANON:=	sane-backend
PKGSN_SANE_BACKEND_COOLSCAN:=	sane-backend
PKGSN_SANE_BACKEND_COOLSCAN2:=	sane-backend
PKGSN_SANE_BACKEND_DC25:=	sane-backend
PKGSN_SANE_BACKEND_DMC:=	sane-backend
PKGSN_SANE_BACKEND_EPSON:=	sane-backend
PKGSN_SANE_BACKEND_FUJITSU:=	sane-backend
PKGSN_SANE_BACKEND_GENESYS:=	sane-backend
PKGSN_SANE_BACKEND_GT68XX:=	sane-backend
PKGSN_SANE_BACKEND_HP3500:=	sane-backend
PKGSN_SANE_BACKEND_HP4200:=	sane-backend
PKGSN_SANE_BACKEND_HP5400:=	sane-backend
PKGSN_SANE_BACKEND_HP:=		sane-backend
PKGSN_SANE_BACKEND_IBM:=	sane-backend
PKGSN_SANE_BACKEND_LEO:=	sane-backend
PKGSN_SANE_BACKEND_LEXMARK:=	sane-backend
PKGSN_SANE_BACKEND_MA1509:=	sane-backend
PKGSN_SANE_BACKEND_MATSUSHITA:=	sane-backend
PKGSN_SANE_BACKEND_MICROTEK2:=	sane-backend
PKGSN_SANE_BACKEND_MICROTEK:=	sane-backend
PKGSN_SANE_BACKEND_MUSTEK:=	sane-backend
PKGSN_SANE_BACKEND_MUSTEK_USB:=	sane-backend
PKGSN_SANE_BACKEND_MUSTEK_USB2:=sane-backend
PKGSN_SANE_BACKEND_NEC:=	sane-backend
PKGSN_SANE_BACKEND_NIASH:=	sane-backend
PKGSN_SANE_BACKEND_PIE:=	sane-backend
PKGSN_SANE_BACKEND_PIXMA:=	sane-backend
PKGSN_SANE_BACKEND_PLUSTEK_PP:=	sane-backend
PKGSN_SANE_BACKEND_PLUSTEK:=	sane-backend
PKGSN_SANE_BACKEND_RICOH:=	sane-backend
PKGSN_SANE_BACKEND_S9036:=	sane-backend
PKGSN_SANE_BACKEND_SCEPTRE:=	sane-backend
PKGSN_SANE_BACKEND_SHARP:=	sane-backend
PKGSN_SANE_BACKEND_SM3600:=	sane-backend
PKGSN_SANE_BACKEND_SM3840:=	sane-backend
PKGSN_SANE_BACKEND_SNAPSCAN:=	sane-backend
PKGSN_SANE_BACKEND_SP15C:=	sane-backend
PKGSN_SANE_BACKEND_ST400:=	sane-backend
PKGSN_SANE_BACKEND_STV680:=	sane-backend
PKGSN_SANE_BACKEND_TAMARACK:=	sane-backend
PKGSN_SANE_BACKEND_TECO1:=	sane-backend
PKGSN_SANE_BACKEND_TECO2:=	sane-backend
PKGSN_SANE_BACKEND_TECO3:=	sane-backend
PKGSN_SANE_BACKEND_TEST:=	sane-backend 
PKGSN_SANE_BACKEND_U12:=	sane-backend 
PKGSN_SANE_BACKEND_UMAX1220U:=	sane-backend
PKGSN_SANE_BACKEND_UMAX_PP:=	sane-backend
PKGSN_SANE_BACKEND_UMAX:=	sane-backend

include ${TOPDIR}/mk/package.mk

define PKG_mod_template

INSTALL_MODS_$${ADK_PACKAGE_${1}}+=    ${2}-install

${2}-install:
ifneq (${3},n)
	${INSTALL_DIR} $$(IDIR_$(1))/etc/sane.d
	${CP} $(WRKINST)/etc/sane.d/$(2).conf $$(IDIR_$(1))/etc/sane.d
endif
	${INSTALL_DIR} $$(IDIR_$(1))/usr/lib/sane
	${CP} $(WRKINST)/usr/lib/sane/libsane-$(2).so* $$(IDIR_$(1))/usr/lib/sane

endef

$(eval $(call PKG_template,SANE_BACKEND,sane-backend,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_NET,sane-backend-net,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_ABATON,sane-backend-abaton,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_AGFAFOCUS,sane-backend-agfafocus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_APPLE,sane-backend-apple,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_ARTEC_EPLUS48U,sane-backend-artec-eplus48u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_ARTEC,sane-backend-artec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_AS6E,sane-backend-as6e,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_AVISION,sane-backend-avision,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_BH,sane-backend-bh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_CANON630U,sane-backend-canon630u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_CANON,sane-backend-canon,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_COOLSCAN2,sane-backend-coolscan2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_COOLSCAN,sane-backend-coolscan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_DC25,sane-backend-dc25,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_DMC,sane-backend-dmc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_EPSON,sane-backend-epson,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_FUJITSU,sane-backend-fujitsu,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_GENESYS,sane-backend-genesys,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_GT68XX,sane-backend-gt68xx,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_HP3500,sane-backend-hp3500,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_HP4200,sane-backend-hp4200,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_HP5400,sane-backend-hp5400,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_HP,sane-backend-hp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_IBM,sane-backend-ibm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_LEO,sane-backend-leo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_LEXMARK,sane-backend-lexmark,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_MA1509,sane-backend-ma1509,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_MATSUSHITA,sane-backend-matsushita,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_MICROTEK2,sane-backend-microtek2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_MICROTEK,sane-backend-microtek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_MUSTEK,sane-backend-mustek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_MUSTEK_USB,sane-backend-mustek-usb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_NEC,sane-backend-nec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_NIASH,sane-backend-niash,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_PIE,sane-backend-pie,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_PIXMA,sane-backend-pixma,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_PLUSTEK_PP,sane-backend-plustek-pp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_PLUSTEK,sane-backend-plustek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_RICOH,sane-backend-ricoh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_S9036,sane-backend-s9036,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_SCEPTRE,sane-backend-sceptre,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_SHARP,sane-backend-sharp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_SM3600,sane-backend-sm3600,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_SM3840,sane-backend-sm3840,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_SNAPSCAN,sane-backend-snapscan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_SP15C,sane-backend-sp15c,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_ST400,sane-backend-st400,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_STV680,sane-backend-stv680,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_TAMARACK,sane-backend-tamarack,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_TECO1,sane-backend-teco1,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_TECO2,sane-backend-teco2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_TECO3,sane-backend-teco3,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_TEST,sane-backend-test,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_U12,sane-backend-u12,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_UMAX1220U,sane-backend-umax1220u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_UMAX_PP,sane-backend-umax-pp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,SANE_BACKEND_UMAX,sane-backend-umax,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

$(eval $(call PKG_mod_template,SANE_BACKEND_NET,net))
$(eval $(call PKG_mod_template,SANE_BACKEND_ABATON,abaton))
$(eval $(call PKG_mod_template,SANE_BACKEND_AGFAFOCUS,agfafocus))
$(eval $(call PKG_mod_template,SANE_BACKEND_APPLE,apple))
$(eval $(call PKG_mod_template,SANE_BACKEND_ARTEC_EPLUS48U,artec_eplus48u))
$(eval $(call PKG_mod_template,SANE_BACKEND_ARTEC,artec))
$(eval $(call PKG_mod_template,SANE_BACKEND_AS6E,as6e,n))
$(eval $(call PKG_mod_template,SANE_BACKEND_AVISION,avision))
$(eval $(call PKG_mod_template,SANE_BACKEND_BH,bh))
$(eval $(call PKG_mod_template,SANE_BACKEND_CANON630U,canon630u))
$(eval $(call PKG_mod_template,SANE_BACKEND_CANON,canon))
$(eval $(call PKG_mod_template,SANE_BACKEND_COOLSCAN2,coolscan2))
$(eval $(call PKG_mod_template,SANE_BACKEND_COOLSCAN,coolscan))
$(eval $(call PKG_mod_template,SANE_BACKEND_DC25,dc25))
$(eval $(call PKG_mod_template,SANE_BACKEND_DMC,dmc))
$(eval $(call PKG_mod_template,SANE_BACKEND_EPSON,epson))
$(eval $(call PKG_mod_template,SANE_BACKEND_FUJITSU,fujitsu))
$(eval $(call PKG_mod_template,SANE_BACKEND_GENESYS,genesys))
$(eval $(call PKG_mod_template,SANE_BACKEND_GT68XX,gt68xx))
$(eval $(call PKG_mod_template,SANE_BACKEND_HP3500,hp3500,n))
$(eval $(call PKG_mod_template,SANE_BACKEND_HP4200,hp4200))
$(eval $(call PKG_mod_template,SANE_BACKEND_HP5400,hp5400))
$(eval $(call PKG_mod_template,SANE_BACKEND_HP,hp))
$(eval $(call PKG_mod_template,SANE_BACKEND_IBM,ibm))
$(eval $(call PKG_mod_template,SANE_BACKEND_LEO,leo))
$(eval $(call PKG_mod_template,SANE_BACKEND_LEXMARK,lexmark))
$(eval $(call PKG_mod_template,SANE_BACKEND_MA1509,ma1509))
$(eval $(call PKG_mod_template,SANE_BACKEND_MATSUSHITA,matsushita))
$(eval $(call PKG_mod_template,SANE_BACKEND_MICROTEK2,microtek2))
$(eval $(call PKG_mod_template,SANE_BACKEND_MICROTEK,microtek))
$(eval $(call PKG_mod_template,SANE_BACKEND_MUSTEK,mustek))
$(eval $(call PKG_mod_template,SANE_BACKEND_MUSTEK_USB,mustek_usb))
$(eval $(call PKG_mod_template,SANE_BACKEND_NEC,nec))
$(eval $(call PKG_mod_template,SANE_BACKEND_NIASH,niash,n))
$(eval $(call PKG_mod_template,SANE_BACKEND_PIE,pie))
$(eval $(call PKG_mod_template,SANE_BACKEND_PIXMA,pixma))
$(eval $(call PKG_mod_template,SANE_BACKEND_PLUSTEK_PP,plustek_pp))
$(eval $(call PKG_mod_template,SANE_BACKEND_PLUSTEK,plustek))
$(eval $(call PKG_mod_template,SANE_BACKEND_RICOH,ricoh))
$(eval $(call PKG_mod_template,SANE_BACKEND_S9036,s9036))
$(eval $(call PKG_mod_template,SANE_BACKEND_SCEPTRE,sceptre))
$(eval $(call PKG_mod_template,SANE_BACKEND_SHARP,sharp))
$(eval $(call PKG_mod_template,SANE_BACKEND_SM3600,sm3600,n))
$(eval $(call PKG_mod_template,SANE_BACKEND_SM3840,sm3840))
$(eval $(call PKG_mod_template,SANE_BACKEND_SNAPSCAN,snapscan))
$(eval $(call PKG_mod_template,SANE_BACKEND_SP15C,sp15c))
$(eval $(call PKG_mod_template,SANE_BACKEND_ST400,st400))
$(eval $(call PKG_mod_template,SANE_BACKEND_STV680,stv680))
$(eval $(call PKG_mod_template,SANE_BACKEND_TAMARACK,tamarack))
$(eval $(call PKG_mod_template,SANE_BACKEND_TECO1,teco1))
$(eval $(call PKG_mod_template,SANE_BACKEND_TECO2,teco2))
$(eval $(call PKG_mod_template,SANE_BACKEND_TECO3,teco3))
$(eval $(call PKG_mod_template,SANE_BACKEND_TEST,test))
$(eval $(call PKG_mod_template,SANE_BACKEND_U12,u12))
$(eval $(call PKG_mod_template,SANE_BACKEND_UMAX1220U,umax1220u))
$(eval $(call PKG_mod_template,SANE_BACKEND_UMAX_PP,umax_pp))
$(eval $(call PKG_mod_template,SANE_BACKEND_UMAX,umax))

TARGET_CFLAGS+=		-D_GNU_SOURCE
CONFIGURE_ENV+=		ac_cv_func_ioperm=no have_libv4l1=no
CONFIGURE_ARGS+=	--disable-translations \
			--without-gphoto2 \
			--enable-libusb

post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
	${INSTALL_DIR} ${IDIR_SANE_BACKEND}/etc/sane.d
	${INSTALL_DIR} ${IDIR_SANE_BACKEND}/usr/lib
	${INSTALL_DIR} ${IDIR_SANE_BACKEND}/usr/sbin
	${CP} ${WRKINST}/etc/sane.d/dll.conf ${IDIR_SANE_BACKEND}/etc/sane.d
	${CP} ${WRKINST}/etc/sane.d/saned.conf ${IDIR_SANE_BACKEND}/etc/sane.d
	${CP} ${WRKINST}/usr/sbin/saned ${IDIR_SANE_BACKEND}/usr/sbin
	${CP} ${WRKINST}/usr/lib/libsane*.so* ${IDIR_SANE_BACKEND}/usr/lib

include ${TOPDIR}/mk/pkg-bottom.mk