Skip to content

Instantly share code, notes, and snippets.

View evilactually's full-sized avatar

Vlad Shcherbakov evilactually

View GitHub Profile
manifest.ttl:manifest.ttl.in
sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in
$(CLSNAME).ttl:$(CLSNAME).cpp
g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME)
./$(CLSNAME) > $(CLSNAME).ttl
faust2lv2 am_modulator.dsp
mkdir -p ./plugins/package/am_modulator/source
am_modulator.cpp:47:27: fatal error: faust/dsp/dsp.h: No such file or directory
#include <faust/dsp/dsp.h>
class am_modulator : public dsp {
$(CLSNAME).so:$(CLSNAME).cpp
$(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@
$(CLSNAME).cpp:am-modulator.dsp
faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@
cat <<'EOF' > "./manifest.ttl.in"
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<@uri@>
a lv2:Plugin ;
lv2:binary <@name@@dllext@> ;
rdfs:seeAlso <@[email protected]> .
EOF
cd ..
sed -e "s?@prefix@?AM_MODULATOR?g" -e "s?@clsname@?am_modulator?g" <<'EOF' > "./am_modulator.mk"
# where to find the source code - locally in this case
@prefix@_SITE_METHOD = local
@prefix@_SITE = $($(PKG)_PKGDIR)/
# even though this is a local build, we still need a version number
# bump this number if you need to force a rebuild
@prefix@_VERSION = 1
# dependencies (list of other buildroot packages, separated by space)
@prefix@_DEPENDENCIES =