Makefile 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= sane-backends
  5. PKG_VERSION:= 1.0.20
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a0cfdfdebca2feb4f2ba5d3418b15a42
  8. PKG_DESCR:= Scanner access now easy
  9. PKG_SECTION:= misc
  10. PKG_DEPENDS:= libpthread
  11. PKG_BUILDDEP+= libpthread libusb
  12. PKG_MULTI:= 1
  13. PKG_URL:= http://www.sane-project.org
  14. PKG_SITES:= ftp://ftp2.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/ \
  15. ftp://ftp3.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/ \
  16. ftp://ftp4.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/ \
  17. ftp://ftp5.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/
  18. include ${TOPDIR}/mk/package.mk
  19. define PKG_mod_template
  20. INSTALL_MODS_$${ADK_PACKAGE_${1}}+= ${2}-install
  21. ${2}-install:
  22. ifneq (${3},n)
  23. ${INSTALL_DIR} $$(IDIR_$(1))/etc/sane.d
  24. ${CP} $(WRKINST)/etc/sane.d/$(2).conf $$(IDIR_$(1))/etc/sane.d
  25. endif
  26. ${INSTALL_DIR} $$(IDIR_$(1))/usr/lib/sane
  27. ${CP} $(WRKINST)/usr/lib/sane/libsane-$(2).so* $$(IDIR_$(1))/usr/lib/sane
  28. endef
  29. $(eval $(call PKG_template,SANE_BACKENDS,sane-backends,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  30. $(eval $(call PKG_template,SANE_BACKEND_NET,sane-backend-net,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  31. $(eval $(call PKG_template,SANE_BACKEND_ABATON,sane-backend-abaton,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  32. $(eval $(call PKG_template,SANE_BACKEND_AGFAFOCUS,sane-backend-agfafocus,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  33. $(eval $(call PKG_template,SANE_BACKEND_APPLE,sane-backend-apple,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  34. $(eval $(call PKG_template,SANE_BACKEND_ARTEC_EPLUS48U,sane-backend-artec-eplus48u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  35. $(eval $(call PKG_template,SANE_BACKEND_ARTEC,sane-backend-artec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  36. $(eval $(call PKG_template,SANE_BACKEND_AS6E,sane-backend-as6e,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  37. $(eval $(call PKG_template,SANE_BACKEND_AVISION,sane-backend-avision,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  38. $(eval $(call PKG_template,SANE_BACKEND_BH,sane-backend-bh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  39. $(eval $(call PKG_template,SANE_BACKEND_CANON630U,sane-backend-canon630u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  40. $(eval $(call PKG_template,SANE_BACKEND_CANON,sane-backend-canon,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  41. $(eval $(call PKG_template,SANE_BACKEND_COOLSCAN2,sane-backend-coolscan2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  42. $(eval $(call PKG_template,SANE_BACKEND_COOLSCAN,sane-backend-coolscan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  43. $(eval $(call PKG_template,SANE_BACKEND_DC25,sane-backend-dc25,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  44. $(eval $(call PKG_template,SANE_BACKEND_DMC,sane-backend-dmc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  45. $(eval $(call PKG_template,SANE_BACKEND_EPSON,sane-backend-epson,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  46. $(eval $(call PKG_template,SANE_BACKEND_FUJITSU,sane-backend-fujitsu,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  47. $(eval $(call PKG_template,SANE_BACKEND_GENESYS,sane-backend-genesys,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  48. $(eval $(call PKG_template,SANE_BACKEND_GT68XX,sane-backend-gt68xx,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  49. $(eval $(call PKG_template,SANE_BACKEND_HP3500,sane-backend-hp3500,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  50. $(eval $(call PKG_template,SANE_BACKEND_HP4200,sane-backend-hp4200,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  51. $(eval $(call PKG_template,SANE_BACKEND_HP5400,sane-backend-hp5400,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  52. $(eval $(call PKG_template,SANE_BACKEND_HP,sane-backend-hp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  53. $(eval $(call PKG_template,SANE_BACKEND_IBM,sane-backend-ibm,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  54. $(eval $(call PKG_template,SANE_BACKEND_LEO,sane-backend-leo,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  55. $(eval $(call PKG_template,SANE_BACKEND_LEXMARK,sane-backend-lexmark,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  56. $(eval $(call PKG_template,SANE_BACKEND_MA1509,sane-backend-ma1509,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  57. $(eval $(call PKG_template,SANE_BACKEND_MATSUSHITA,sane-backend-matsushita,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  58. $(eval $(call PKG_template,SANE_BACKEND_MICROTEK2,sane-backend-microtek2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  59. $(eval $(call PKG_template,SANE_BACKEND_MICROTEK,sane-backend-microtek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  60. $(eval $(call PKG_template,SANE_BACKEND_MUSTEK,sane-backend-mustek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  61. $(eval $(call PKG_template,SANE_BACKEND_MUSTEK_USB2,sane-backend-mustek-usb2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  62. $(eval $(call PKG_template,SANE_BACKEND_MUSTEK_USB,sane-backend-mustek-usb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  63. $(eval $(call PKG_template,SANE_BACKEND_NEC,sane-backend-nec,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  64. $(eval $(call PKG_template,SANE_BACKEND_NIASH,sane-backend-niash,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  65. $(eval $(call PKG_template,SANE_BACKEND_PIE,sane-backend-pie,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  66. $(eval $(call PKG_template,SANE_BACKEND_PIXMA,sane-backend-pixma,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  67. $(eval $(call PKG_template,SANE_BACKEND_PLUSTEK_PP,sane-backend-plustek-pp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  68. $(eval $(call PKG_template,SANE_BACKEND_PLUSTEK,sane-backend-plustek,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  69. $(eval $(call PKG_template,SANE_BACKEND_RICOH,sane-backend-ricoh,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  70. $(eval $(call PKG_template,SANE_BACKEND_S9036,sane-backend-s9036,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  71. $(eval $(call PKG_template,SANE_BACKEND_SCEPTRE,sane-backend-sceptre,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  72. $(eval $(call PKG_template,SANE_BACKEND_SHARP,sane-backend-sharp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  73. $(eval $(call PKG_template,SANE_BACKEND_SM3600,sane-backend-sm3600,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  74. $(eval $(call PKG_template,SANE_BACKEND_SM3840,sane-backend-sm3840,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  75. $(eval $(call PKG_template,SANE_BACKEND_SNAPSCAN,sane-backend-snapscan,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  76. $(eval $(call PKG_template,SANE_BACKEND_SP15C,sane-backend-sp15c,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  77. $(eval $(call PKG_template,SANE_BACKEND_ST400,sane-backend-st400,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  78. $(eval $(call PKG_template,SANE_BACKEND_STV680,sane-backend-stv680,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  79. $(eval $(call PKG_template,SANE_BACKEND_TAMARACK,sane-backend-tamarack,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  80. $(eval $(call PKG_template,SANE_BACKEND_TECO1,sane-backend-teco1,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  81. $(eval $(call PKG_template,SANE_BACKEND_TECO2,sane-backend-teco2,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  82. $(eval $(call PKG_template,SANE_BACKEND_TECO3,sane-backend-teco3,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  83. $(eval $(call PKG_template,SANE_BACKEND_TEST,sane-backend-test,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  84. $(eval $(call PKG_template,SANE_BACKEND_U12,sane-backend-u12,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  85. $(eval $(call PKG_template,SANE_BACKEND_UMAX1220U,sane-backend-umax1220u,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  86. $(eval $(call PKG_template,SANE_BACKEND_UMAX_PP,sane-backend-umax-pp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  87. $(eval $(call PKG_template,SANE_BACKEND_UMAX,sane-backend-umax,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  88. $(eval $(call PKG_mod_template,SANE_BACKEND_NET,net))
  89. $(eval $(call PKG_mod_template,SANE_BACKEND_ABATON,abaton))
  90. $(eval $(call PKG_mod_template,SANE_BACKEND_AGFAFOCUS,agfafocus))
  91. $(eval $(call PKG_mod_template,SANE_BACKEND_APPLE,apple))
  92. $(eval $(call PKG_mod_template,SANE_BACKEND_ARTEC_EPLUS48U,artec_eplus48u))
  93. $(eval $(call PKG_mod_template,SANE_BACKEND_ARTEC,artec))
  94. $(eval $(call PKG_mod_template,SANE_BACKEND_AS6E,as6e,n))
  95. $(eval $(call PKG_mod_template,SANE_BACKEND_AVISION,avision))
  96. $(eval $(call PKG_mod_template,SANE_BACKEND_BH,bh))
  97. $(eval $(call PKG_mod_template,SANE_BACKEND_CANON630U,canon630u))
  98. $(eval $(call PKG_mod_template,SANE_BACKEND_CANON,canon))
  99. $(eval $(call PKG_mod_template,SANE_BACKEND_COOLSCAN2,coolscan2))
  100. $(eval $(call PKG_mod_template,SANE_BACKEND_COOLSCAN,coolscan))
  101. $(eval $(call PKG_mod_template,SANE_BACKEND_DC25,dc25))
  102. $(eval $(call PKG_mod_template,SANE_BACKEND_DMC,dmc))
  103. $(eval $(call PKG_mod_template,SANE_BACKEND_EPSON,epson))
  104. $(eval $(call PKG_mod_template,SANE_BACKEND_FUJITSU,fujitsu))
  105. $(eval $(call PKG_mod_template,SANE_BACKEND_GENESYS,genesys))
  106. $(eval $(call PKG_mod_template,SANE_BACKEND_GT68XX,gt68xx))
  107. $(eval $(call PKG_mod_template,SANE_BACKEND_HP3500,hp3500,n))
  108. $(eval $(call PKG_mod_template,SANE_BACKEND_HP4200,hp4200))
  109. $(eval $(call PKG_mod_template,SANE_BACKEND_HP5400,hp5400))
  110. $(eval $(call PKG_mod_template,SANE_BACKEND_HP,hp))
  111. $(eval $(call PKG_mod_template,SANE_BACKEND_IBM,ibm))
  112. $(eval $(call PKG_mod_template,SANE_BACKEND_LEO,leo))
  113. $(eval $(call PKG_mod_template,SANE_BACKEND_LEXMARK,lexmark))
  114. $(eval $(call PKG_mod_template,SANE_BACKEND_MA1509,ma1509))
  115. $(eval $(call PKG_mod_template,SANE_BACKEND_MATSUSHITA,matsushita))
  116. $(eval $(call PKG_mod_template,SANE_BACKEND_MICROTEK2,microtek2))
  117. $(eval $(call PKG_mod_template,SANE_BACKEND_MICROTEK,microtek))
  118. $(eval $(call PKG_mod_template,SANE_BACKEND_MUSTEK,mustek))
  119. $(eval $(call PKG_mod_template,SANE_BACKEND_MUSTEK_USB2,mustek_usb2,n))
  120. $(eval $(call PKG_mod_template,SANE_BACKEND_MUSTEK_USB,mustek_usb))
  121. $(eval $(call PKG_mod_template,SANE_BACKEND_NEC,nec))
  122. $(eval $(call PKG_mod_template,SANE_BACKEND_NIASH,niash,n))
  123. $(eval $(call PKG_mod_template,SANE_BACKEND_PIE,pie))
  124. $(eval $(call PKG_mod_template,SANE_BACKEND_PIXMA,pixma))
  125. $(eval $(call PKG_mod_template,SANE_BACKEND_PLUSTEK_PP,plustek_pp))
  126. $(eval $(call PKG_mod_template,SANE_BACKEND_PLUSTEK,plustek))
  127. $(eval $(call PKG_mod_template,SANE_BACKEND_RICOH,ricoh))
  128. $(eval $(call PKG_mod_template,SANE_BACKEND_S9036,s9036))
  129. $(eval $(call PKG_mod_template,SANE_BACKEND_SCEPTRE,sceptre))
  130. $(eval $(call PKG_mod_template,SANE_BACKEND_SHARP,sharp))
  131. $(eval $(call PKG_mod_template,SANE_BACKEND_SM3600,sm3600,n))
  132. $(eval $(call PKG_mod_template,SANE_BACKEND_SM3840,sm3840))
  133. $(eval $(call PKG_mod_template,SANE_BACKEND_SNAPSCAN,snapscan))
  134. $(eval $(call PKG_mod_template,SANE_BACKEND_SP15C,sp15c))
  135. $(eval $(call PKG_mod_template,SANE_BACKEND_ST400,st400))
  136. $(eval $(call PKG_mod_template,SANE_BACKEND_STV680,stv680))
  137. $(eval $(call PKG_mod_template,SANE_BACKEND_TAMARACK,tamarack))
  138. $(eval $(call PKG_mod_template,SANE_BACKEND_TECO1,teco1))
  139. $(eval $(call PKG_mod_template,SANE_BACKEND_TECO2,teco2))
  140. $(eval $(call PKG_mod_template,SANE_BACKEND_TECO3,teco3))
  141. $(eval $(call PKG_mod_template,SANE_BACKEND_TEST,test))
  142. $(eval $(call PKG_mod_template,SANE_BACKEND_U12,u12))
  143. $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX1220U,umax1220u))
  144. $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX_PP,umax_pp))
  145. $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX,umax))
  146. CONFIGURE_ENV+= ac_cv_func_ioperm=no
  147. CONFIGURE_STYLE:= gnu
  148. CONFIGURE_ARGS+= --disable-translations \
  149. --without-gphoto2 \
  150. --enable-libusb
  151. BUILD_STYLE:= auto
  152. INSTALL_STYLE:= auto
  153. post-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
  154. ${INSTALL_DIR} ${IDIR_SANE_BACKENDS}/etc/sane.d
  155. ${INSTALL_DIR} ${IDIR_SANE_BACKENDS}/usr/lib
  156. ${INSTALL_DIR} ${IDIR_SANE_BACKENDS}/usr/sbin
  157. ${CP} ${WRKINST}/etc/sane.d/dll.conf ${IDIR_SANE_BACKENDS}/etc/sane.d
  158. ${CP} ${WRKINST}/etc/sane.d/saned.conf ${IDIR_SANE_BACKENDS}/etc/sane.d
  159. ${CP} ${WRKINST}/usr/sbin/saned ${IDIR_SANE_BACKENDS}/usr/sbin
  160. ${CP} ${WRKINST}/usr/lib/libsane*.so* ${IDIR_SANE_BACKENDS}/usr/lib
  161. include ${TOPDIR}/mk/pkg-bottom.mk