aboutsummaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/alsa-equal/alsa-equal_0.6.bb
blob: b5c8ddca116c85aeae51acd75d60d9fea5b465ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
DESCRIPTION = "A real-time adjustable equalizer plugin for ALSA"
HOMEPAGE = "https://web.archive.org/web/20161105202833/http://thedigitalmachine.net/alsaequal.html"
LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=243b725d71bb5df4a1e5920b344b86ad"

DEPENDS = "alsa-lib"

SRC_URI = " \
    https://launchpad.net/ubuntu/+archive/primary/+files/alsaequal_${PV}.orig.tar.bz2 \
    file://0001-Fix-asneeded.patch \
    file://0002-Fix-Eq-CAPS-plugin-name.patch \
    file://0003-Fix-mixer.patch \
"

SRC_URI[md5sum] = "d2edc7710c72cbf3ab297c414e35ebda"
SRC_URI[sha256sum] = "916e7d152added24617efc350142438a46099efe062bd8781d36dbf10b4e6ff0"

S = "${WORKDIR}/alsaequal"

EXTRA_OEMAKE = " \
    Q='' \
    CC='${CC}' \
    LD='${CC}' \
    LDFLAGS='${LDFLAGS} -shared -lasound' \
    CFLAGS='${CFLAGS} -I. -funroll-loops -ffast-math -fPIC -DPIC' \
    SND_PCM_LIBS='-lasound' \
    SND_CTL_LIBS='-lasound' \
"

do_compile() {
    oe_runmake all
}

do_install() {
    install -Dm 0644 libasound_module_ctl_equal.so ${D}${libdir}/alsa-lib/libasound_module_ctl_equal.so
    install -Dm 0644 libasound_module_pcm_equal.so ${D}${libdir}/alsa-lib/libasound_module_pcm_equal.so
}

RDEPENDS:${PN} += " \
    alsa-utils \
    caps \
"

FILES:${PN} = "${libdir}/alsa-lib/"