1
0

Makefile 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= sane-backends
  5. PKG_VERSION:= 1.0.22
  6. PKG_RELEASE:= 3
  7. PKG_HASH:= 9f84a16800497f0b79a278531bb1a0f438de6ce8cf509fefc65a252e29f90c54
  8. PKG_DESCR:= scanner access now easy
  9. PKG_SECTION:= sys/misc
  10. PKG_DEPENDS:= libpthread
  11. PKG_BUILDDEP:= libpthread libusb libusb-compat
  12. PKG_URL:= http://www.sane-project.org/
  13. PKG_SITES:= ftp://ftp2.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. PKG_SUBPKGS:= SANE_BACKEND SANE_BACKEND_NET SANE_BACKEND_ABATON SANE_BACKEND_AGFAFOCUS
  16. PKG_SUBPKGS+= SANE_BACKEND_APPLE SANE_BACKEND_ARTEC_EPLUS48U SANE_BACKEND_ARTEC SANE_BACKEND_AS6E
  17. PKG_SUBPKGS+= SANE_BACKEND_AVISION SANE_BACKEND_BH SANE_BACKEND_CANON630U SANE_BACKEND_CANON
  18. PKG_SUBPKGS+= SANE_BACKEND_COOLSCAN2 SANE_BACKEND_COOLSCAN SANE_BACKEND_DC25 SANE_BACKEND_DMC
  19. PKG_SUBPKGS+= SANE_BACKEND_EPSON SANE_BACKEND_FUJITSU SANE_BACKEND_GENESYS SANE_BACKEND_GT68XX
  20. PKG_SUBPKGS+= SANE_BACKEND_HP3500 SANE_BACKEND_HP4200 SANE_BACKEND_HP5400 SANE_BACKEND_HP
  21. PKG_SUBPKGS+= SANE_BACKEND_IBM SANE_BACKEND_LEO SANE_BACKEND_LEXMARK SANE_BACKEND_MA1509
  22. PKG_SUBPKGS+= SANE_BACKEND_MATSUSHITA SANE_BACKEND_MICROTEK2 SANE_BACKEND_MICROTEK
  23. PKG_SUBPKGS+= SANE_BACKEND_MUSTEK SANE_BACKEND_MUSTEK_USB SANE_BACKEND_MUSTEK_USB2
  24. PKG_SUBPKGS+= SANE_BACKEND_NEC SANE_BACKEND_NIASH SANE_BACKEND_PIE SANE_BACKEND_PIXMA
  25. PKG_SUBPKGS+= SANE_BACKEND_PLUSTEK_PP SANE_BACKEND_PLUSTEK SANE_BACKEND_RICOH
  26. PKG_SUBPKGS+= SANE_BACKEND_S9036 SANE_BACKEND_SCEPTRE SANE_BACKEND_SHARP SANE_BACKEND_SM3600
  27. PKG_SUBPKGS+= SANE_BACKEND_SM3840 SANE_BACKEND_SNAPSCAN SANE_BACKEND_SP15C SANE_BACKEND_ST400
  28. PKG_SUBPKGS+= SANE_BACKEND_STV680 SANE_BACKEND_TAMARACK SANE_BACKEND_TECO1 SANE_BACKEND_TECO2
  29. PKG_SUBPKGS+= SANE_BACKEND_TECO3 SANE_BACKEND_TEST SANE_BACKEND_U12 SANE_BACKEND_UMAX1220U
  30. PKG_SUBPKGS+= SANE_BACKEND_UMAX_PP SANE_BACKEND_UMAX
  31. PKGSN_SANE_BACKEND_NET:= sane-backend
  32. PKGSN_SANE_BACKEND_ABATON:= sane-backend
  33. PKGSN_SANE_BACKEND_AGFAFOCUS:= sane-backend
  34. PKGSN_SANE_BACKEND_APPLE:= sane-backend
  35. PKGSN_SANE_BACKEND_ARTEC_EPLUS48U:= sane-backend
  36. PKGSN_SANE_BACKEND_ARTEC:= sane-backend
  37. PKGSN_SANE_BACKEND_AS6E:= sane-backend
  38. PKGSN_SANE_BACKEND_AVISION:= sane-backend
  39. PKGSN_SANE_BACKEND_BH:= sane-backend
  40. PKGSN_SANE_BACKEND_CANON630U:= sane-backend
  41. PKGSN_SANE_BACKEND_CANON:= sane-backend
  42. PKGSN_SANE_BACKEND_COOLSCAN:= sane-backend
  43. PKGSN_SANE_BACKEND_COOLSCAN2:= sane-backend
  44. PKGSN_SANE_BACKEND_DC25:= sane-backend
  45. PKGSN_SANE_BACKEND_DMC:= sane-backend
  46. PKGSN_SANE_BACKEND_EPSON:= sane-backend
  47. PKGSN_SANE_BACKEND_FUJITSU:= sane-backend
  48. PKGSN_SANE_BACKEND_GENESYS:= sane-backend
  49. PKGSN_SANE_BACKEND_GT68XX:= sane-backend
  50. PKGSN_SANE_BACKEND_HP3500:= sane-backend
  51. PKGSN_SANE_BACKEND_HP4200:= sane-backend
  52. PKGSN_SANE_BACKEND_HP5400:= sane-backend
  53. PKGSN_SANE_BACKEND_HP:= sane-backend
  54. PKGSN_SANE_BACKEND_IBM:= sane-backend
  55. PKGSN_SANE_BACKEND_LEO:= sane-backend
  56. PKGSN_SANE_BACKEND_LEXMARK:= sane-backend
  57. PKGSN_SANE_BACKEND_MA1509:= sane-backend
  58. PKGSN_SANE_BACKEND_MATSUSHITA:= sane-backend
  59. PKGSN_SANE_BACKEND_MICROTEK2:= sane-backend
  60. PKGSN_SANE_BACKEND_MICROTEK:= sane-backend
  61. PKGSN_SANE_BACKEND_MUSTEK:= sane-backend
  62. PKGSN_SANE_BACKEND_MUSTEK_USB:= sane-backend
  63. PKGSN_SANE_BACKEND_MUSTEK_USB2:=sane-backend
  64. PKGSN_SANE_BACKEND_NEC:= sane-backend
  65. PKGSN_SANE_BACKEND_NIASH:= sane-backend
  66. PKGSN_SANE_BACKEND_PIE:= sane-backend
  67. PKGSN_SANE_BACKEND_PIXMA:= sane-backend
  68. PKGSN_SANE_BACKEND_PLUSTEK_PP:= sane-backend
  69. PKGSN_SANE_BACKEND_PLUSTEK:= sane-backend
  70. PKGSN_SANE_BACKEND_RICOH:= sane-backend
  71. PKGSN_SANE_BACKEND_S9036:= sane-backend
  72. PKGSN_SANE_BACKEND_SCEPTRE:= sane-backend
  73. PKGSN_SANE_BACKEND_SHARP:= sane-backend
  74. PKGSN_SANE_BACKEND_SM3600:= sane-backend
  75. PKGSN_SANE_BACKEND_SM3840:= sane-backend
  76. PKGSN_SANE_BACKEND_SNAPSCAN:= sane-backend
  77. PKGSN_SANE_BACKEND_SP15C:= sane-backend
  78. PKGSN_SANE_BACKEND_ST400:= sane-backend
  79. PKGSN_SANE_BACKEND_STV680:= sane-backend
  80. PKGSN_SANE_BACKEND_TAMARACK:= sane-backend
  81. PKGSN_SANE_BACKEND_TECO1:= sane-backend
  82. PKGSN_SANE_BACKEND_TECO2:= sane-backend
  83. PKGSN_SANE_BACKEND_TECO3:= sane-backend
  84. PKGSN_SANE_BACKEND_TEST:= sane-backend
  85. PKGSN_SANE_BACKEND_U12:= sane-backend
  86. PKGSN_SANE_BACKEND_UMAX1220U:= sane-backend
  87. PKGSN_SANE_BACKEND_UMAX_PP:= sane-backend
  88. PKGSN_SANE_BACKEND_UMAX:= sane-backend
  89. include ${ADK_TOPDIR}/mk/package.mk
  90. define PKG_mod_template
  91. INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
  92. ${2}-install:
  93. ifneq (${3},n)
  94. ${INSTALL_DIR} $$(IDIR_$(1))/etc/sane.d
  95. ${CP} $(WRKINST)/etc/sane.d/$(2).conf $$(IDIR_$(1))/etc/sane.d
  96. endif
  97. ${INSTALL_DIR} $$(IDIR_$(1))/usr/lib/sane
  98. ${CP} $(WRKINST)/usr/lib/sane/libsane-$(2).so* $$(IDIR_$(1))/usr/lib/sane
  99. endef
  100. $(eval $(call PKG_template,SANE_BACKEND,sane-backend,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  101. $(eval $(call PKG_template,SANE_BACKEND_NET,sane-backend-net,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  102. $(eval $(call PKG_template,SANE_BACKEND_ABATON,sane-backend-abaton,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  103. $(eval $(call PKG_template,SANE_BACKEND_AGFAFOCUS,sane-backend-agfafocus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  104. $(eval $(call PKG_template,SANE_BACKEND_APPLE,sane-backend-apple,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  105. $(eval $(call PKG_template,SANE_BACKEND_ARTEC_EPLUS48U,sane-backend-artec-eplus48u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  106. $(eval $(call PKG_template,SANE_BACKEND_ARTEC,sane-backend-artec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  107. $(eval $(call PKG_template,SANE_BACKEND_AS6E,sane-backend-as6e,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  108. $(eval $(call PKG_template,SANE_BACKEND_AVISION,sane-backend-avision,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  109. $(eval $(call PKG_template,SANE_BACKEND_BH,sane-backend-bh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  110. $(eval $(call PKG_template,SANE_BACKEND_CANON630U,sane-backend-canon630u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  111. $(eval $(call PKG_template,SANE_BACKEND_CANON,sane-backend-canon,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  112. $(eval $(call PKG_template,SANE_BACKEND_COOLSCAN2,sane-backend-coolscan2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  113. $(eval $(call PKG_template,SANE_BACKEND_COOLSCAN,sane-backend-coolscan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  114. $(eval $(call PKG_template,SANE_BACKEND_DC25,sane-backend-dc25,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  115. $(eval $(call PKG_template,SANE_BACKEND_DMC,sane-backend-dmc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  116. $(eval $(call PKG_template,SANE_BACKEND_EPSON,sane-backend-epson,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  117. $(eval $(call PKG_template,SANE_BACKEND_FUJITSU,sane-backend-fujitsu,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  118. $(eval $(call PKG_template,SANE_BACKEND_GENESYS,sane-backend-genesys,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  119. $(eval $(call PKG_template,SANE_BACKEND_GT68XX,sane-backend-gt68xx,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  120. $(eval $(call PKG_template,SANE_BACKEND_HP3500,sane-backend-hp3500,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  121. $(eval $(call PKG_template,SANE_BACKEND_HP4200,sane-backend-hp4200,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  122. $(eval $(call PKG_template,SANE_BACKEND_HP5400,sane-backend-hp5400,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  123. $(eval $(call PKG_template,SANE_BACKEND_HP,sane-backend-hp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  124. $(eval $(call PKG_template,SANE_BACKEND_IBM,sane-backend-ibm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  125. $(eval $(call PKG_template,SANE_BACKEND_LEO,sane-backend-leo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  126. $(eval $(call PKG_template,SANE_BACKEND_LEXMARK,sane-backend-lexmark,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  127. $(eval $(call PKG_template,SANE_BACKEND_MA1509,sane-backend-ma1509,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  128. $(eval $(call PKG_template,SANE_BACKEND_MATSUSHITA,sane-backend-matsushita,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  129. $(eval $(call PKG_template,SANE_BACKEND_MICROTEK2,sane-backend-microtek2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  130. $(eval $(call PKG_template,SANE_BACKEND_MICROTEK,sane-backend-microtek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  131. $(eval $(call PKG_template,SANE_BACKEND_MUSTEK,sane-backend-mustek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  132. $(eval $(call PKG_template,SANE_BACKEND_MUSTEK_USB,sane-backend-mustek-usb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  133. $(eval $(call PKG_template,SANE_BACKEND_NEC,sane-backend-nec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  134. $(eval $(call PKG_template,SANE_BACKEND_NIASH,sane-backend-niash,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  135. $(eval $(call PKG_template,SANE_BACKEND_PIE,sane-backend-pie,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  136. $(eval $(call PKG_template,SANE_BACKEND_PIXMA,sane-backend-pixma,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  137. $(eval $(call PKG_template,SANE_BACKEND_PLUSTEK_PP,sane-backend-plustek-pp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  138. $(eval $(call PKG_template,SANE_BACKEND_PLUSTEK,sane-backend-plustek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  139. $(eval $(call PKG_template,SANE_BACKEND_RICOH,sane-backend-ricoh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  140. $(eval $(call PKG_template,SANE_BACKEND_S9036,sane-backend-s9036,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  141. $(eval $(call PKG_template,SANE_BACKEND_SCEPTRE,sane-backend-sceptre,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  142. $(eval $(call PKG_template,SANE_BACKEND_SHARP,sane-backend-sharp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  143. $(eval $(call PKG_template,SANE_BACKEND_SM3600,sane-backend-sm3600,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  144. $(eval $(call PKG_template,SANE_BACKEND_SM3840,sane-backend-sm3840,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  145. $(eval $(call PKG_template,SANE_BACKEND_SNAPSCAN,sane-backend-snapscan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  146. $(eval $(call PKG_template,SANE_BACKEND_SP15C,sane-backend-sp15c,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  147. $(eval $(call PKG_template,SANE_BACKEND_ST400,sane-backend-st400,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  148. $(eval $(call PKG_template,SANE_BACKEND_STV680,sane-backend-stv680,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  149. $(eval $(call PKG_template,SANE_BACKEND_TAMARACK,sane-backend-tamarack,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  150. $(eval $(call PKG_template,SANE_BACKEND_TECO1,sane-backend-teco1,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  151. $(eval $(call PKG_template,SANE_BACKEND_TECO2,sane-backend-teco2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  152. $(eval $(call PKG_template,SANE_BACKEND_TECO3,sane-backend-teco3,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  153. $(eval $(call PKG_template,SANE_BACKEND_TEST,sane-backend-test,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  154. $(eval $(call PKG_template,SANE_BACKEND_U12,sane-backend-u12,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  155. $(eval $(call PKG_template,SANE_BACKEND_UMAX1220U,sane-backend-umax1220u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  156. $(eval $(call PKG_template,SANE_BACKEND_UMAX_PP,sane-backend-umax-pp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  157. $(eval $(call PKG_template,SANE_BACKEND_UMAX,sane-backend-umax,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  158. $(eval $(call PKG_mod_template,SANE_BACKEND_NET,net))
  159. $(eval $(call PKG_mod_template,SANE_BACKEND_ABATON,abaton))
  160. $(eval $(call PKG_mod_template,SANE_BACKEND_AGFAFOCUS,agfafocus))
  161. $(eval $(call PKG_mod_template,SANE_BACKEND_APPLE,apple))
  162. $(eval $(call PKG_mod_template,SANE_BACKEND_ARTEC_EPLUS48U,artec_eplus48u))
  163. $(eval $(call PKG_mod_template,SANE_BACKEND_ARTEC,artec))
  164. $(eval $(call PKG_mod_template,SANE_BACKEND_AS6E,as6e,n))
  165. $(eval $(call PKG_mod_template,SANE_BACKEND_AVISION,avision))
  166. $(eval $(call PKG_mod_template,SANE_BACKEND_BH,bh))
  167. $(eval $(call PKG_mod_template,SANE_BACKEND_CANON630U,canon630u))
  168. $(eval $(call PKG_mod_template,SANE_BACKEND_CANON,canon))
  169. $(eval $(call PKG_mod_template,SANE_BACKEND_COOLSCAN2,coolscan2))
  170. $(eval $(call PKG_mod_template,SANE_BACKEND_COOLSCAN,coolscan))
  171. $(eval $(call PKG_mod_template,SANE_BACKEND_DC25,dc25))
  172. $(eval $(call PKG_mod_template,SANE_BACKEND_DMC,dmc))
  173. $(eval $(call PKG_mod_template,SANE_BACKEND_EPSON,epson))
  174. $(eval $(call PKG_mod_template,SANE_BACKEND_FUJITSU,fujitsu))
  175. $(eval $(call PKG_mod_template,SANE_BACKEND_GENESYS,genesys))
  176. $(eval $(call PKG_mod_template,SANE_BACKEND_GT68XX,gt68xx))
  177. $(eval $(call PKG_mod_template,SANE_BACKEND_HP3500,hp3500,n))
  178. $(eval $(call PKG_mod_template,SANE_BACKEND_HP4200,hp4200))
  179. $(eval $(call PKG_mod_template,SANE_BACKEND_HP5400,hp5400))
  180. $(eval $(call PKG_mod_template,SANE_BACKEND_HP,hp))
  181. $(eval $(call PKG_mod_template,SANE_BACKEND_IBM,ibm))
  182. $(eval $(call PKG_mod_template,SANE_BACKEND_LEO,leo))
  183. $(eval $(call PKG_mod_template,SANE_BACKEND_LEXMARK,lexmark))
  184. $(eval $(call PKG_mod_template,SANE_BACKEND_MA1509,ma1509))
  185. $(eval $(call PKG_mod_template,SANE_BACKEND_MATSUSHITA,matsushita))
  186. $(eval $(call PKG_mod_template,SANE_BACKEND_MICROTEK2,microtek2))
  187. $(eval $(call PKG_mod_template,SANE_BACKEND_MICROTEK,microtek))
  188. $(eval $(call PKG_mod_template,SANE_BACKEND_MUSTEK,mustek))
  189. $(eval $(call PKG_mod_template,SANE_BACKEND_MUSTEK_USB,mustek_usb))
  190. $(eval $(call PKG_mod_template,SANE_BACKEND_NEC,nec))
  191. $(eval $(call PKG_mod_template,SANE_BACKEND_NIASH,niash,n))
  192. $(eval $(call PKG_mod_template,SANE_BACKEND_PIE,pie))
  193. $(eval $(call PKG_mod_template,SANE_BACKEND_PIXMA,pixma))
  194. $(eval $(call PKG_mod_template,SANE_BACKEND_PLUSTEK_PP,plustek_pp))
  195. $(eval $(call PKG_mod_template,SANE_BACKEND_PLUSTEK,plustek))
  196. $(eval $(call PKG_mod_template,SANE_BACKEND_RICOH,ricoh))
  197. $(eval $(call PKG_mod_template,SANE_BACKEND_S9036,s9036))
  198. $(eval $(call PKG_mod_template,SANE_BACKEND_SCEPTRE,sceptre))
  199. $(eval $(call PKG_mod_template,SANE_BACKEND_SHARP,sharp))
  200. $(eval $(call PKG_mod_template,SANE_BACKEND_SM3600,sm3600,n))
  201. $(eval $(call PKG_mod_template,SANE_BACKEND_SM3840,sm3840))
  202. $(eval $(call PKG_mod_template,SANE_BACKEND_SNAPSCAN,snapscan))
  203. $(eval $(call PKG_mod_template,SANE_BACKEND_SP15C,sp15c))
  204. $(eval $(call PKG_mod_template,SANE_BACKEND_ST400,st400))
  205. $(eval $(call PKG_mod_template,SANE_BACKEND_STV680,stv680))
  206. $(eval $(call PKG_mod_template,SANE_BACKEND_TAMARACK,tamarack))
  207. $(eval $(call PKG_mod_template,SANE_BACKEND_TECO1,teco1))
  208. $(eval $(call PKG_mod_template,SANE_BACKEND_TECO2,teco2))
  209. $(eval $(call PKG_mod_template,SANE_BACKEND_TECO3,teco3))
  210. $(eval $(call PKG_mod_template,SANE_BACKEND_TEST,test))
  211. $(eval $(call PKG_mod_template,SANE_BACKEND_U12,u12))
  212. $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX1220U,umax1220u))
  213. $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX_PP,umax_pp))
  214. $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX,umax))
  215. TARGET_CFLAGS+= -D_GNU_SOURCE
  216. CONFIGURE_ENV+= ac_cv_func_ioperm=no have_libv4l1=no
  217. CONFIGURE_ARGS+= --disable-translations \
  218. --without-gphoto2 \
  219. --enable-libusb
  220. post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
  221. ${INSTALL_DIR} ${IDIR_SANE_BACKEND}/etc/sane.d
  222. ${INSTALL_DIR} ${IDIR_SANE_BACKEND}/usr/lib
  223. ${INSTALL_DIR} ${IDIR_SANE_BACKEND}/usr/sbin
  224. ${CP} ${WRKINST}/etc/sane.d/dll.conf ${IDIR_SANE_BACKEND}/etc/sane.d
  225. ${CP} ${WRKINST}/etc/sane.d/saned.conf ${IDIR_SANE_BACKEND}/etc/sane.d
  226. ${CP} ${WRKINST}/usr/sbin/saned ${IDIR_SANE_BACKEND}/usr/sbin
  227. ${CP} ${WRKINST}/usr/lib/libsane*.so* ${IDIR_SANE_BACKEND}/usr/lib
  228. include ${ADK_TOPDIR}/mk/pkg-bottom.mk