Skip to content

Instantly share code, notes, and snippets.

@evilactually
Last active June 1, 2020 03:41
Show Gist options
  • Save evilactually/61e087df6ac7cc6ef8f531059264c88c to your computer and use it in GitHub Desktop.
Save evilactually/61e087df6ac7cc6ef8f531059264c88c to your computer and use it in GitHub Desktop.
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 =
# LV2 bundles that this package generates (space separated list)
@prefix@_BUNDLES = @clsname@.lv2
# call make with the current arguments and path. "$(@D)" is the build directory.
@prefix@_TARGET_MAKE = $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/source
# build command
define @prefix@_BUILD_CMDS
$(@prefix@_TARGET_MAKE)
endef
# install command
define @prefix@_INSTALL_TARGET_CMDS
$(@prefix@_TARGET_MAKE) install DESTDIR=$(TARGET_DIR)
endef
# import everything else from the buildroot generic package
$(eval $(generic-package))
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment