Skip to content

Instantly share code, notes, and snippets.

@dromer
Last active March 26, 2021 10:07
Show Gist options
  • Save dromer/f83e28a749aba2bd0ab6f93599f28aa2 to your computer and use it in GitHub Desktop.
Save dromer/f83e28a749aba2bd0ab6f93599f28aa2 to your computer and use it in GitHub Desktop.
wstd-plugins.mk
diff --git a/Makefile b/Makefile
index 6d5dec9..ddfd6e9 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ plugins:
$(MAKE) all -C plugins/arp-delay-env
gen: plugins dpf/utils/lv2_ttl_generator
- @$(CURDIR)/dpf/utils/generate-ttl.sh
+ @echo "no ttl generator"
dpf/utils/lv2_ttl_generator:
$(MAKE) -C dpf/utils/lv2-ttl-generator
######################################
#
# wstd-plugins
#
######################################
WSTD_PLUGINS_VERSION = e3b85cdb4c32e8ba9a79432c316f48dbeff66f56
WSTD_PLUGINS_SITE = $(call github,dromer,WSTD-Plugins,$(WSTD_PLUGINS_VERSION))
WSTD_PLUGINS_BUNDLES = arp-delay-env.lv2
WSTD_PLUGINS_TARGET_MAKE = $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) NOOPT=true -C $(@D)
# needed for git submodules
define WSTD_PLUGINS_EXTRACT_CMDS
rm -rf $(@D)
git clone --recursive git://github.com/dromer/WSTD-Plugins $(@D)
(cd $(@D) && \
git reset --hard $(WSTD_PLUGINS_VERSION) && \
git submodule update)
touch $(@D)/.stamp_downloaded
endef
define WSTD_PLUGINS_BUILD_CMDS
$(WSTD_PLUGINS_TARGET_MAKE)
endef
define WSTD_PLUGINS_INSTALL_TARGET_CMDS
$(WSTD_PLUGINS_TARGET_MAKE) install PREFIX=/usr DESTDIR=$(TARGET_DIR)
cp -rL $($(PKG)_PKGDIR)/arp-delay-env.lv2/* $(TARGET_DIR)/usr/lib/lv2/arp-delay-env.lv2/
endef
$(eval $(generic-package))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment