blob: 8d26e418f201f4d18b8877949fca3e96ec6db497 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "MTK audio mixer ctrl simple interface"
2LICENSE = "MediaTekProprietary"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
4
5INSANE_SKIP_${PN} += "installed-vs-shipped"
6
7inherit workonsrc deploy
8WORKONSRC = "${TOPDIR}/../src/multimedia/audio-misc/audio-mixerctrl-lib"
9
10DEPENDS = "alsa-lib"
11
12FILES_${PN} += "${libdir}/*"
13FILES_${PN}-dev += "${includedir}"
14PACKAGES = "${PN} ${PN}-dev"
15
16#Skip strip check in QA test.
17INSANE_SKIP_${PN} += "already-stripped"
18INSANE_SKIP_${PN} += "dev-so"
19
20do_compile () {
21 oe_runmake
22}
23
24do_install_append () {
25 install -d ${D}${includedir}
26 install -m 0644 ${S}/mixer_ctrl.h ${D}${includedir}
27
28 install -d ${D}/${libdir}
29 install -m 0755 ${S}/libmtk_audio_mixer_ctrl.so.1.0.0 ${D}${libdir}
30 cd ${D}${libdir}
31 ln -s libmtk_audio_mixer_ctrl.so.1.0.0 ./libmtk_audio_mixer_ctrl.so.1
32 ln -s libmtk_audio_mixer_ctrl.so.1.0.0 ./libmtk_audio_mixer_ctrl.so
33 cd -
34}