annotate src/pkg-config.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 34620b8e6c41
children 1c4922328c4f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
1 # This file is part of MXE.
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
2 # See index.html for further information.
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
3
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
4 PKG := pkg-config
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
4551
34620b8e6c41 pkg-config: update to v0.29.2
John D
parents: 4545
diff changeset
6 $(PKG)_VERSION := 0.29.2
34620b8e6c41 pkg-config: update to v0.29.2
John D
parents: 4545
diff changeset
7 $(PKG)_CHECKSUM := 76e501663b29cb7580245720edfb6106164fad2b
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := pkg-config-$($(PKG)_VERSION)
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
9 $(PKG)_FILE := pkg-config-$($(PKG)_VERSION).tar.gz
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 $(PKG)_URL := http://pkgconfig.freedesktop.org/releases/$($(PKG)_FILE)
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
11 $(PKG)_DEPS :=
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
12
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
13 define $(PKG)_UPDATE
4545
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3656
diff changeset
14 $(WGET) -q -O- 'http://pkgconfig.freedesktop.org/releases/' | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3656
diff changeset
15 $(SED) -n 's,.*<a href="pkg-config-\([0-9\.]*\)\.tar.*,\1,p' | \
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3656
diff changeset
16 $(SORT) -V |
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3656
diff changeset
17 tail -1
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18 endef
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
19
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20 # native mingw needs to be told an architechure for the internal glib to build
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
21 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22 $(PKG)_CONFIG_OPTS := CPPFLAGS='-march=i486' LN=$(LN)
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23 endif
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
25 define $(PKG)_BUILD
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
26 mkdir '$(1).build'
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
27 cd '$(1)' && autoreconf
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
28 cd '$(1).build' && '$(1)/configure' \
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
29 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
3656
9a33176ea64d include LDFLAGS and CPPFLAGS in pkg-config configure command
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
30 $(CONFIGURE_CPPFLAGS) \
9a33176ea64d include LDFLAGS and CPPFLAGS in pkg-config configure command
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
31 $(CONFIGURE_LDFLAGS) \
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
32 --with-internal-glib \
3441
be097438c96f make native gnu-linux builds work for pkg-config and libgomp
John W. Eaton <jwe@octave.org>
parents: 3413
diff changeset
33 --with-libiconv=gnu \
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
34 $($(PKG)_CONFIG_OPTS) \
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
35 --with-pc_path='$(HOST_LIBDIR)/pkgconfig' \
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
36 --prefix='$(HOST_PREFIX)'
3441
be097438c96f make native gnu-linux builds work for pkg-config and libgomp
John W. Eaton <jwe@octave.org>
parents: 3413
diff changeset
37 $(MAKE) -C '$(1).build' V=1 -j 1
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
38 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)'
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
39 endef