1
0

Makefile 13 KB

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