Mercurial > mxe-octave
view src/qdbm.mk @ 5531:eae508c12529
Add build rule for build-octave (bug #49503).
* src/build-octave.mk: Add new build rule for build-octave which can be used for
cross-building binary packages that depend on Octave as a build tool.
* dist-files.mk: Add new file to list.
* index.html: Add new package to list.
* src/of-communications.mk, src/of-image.mk, src/of-mapping.mk,
src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk,
src/of-windows.mk: Add optional dependency on build-octave.
* configure.ac: Add new configure switch "--disable-system-octave" that is
needed to build the build-octave package.
* Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the
default build tools and build it only if a package explicitly depends on it.
Display warning about missing native Octave version only if necessary.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 08 Sep 2020 23:04:38 +0200 |
parents | 13be64f9f16d |
children | 6466e4c98c93 |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := qdbm $(PKG)_IGNORE := $(PKG)_VERSION := 1.8.78 $(PKG)_CHECKSUM := 8c2ab938c2dad8067c29b0aa93efc6389f0e7076 $(PKG)_SUBDIR := qdbm-$($(PKG)_VERSION) $(PKG)_FILE := qdbm-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://fallabs.com/qdbm/qdbm-1.8.78.tar.gz $(PKG)_DEPS := bzip2 libiconv lzo zlib define $(PKG)_UPDATE wget -q -O- 'http://fallabs.com/qdbm/' | \ grep 'qdbm-' | \ $(SED) -n 's,.*qdbm-\([0-9][^>]*\)\.tar.*,\1,p' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ --prefix='$(HOST_PREFIX)' \ --enable-lzo \ --enable-bzip \ --enable-zlib \ --enable-iconv $(MAKE) -C '$(1)' -j '$(JOBS)' \ static \ MYBINS= \ MYLIBS=libqdbm.a \ AR=i686-pc-mingw32-ar \ RANLIB=i686-pc-mingw32-ranlib $(INSTALL) -d '$(HOST_LIBDIR)/pkgconfig' $(INSTALL) -m644 '$(1)/libqdbm.a' '$(HOST_LIBDIR)' $(INSTALL) -m644 '$(1)/qdbm.pc' '$(HOST_LIBDIR)/pkgconfig/' $(INSTALL) -d '$(HOST_INCDIR)' cd '$(1)' && $(INSTALL) -m644 depot.h curia.h relic.h hovel.h \ cabin.h villa.h vista.h odeum.h '$(HOST_INCDIR)' '$(MXE_CC)' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(HOST_BINDIR)/test-qdbm.exe' \ `'$(MXE_PKG_CONFIG)' qdbm --cflags --libs` endef