Browse Source

More MOD fixup

Signed-off-by: falkTX <falktx@falktx.com>
main
falkTX 2 months ago
parent
commit
b8a8544bd4
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 11 additions and 6 deletions
  1. +1
    -4
      build-mod-plugin.sh
  2. +10
    -2
      setup/mod-audio/builder.mk

+ 1
- 4
build-mod-plugin.sh View File

@@ -46,9 +46,6 @@ fi
if [ ! -e "${PAWPAW_PREFIX}/usr/share" ]; then
ln -s ../share "${PAWPAW_PREFIX}/usr/share"
fi
if [ ! -e "${PAWPAW_PREFIX}/usr/var" ]; then
ln -s ../var "${PAWPAW_PREFIX}/usr/var"
fi

# ---------------------------------------------------------------------------------------------------------------------

@@ -63,6 +60,6 @@ if [ ! -e mod-plugin-builder ]; then
exit 1
fi

make -f setup/mod-audio/builder.mk pkgname="${plugin}" ${MAKE_ARGS} WITH_LTO=false VERBOSE=1
make -f setup/mod-audio/builder.mk pkgname="${plugin}" ${MAKE_ARGS} PREFIX=/usr WITH_LTO=false VERBOSE=1 -j

# ---------------------------------------------------------------------------------------------------------------------

+ 10
- 2
setup/mod-audio/builder.mk View File

@@ -154,15 +154,23 @@ STAMP_PATCHED = $($(PKG)_BUILDDIR)/.stamp_patched
STAMP_CONFIGURED = $($(PKG)_BUILDDIR)/.stamp_configured
STAMP_BUILT = $($(PKG)_BUILDDIR)/.stamp_built
STAMP_INSTALLED = $($(PKG)_BUILDDIR)/.stamp_installed
STAMP_PINSTALLED = $($(PKG)_BUILDDIR)/.stamp_post_installed

PAWPAW_TMPDIR = /tmp/PawPaw
PAWPAW_TMPNAME = git-dl

all: $(STAMP_INSTALLED)
all: $(STAMP_PINSTALLED)

$(STAMP_PINSTALLED): $(STAMP_INSTALLED)
$(call $($(PKG)_POST_INSTALL_TARGET_HOOKS))
ifneq (,$(wildcard $(PAWPAW_PREFIX)/usr/lib/lv2/$(firstword $($(PKG)_BUNDLES))/*.dll))
$(foreach b,$($(PKG)_BUNDLES),sed -i -e 's|lv2:binary <\([_a-zA-Z0-9-]*\)\.so>|lv2:binary <\1\.dll>|g' $(PAWPAW_PREFIX)/usr/lib/lv2/$(b)/manifest.ttl;)
$(foreach b,$($(PKG)_BUNDLES),rm -f $(PAWPAW_PREFIX)/usr/lib/lv2/$(b)/*.dll.a;)
endif
touch $@

$(STAMP_INSTALLED): $(STAMP_BUILT)
$($(PKG)_INSTALL_TARGET_CMDS)
$(call $($(PKG)_POST_INSTALL_TARGET_HOOKS))
touch $@

$(STAMP_BUILT): $(STAMP_CONFIGURED)


Loading…
Cancel
Save