Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "Advanced tools for certain ALSA sound card drivers" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 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." |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 5 | HOMEPAGE = "http://www.alsa-project.org" |
| 6 | BUGTRACKER = "http://alsa-project.org/main/index.php/Bug_Tracking" |
| 7 | SECTION = "console/utils" |
| 8 | LICENSE = "GPLv2 & LGPLv2+" |
| 9 | DEPENDS = "alsa-lib" |
| 10 | |
| 11 | LIC_FILES_CHKSUM = "file://hdsploader/COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \ |
| 12 | file://ld10k1/COPYING.LIB;md5=a916467b91076e631dd8edb7424769c7 \ |
| 13 | " |
| 14 | |
| 15 | SRC_URI = "https://www.alsa-project.org/files/pub/tools/${BP}.tar.bz2" |
| 16 | |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 17 | SRC_URI[md5sum] = "4e6187d2c3a8c73a9d75d66a72faed27" |
| 18 | SRC_URI[sha256sum] = "bfd3c7aae1289269605d3da02279159b10e3dabdd31e658cbceaa30170957349" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | |
| 20 | inherit autotools-brokensep pkgconfig |
| 21 | # brokensep as as10k1 (and probably more) fail out of tree |
| 22 | CLEANBROKEN = "1" |
| 23 | |
| 24 | # Here we use PACKAGECONFIG options to pick which directories we configure/build. |
| 25 | # Remember on upgrades to check that no new tools have been added. |
| 26 | PACKAGECONFIG ??= "as10k1 hdajacksensetest hda-verb hdsploader ld10k1 mixartloader pcxhrloader \ |
| 27 | sb16_csp seq--sbiload sscape_ctl us428control usx2yloader vxloader \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 28 | ${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'hdajackretask', '', d)} \ |
| 29 | " |
| 30 | |
| 31 | PACKAGECONFIG[as10k1] = "" |
| 32 | PACKAGECONFIG[echomixer] = ",,gtk+" |
| 33 | PACKAGECONFIG[envy24control] = ",,gtk+" |
| 34 | PACKAGECONFIG[hda-verb] = "" |
| 35 | PACKAGECONFIG[hdajackretask] = ",,gtk+3" |
| 36 | PACKAGECONFIG[hdajacksensetest] = ",,glib-2.0" |
| 37 | PACKAGECONFIG[hdspconf] = ",,fltk" |
| 38 | PACKAGECONFIG[hdsploader] = "" |
| 39 | PACKAGECONFIG[hdspmixer] = ",,fltk" |
| 40 | PACKAGECONFIG[ld10k1] = "" |
| 41 | PACKAGECONFIG[mixartloader] = "" |
| 42 | PACKAGECONFIG[pcxhrloader] = "" |
| 43 | PACKAGECONFIG[qlo10k1] = ",,qt-x11-free" |
| 44 | PACKAGECONFIG[rmedigicontrol] = ",,gtk+" |
| 45 | PACKAGECONFIG[sb16_csp] = "" |
| 46 | PACKAGECONFIG[seq--sbiload] = "" |
| 47 | PACKAGECONFIG[sscape_ctl] = "" |
| 48 | PACKAGECONFIG[us428control] = "" |
| 49 | PACKAGECONFIG[usx2yloader] = "" |
| 50 | PACKAGECONFIG[vxloader] = "" |
| 51 | |
| 52 | # At the time of writing pyalsa is not packaged for OE, so this is not expected |
| 53 | # to work. |
| 54 | PACKAGECONFIG[hwmixvolume] = ",,,python-core python-pygobject pyalsa" |
| 55 | |
| 56 | python do_configure() { |
| 57 | for subdir in d.getVar("PACKAGECONFIG").split(): |
| 58 | subdir = subdir.replace("--", "/") |
| 59 | bb.note("Configuring %s" % subdir) |
| 60 | dd = d.createCopy() |
| 61 | dd.setVar("S", os.path.join(d.getVar("S"), subdir)) |
| 62 | bb.build.exec_func("autotools_do_configure", dd) |
| 63 | } |
| 64 | |
| 65 | python do_compile() { |
| 66 | for subdir in d.getVar("PACKAGECONFIG").split(): |
| 67 | subdir = subdir.replace("--", "/") |
| 68 | bb.note("Compiling %s" % subdir) |
| 69 | dd = d.createCopy() |
| 70 | dd.setVar("S", os.path.join(d.getVar("S"), subdir)) |
| 71 | bb.build.exec_func("autotools_do_compile", dd) |
| 72 | } |
| 73 | |
| 74 | python do_install() { |
| 75 | for subdir in d.getVar("PACKAGECONFIG").split(): |
| 76 | subdir = subdir.replace("--", "/") |
| 77 | bb.note("Installing %s" % subdir) |
| 78 | dd = d.createCopy() |
| 79 | dd.setVar("S", os.path.join(d.getVar("S"), subdir)) |
| 80 | bb.build.exec_func("autotools_do_install", dd) |
| 81 | |
| 82 | # Just remove bash-needing init script that isn't installed as an init script |
| 83 | try: |
| 84 | os.remove(oe.path.join(d.getVar("D"), d.getVar("sbindir"), "ld10k1d")) |
| 85 | except: |
| 86 | pass |
| 87 | } |
| 88 | |
| 89 | FILES_${PN} += "${datadir}" |