alsa-tools_1.2.11.bb 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. SUMMARY = "Advanced tools for certain ALSA sound card drivers"
  2. DESCRIPTION = "Package containing a number of tools ranging from envy24control \
  3. which provides complete control over all devices with an envy24 chip, to \
  4. firmware loaders for pcmcia, USB and the hdsp devices."
  5. HOMEPAGE = "http://www.alsa-project.org"
  6. BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking"
  7. SECTION = "console/utils"
  8. LICENSE = "GPL-2.0-only & LGPL-2.0-or-later"
  9. DEPENDS = "alsa-lib"
  10. LIC_FILES_CHKSUM = "file://hdsploader/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
  11. file://ld10k1/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7 \
  12. "
  13. SRC_URI = "https://www.alsa-project.org/files/pub/tools/${BP}.tar.bz2 \
  14. file://0001-hdajackretask-fix-reset_changes_boot-declaration.patch"
  15. SRC_URI[sha256sum] = "0915c9634a502fd3655ca9c574d259bc9e79983d91d45aeacff6f3c00f8ae3e9"
  16. inherit autotools-brokensep pkgconfig
  17. # brokensep as as10k1 (and probably more) fail out of tree
  18. CLEANBROKEN = "1"
  19. # Here we use PACKAGECONFIG options to pick which directories we configure/build.
  20. # Remember on upgrades to check that no new tools have been added.
  21. PACKAGECONFIG ??= "as10k1 hdajacksensetest hda-verb hdsploader ld10k1 mixartloader pcxhrloader \
  22. sb16_csp seq--sbiload sscape_ctl us428control usx2yloader vxloader \
  23. ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'hdajackretask', '', d)} \
  24. "
  25. PACKAGECONFIG[as10k1] = ""
  26. PACKAGECONFIG[echomixer] = ",,gtk+"
  27. PACKAGECONFIG[envy24control] = ",,gtk+"
  28. PACKAGECONFIG[hda-verb] = ""
  29. PACKAGECONFIG[hdajackretask] = ",,gtk+3"
  30. PACKAGECONFIG[hdajacksensetest] = ",,glib-2.0"
  31. PACKAGECONFIG[hdspconf] = ",,fltk"
  32. PACKAGECONFIG[hdsploader] = ""
  33. PACKAGECONFIG[hdspmixer] = ",,fltk"
  34. PACKAGECONFIG[ld10k1] = ""
  35. PACKAGECONFIG[mixartloader] = ""
  36. PACKAGECONFIG[pcxhrloader] = ""
  37. PACKAGECONFIG[qlo10k1] = ",,qt-x11-free"
  38. PACKAGECONFIG[rmedigicontrol] = ",,gtk+"
  39. PACKAGECONFIG[sb16_csp] = ""
  40. PACKAGECONFIG[seq--sbiload] = ""
  41. PACKAGECONFIG[sscape_ctl] = ""
  42. PACKAGECONFIG[us428control] = ""
  43. PACKAGECONFIG[usx2yloader] = ""
  44. PACKAGECONFIG[vxloader] = ""
  45. # At the time of writing pyalsa is not packaged for OE, so this is not expected
  46. # to work.
  47. PACKAGECONFIG[hwmixvolume] = ",,,python-core python-pygobject pyalsa"
  48. python do_configure() {
  49. for subdir in d.getVar("PACKAGECONFIG").split():
  50. subdir = subdir.replace("--", "/")
  51. bb.note("Configuring %s" % subdir)
  52. dd = d.createCopy()
  53. dd.setVar("S", os.path.join(d.getVar("S"), subdir))
  54. bb.build.exec_func("autotools_do_configure", dd)
  55. }
  56. python do_compile() {
  57. for subdir in d.getVar("PACKAGECONFIG").split():
  58. subdir = subdir.replace("--", "/")
  59. bb.note("Compiling %s" % subdir)
  60. dd = d.createCopy()
  61. dd.setVar("S", os.path.join(d.getVar("S"), subdir))
  62. bb.build.exec_func("autotools_do_compile", dd)
  63. }
  64. python do_install() {
  65. d.delVarFlag("autotools_do_install", "cleandirs")
  66. for subdir in d.getVar("PACKAGECONFIG").split():
  67. subdir = subdir.replace("--", "/")
  68. bb.note("Installing %s" % subdir)
  69. dd = d.createCopy()
  70. dd.setVar("S", os.path.join(d.getVar("S"), subdir))
  71. bb.build.exec_func("autotools_do_install", dd)
  72. # Just remove bash-needing init script that isn't installed as an init script
  73. try:
  74. os.remove(oe.path.join(d.getVar("D"), d.getVar("sbindir"), "ld10k1d"))
  75. except:
  76. pass
  77. }
  78. FILES:${PN} += "${datadir}"