37 lines
920 B
BlitzBasic
Executable File
37 lines
920 B
BlitzBasic
Executable File
DESCRIPTION = "mic-asp"
|
|
LICENSE = "MediaTekProprietary"
|
|
DEPENDS = "alsa-lib"
|
|
APPS_SRC = "${TOPDIR}/../src/apps/aud-base/mic_asp"
|
|
|
|
inherit workonsrc systemd
|
|
|
|
WORKONSRC = "${APPS_SRC}"
|
|
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
SYSTEMD_SERVICE_${PN} = "mic_asp.service"
|
|
|
|
do_compile() {
|
|
echo "Print Env"
|
|
|
|
cd ${S} && make
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}/usr/lib64
|
|
install -d ${D}${bindir}
|
|
install -d ${D}${systemd_unitdir}/system
|
|
install -d ${D}/data
|
|
#install -d ${D}/data/res
|
|
cp -a ${S}/res ${D}/data/
|
|
install -m 0644 ${S}libs/libaiwrap_6mic_c500.so ${D}/usr/lib64/
|
|
install -m 0644 ${S}libs/lib6mic_circle.so ${D}/usr/lib64/
|
|
install -m 755 ${S}/mic_asp ${D}${bindir}
|
|
install -m 755 ${S}/mic_asp.service ${D}${systemd_unitdir}/system
|
|
}
|
|
|
|
FILES_${PN} += "/usr/lib64 /data/res"
|
|
FILES_${PN} += "${systemd_unitdir}/system/mic_asp.service"
|
|
INSANE_SKIP_${PN} += "already-stripped ldflags"
|
|
FILES_${PN}-dev = ""
|
|
|