annotate src/build-pkg-config.mk @ 4545:0e56fe2d2ef5

Makefile.in: add update-build-tools target * Makefile.in: add update-build-tools target * src/build-autoconf.mk, src/build-automake.mk, src/build-bison.mk, src/build-gawk.mk, src/build-gcc.mk, src/build-gettext.mk, src/build-gperf.mk, src/build-m4.mk, src/build-texinfo.mk, src/build-libtool.mk : update PKG_UPDATE for getting latest version from gnu.org * src/build-cmake.mk, src/build-flex.mk, src/build-lzip.mk, src/build-pkg-config.mk, src/pkg-config.mk, src/build-scons.mk : add implemented PKG_UPDATE macro
author John Donoghue <john.donoghue@ieee.org>
date Thu, 23 Nov 2017 12:05:29 -0500
parents 13be64f9f16d
children 34620b8e6c41
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2972
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := build-pkg-config
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3293
diff changeset
6 $(PKG)_VERSION := 0.28
2973
b5bdf006eebc update to newer version of pkg-config so it can build without pkg-config or glib already installed
John W. Eaton <jwe@octave.org>
parents: 2972
diff changeset
7 $(PKG)_CHECKSUM := 71853779b12f958777bffcb8ca6d849b4d3bed46
2972
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := pkg-config-$($(PKG)_VERSION)
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := pkg-config-$($(PKG)_VERSION).tar.gz
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_URL := http://pkgconfig.freedesktop.org/releases/$($(PKG)_FILE)
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_DEPS :=
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 define $(PKG)_UPDATE
4545
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3480
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: 3480
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: 3480
diff changeset
16 $(SORT) -V |
0e56fe2d2ef5 Makefile.in: add update-build-tools target
John Donoghue <john.donoghue@ieee.org>
parents: 3480
diff changeset
17 tail -1
2972
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 endef
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19
3019
d4c8aa885d1b Update build-pkg-config.mk for native mingw build flags
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
20 # native mingw needs to be told an architechure for the internal glib to build
d4c8aa885d1b Update build-pkg-config.mk for native mingw build flags
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
21 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
d4c8aa885d1b Update build-pkg-config.mk for native mingw build flags
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
22 $(PKG)_CONFIG_OPTS := CPPFLAGS='-march=i486' LN=$(LN)
d4c8aa885d1b Update build-pkg-config.mk for native mingw build flags
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
23 endif
d4c8aa885d1b Update build-pkg-config.mk for native mingw build flags
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
24
2972
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 define $(PKG)_BUILD
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 mkdir '$(1).build'
3040
706c4daf3372 PKG_CONFIG_PATH fixes
John W. Eaton <jwe@octave.org>
parents: 3019
diff changeset
27 cd '$(1)' && autoreconf
706c4daf3372 PKG_CONFIG_PATH fixes
John W. Eaton <jwe@octave.org>
parents: 3019
diff changeset
28 cd '$(1).build' && '$(1)/configure' \
2973
b5bdf006eebc update to newer version of pkg-config so it can build without pkg-config or glib already installed
John W. Eaton <jwe@octave.org>
parents: 2972
diff changeset
29 --with-internal-glib \
3019
d4c8aa885d1b Update build-pkg-config.mk for native mingw build flags
John Donoghue <john.donoghue@ieee.org>
parents: 3014
diff changeset
30 $($(PKG)_CONFIG_OPTS) \
3040
706c4daf3372 PKG_CONFIG_PATH fixes
John W. Eaton <jwe@octave.org>
parents: 3019
diff changeset
31 --with-pc_path='$(HOST_LIBDIR)/pkgconfig' \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
32 --prefix='$(BUILD_TOOLS_PREFIX)'
2972
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33 $(MAKE) -C '$(1).build' -j '$(JOBS)'
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
34 rm -f "$(BUILD_TOOLS_PREFIX)/bin/`config.guess`-pkg-config"
3293
cf6f40cededb Support file list generation in packages.
Michael Goffioul <michael.goffioul@gmail.com>
parents: 3040
diff changeset
35 $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)'
2972
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
36 endef