rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | DESCRIPTION = "MTK audio mixer ctrl simple interface" |
| 2 | LICENSE = "MediaTekProprietary" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 4 | |
| 5 | INSANE_SKIP_${PN} += "installed-vs-shipped" |
| 6 | |
| 7 | inherit workonsrc deploy |
| 8 | WORKONSRC = "${TOPDIR}/../src/multimedia/audio-misc/audio-mixerctrl-lib" |
| 9 | |
| 10 | DEPENDS = "alsa-lib" |
| 11 | |
| 12 | FILES_${PN} += "${libdir}/*" |
| 13 | FILES_${PN}-dev += "${includedir}" |
| 14 | PACKAGES = "${PN} ${PN}-dev" |
| 15 | |
| 16 | #Skip strip check in QA test. |
| 17 | INSANE_SKIP_${PN} += "already-stripped" |
| 18 | INSANE_SKIP_${PN} += "dev-so" |
| 19 | |
| 20 | do_compile () { |
| 21 | oe_runmake |
| 22 | } |
| 23 | |
| 24 | do_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 | } |