annotate src/pkg-config.mk @ 3656:9a33176ea64d

include LDFLAGS and CPPFLAGS in pkg-config configure command
author John W. Eaton <jwe@octave.org>
date Wed, 09 Jul 2014 09:13:21 -0400
parents 13be64f9f16d
children 0e56fe2d2ef5
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3441
diff changeset
6 $(PKG)_VERSION := 0.28
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 71853779b12f958777bffcb8ca6d849b4d3bed46
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
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 echo $($(PKG)_VERSION)
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
16 endef
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
17
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
18 # 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
19 ifeq ($(MXE_NATIVE_MINGW_BUILD),yes)
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
20 $(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
21 endif
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
22
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
23 define $(PKG)_BUILD
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
24 mkdir '$(1).build'
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
25 cd '$(1)' && autoreconf
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
26 cd '$(1).build' && '$(1)/configure' \
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
27 $(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
28 $(CONFIGURE_CPPFLAGS) \
9a33176ea64d include LDFLAGS and CPPFLAGS in pkg-config configure command
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
29 $(CONFIGURE_LDFLAGS) \
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
30 --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
31 --with-libiconv=gnu \
3413
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
32 $($(PKG)_CONFIG_OPTS) \
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
33 --with-pc_path='$(HOST_LIBDIR)/pkgconfig' \
81b16a4eb550 Compile pkg-config as a host tool
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
34 --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
35 $(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
36 $(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
37 endef