Introduce audio-plugin-common.bbclass for global audio-plugin settings

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2019-10-07 08:02:18 +02:00
parent 82848fe66f
commit 5faff09fd0
3 changed files with 20 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
# class for audio plugin common settings
# plugin package names
PN_DSSI = "${PN}-dssi"
PN_LADSPA = "${PN}-ladspa"
PN_LV2 = "${PN}-lv2"
PN_VST = "${PN}-vst"

View File

@@ -28,7 +28,7 @@ LV2_POSTINST_MANIFEST = "${datadir}/${BPN}/lv2-postinst-manifest"
# (added by git-submodule) we can set a default matchin > 80%+
LV2-TTL-GENERATOR ?= "${S}/dpf/utils/lv2_ttl_generator"
inherit qemu-ext
inherit qemu-ext audio-plugin-common
# override this function and execute sed (or other magic) to adjust Makefiles
# so that lv2-ttl-generator is not executed but plugin information. Same here:
@@ -86,7 +86,7 @@ do_install_append() {
fi
}
pkg_postinst_ontarget_${PN}-lv2() {
pkg_postinst_ontarget_${PN_LV2}() {
if [ -e ${LV2_POSTINST_MANIFEST} ]; then
oldpath=`pwd`
for sofile in `cat ${LV2_POSTINST_MANIFEST}`; do
@@ -97,7 +97,7 @@ pkg_postinst_ontarget_${PN}-lv2() {
fi
}
pkg_prerm_${PN}-lv2() {
pkg_prerm_${PN_LV2}() {
if [ -e ${LV2_POSTINST_MANIFEST} ]; then
for sofile in `cat ${LV2_POSTINST_MANIFEST}`; do
path=`dirname "$sofile"`
@@ -108,5 +108,5 @@ pkg_prerm_${PN}-lv2() {
fi
}
FILES_${PN}-lv2 += "${LV2_POSTINST_MANIFEST}"
RDEPENDS_${PN}-lv2 += "lv2-ttl-generator"
FILES_${PN_LV2} += "${LV2_POSTINST_MANIFEST}"
RDEPENDS_${PN_LV2} += "lv2-ttl-generator"

View File

@@ -1,8 +1,10 @@
# Auto package audio plugins
PACKAGES =+ "${PN}-dssi ${PN}-ladspa ${PN}-lv2 ${PN}-vst"
inherit audio-plugin-common
FILES_${PN}-dssi += "${libdir}/dssi"
FILES_${PN}-ladspa += "${libdir}/ladspa"
FILES_${PN}-lv2 += "${libdir}/lv2"
FILES_${PN}-vst += "${libdir}/vst"
PACKAGES =+ "${PN_DSSI} ${PN_LADSPA} ${PN_LV2} ${PN_VST}"
FILES_${PN_DSSI} += "${libdir}/dssi"
FILES_${PN_LADSPA} += "${libdir}/ladspa"
FILES_${PN_LV2} += "${libdir}/lv2"
FILES_${PN_VST} += "${libdir}/vst"