Mercurial > mxe-octave
changeset 3413:81b16a4eb550
Compile pkg-config as a host tool
* index.html: Add pkg-config-package.
* src/pkg-config.mk: New file.
* dist-diles.mk: Added pkg-config.mk
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 12 Jan 2014 00:18:42 -0500 |
parents | b52660819c01 |
children | 3d24cec05900 |
files | dist-files.mk index.html src/pkg-config.mk |
diffstat | 3 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dist-files.mk Sat Jan 11 18:25:55 2014 -0500 +++ b/dist-files.mk Sun Jan 12 00:18:42 2014 -0500 @@ -427,6 +427,7 @@ physfs-test.c \ physfs.mk \ pixman.mk \ + pkg-config.mk \ plibc.mk \ plotmm-1-fixes.patch \ plotmm.mk \
--- a/index.html Sat Jan 11 18:25:55 2014 -0500 +++ b/index.html Sun Jan 12 00:18:42 2014 -0500 @@ -2143,6 +2143,11 @@ <td id="pixman-website"><a href="http://cairographics.org/">pixman</a></td> </tr> <tr> + <td id="pkg-config-package">pkg-config</td> + <td id="pkg-config-version">0.28</td> + <td id="pkg-config-website"><a href="http://www.freedesktop.org/wiki/Software/pkg-config">pkg-config</a></td> + </tr> + <tr> <td id="plotmm-package">plotmm</td> <td id="plotmm-version">0.1.2</td> <td id="plotmm-website"><a href="http://plotmm.sourceforge.net/">PlotMM</a></td>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/pkg-config.mk Sun Jan 12 00:18:42 2014 -0500 @@ -0,0 +1,33 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := pkg-config +$(PKG)_IGNORE := +$(PKG)_CHECKSUM := 71853779b12f958777bffcb8ca6d849b4d3bed46 +$(PKG)_SUBDIR := pkg-config-$($(PKG)_VERSION) +$(PKG)_FILE := pkg-config-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := http://pkgconfig.freedesktop.org/releases/$($(PKG)_FILE) +$(PKG)_DEPS := + +define $(PKG)_UPDATE + echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +# native mingw needs to be told an architechure for the internal glib to build +ifeq ($(MXE_NATIVE_MINGW_BUILD),yes) + $(PKG)_CONFIG_OPTS := CPPFLAGS='-march=i486' LN=$(LN) +endif + +define $(PKG)_BUILD + mkdir '$(1).build' + cd '$(1)' && autoreconf + cd '$(1).build' && '$(1)/configure' \ + $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ + --with-internal-glib \ + $($(PKG)_CONFIG_OPTS) \ + --with-pc_path='$(HOST_LIBDIR)/pkgconfig' \ + --prefix='$(HOST_PREFIX)' + $(MAKE) -C '$(1).build' -j '$(JOBS)' + $(MAKE) -C '$(1).build' -j 1 install DESTDIR='$(3)' +endef