Mercurial > mxe-octave
changeset 6282:502fc27d1aac
add libmodbus
* src/libmodbus.mk: new file
* dist-files.mk, index.html: add ref to new file
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 30 Jun 2022 15:15:27 -0400 |
parents | 42b2fb1a2f70 |
children | 33173fb04195 |
files | dist-files.mk index.html src/libmodbus.mk |
diffstat | 3 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Thu Jun 30 11:14:28 2022 -0400 +++ b/dist-files.mk Thu Jun 30 15:15:27 2022 -0400 @@ -274,6 +274,7 @@ libmikmod-test.c \ libmikmod.mk \ libmng.mk \ + libmodbus.mk \ libmodplug-test.c \ libmodplug.mk \ libmpcdec-1-configure_ac.patch \
--- a/index.html Thu Jun 30 11:14:28 2022 -0400 +++ b/index.html Thu Jun 30 15:15:27 2022 -0400 @@ -1650,6 +1650,10 @@ <td class="website"><a href="www.musepack.net/index.php">libmpcdec</a></td> </tr> <tr> + <td class="package">libmodbus</td> + <td class="website"><a href="https://libmodbus.org/">libmodbus</a></td> + </tr> + <tr> <td class="package">libmodplug</td> <td class="website"><a href="http://modplug-xmms.sourceforge.net/">libmodplug</a></td> </tr>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libmodbus.mk Thu Jun 30 15:15:27 2022 -0400 @@ -0,0 +1,28 @@ +PKG := libmodbus +$(PKG)_IGNORE := +$(PKG)_VERSION := 3.1.7 +$(PKG)_CHECKSUM := 71d0aa223f21ddfacc8a2461f2e3e0c77e128efb +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz +$(PKG)_URL := https://libmodbus.org/releases/$($(PKG)_FILE) +$(PKG)_DEPS := + +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://github.com/stephane/libmodbus/tags' | \ + $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \ + tail -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ + $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ + $(ENABLE_SHARED_OR_STATIC) \ + --without-debug \ + --prefix='$(HOST_PREFIX)' \ + && $(CONFIGURE_POST_HOOK) + + $(MAKE) -C '$(1)' -j '$(JOBS)' $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) + $(MAKE) -C '$(1)' -j 1 install $(MXE_DISABLE_DOCS) $(MXE_DISABLE_PROGS) DESTDIR='$(3)' +endef +