Last active
June 1, 2020 03:41
-
-
Save evilactually/61e087df6ac7cc6ef8f531059264c88c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = @[email protected] | |
# 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