Skip to content

Commit

Permalink
Fix neuralrecord build
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Oct 13, 2023
1 parent 1b9eef8 commit 1dd84d8
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions plugins/package/neuralrecord/neuralrecord.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,17 @@ NEURALRECORD_SITE = https://github.com/brummer10/neuralrecord.git
NEURALRECORD_SITE_METHOD = git
NEURALRECORD_BUNDLES = neuralrecord.lv2

NEURALRECORD_TARGET_MAKE = $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)

# needed for git submodules
define NEURALRECORD_EXTRACT_CMDS
rm -rf $(@D)
git clone --recursive $(NEURALRECORD_SITE) $(@D)
(cd $(@D) && \
git reset --hard $(NEURALRECORD_VERSION) && \
git submodule update)
touch $(@D)/.stamp_downloaded
endef
# needed for submodules support
NEURALRECORD_PRE_DOWNLOAD_HOOKS += MOD_PLUGIN_BUILDER_DOWNLOAD_WITH_SUBMODULES

NEURALRECORD_TARGET_MAKE = $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) NOOPT=true

define NEURALRECORD_BUILD_CMDS
$(NEURALRECORD_TARGET_MAKE) mod
endef

define NEURALRECORD_INSTALL_TARGET_CMDS
$(NEURALRECORD_TARGET_MAKE) install-mod DESTDIR=$(TARGET_DIR) INSTALL_DIR=/usr/lib/lv2
$(NEURALRECORD_TARGET_MAKE) install-mod DESTDIR=$(TARGET_DIR) LV2_DIR=/usr/lib/lv2
endef

$(eval $(generic-package))

0 comments on commit 1dd84d8

Please sign in to comment.