Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
50 lines
1.6 KiB
Makefile
50 lines
1.6 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=ttymidi-sysex
|
|
PKG_SOURCE_DATE:=2021-05-07
|
|
PKG_SOURCE_VERSION:=e519a1167253e24ae35caed0371fed5bd4f26061
|
|
PKG_RELEASE:=3
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://github.com/cchaussat/ttymidi-sysex
|
|
PKG_MIRROR_HASH:=8d6bb738a08a65c25fcc442777750abbee812a24a29236242032e2d761774541
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
PKG_BUILD_DEPENDS:=!USE_GLIBC:argp-standalone
|
|
PKG_BUILD_FLAGS:=lto
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/ttymidi-sysex
|
|
SECTION:=sound
|
|
CATEGORY:=Sound
|
|
TITLE:=ttymidi (with full bi-di sysex support)
|
|
URL:=https://github.com/cchaussat/ttymidi-sysex
|
|
DEPENDS:=+alsa-lib
|
|
endef
|
|
|
|
define Package/ttymidi-sysex/description
|
|
ttymidi is a GPL-licensed program that allows external serial devices
|
|
to interface with ALSA MIDI applications. The main motivation behind
|
|
ttymidi was to make Arduino boards talk to MIDI applications without
|
|
the need to use (or build) any extra hardware.
|
|
endef
|
|
|
|
TARGET_LDFLAGS += -lasound -Wl,--gc-sections,--as-needed
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
( cd $(PKG_BUILD_DIR) ; $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -o ttymidi-sysex ttymidi-sysex.c $(if $(CONFIG_USE_GLIBC),,$(STAGING_DIR)/usr/lib/libargp.a) )
|
|
endef
|
|
|
|
define Package/ttymidi-sysex/install
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/uci-defaults
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ttymidi-sysex $(1)/usr/bin/
|
|
$(INSTALL_BIN) ./files/ttymidi-sysex.init $(1)/etc/init.d/ttymidi-sysex
|
|
$(INSTALL_DATA) ./files/ttymidi-sysex.defaults $(1)/etc/uci-defaults/90-ttymidi-sysex
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,ttymidi-sysex))
|