annotate src/build-pkg-config.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 4f9b72cf7ee7
children b6c7244a2f66
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 :=
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
6 $(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
7 $(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
8 $(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
9 $(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
10 $(PKG)_DEPS :=
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 define $(PKG)_UPDATE
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 echo $($(PKG)_VERSION)
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_BUILD
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 mkdir '$(1).build'
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 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
20 --with-internal-glib \
2997
4f9b72cf7ee7 allow native builds too
John W. Eaton <jwe@octave.org>
parents: 2973
diff changeset
21 --with-pc-path='$(MXE_LIBDIR)/pkgconfig' \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2997
diff changeset
22 --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
23 $(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
24 rm -f "$(BUILD_TOOLS_PREFIX)/bin/`config.guess`-pkg-config"
2972
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 $(MAKE) -C '$(1).build' -j 1 install
169114e27438 also build pkg-config instead of expecting it to be present
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 endef