Mercurial > mxe-octave
view src/gtk2.mk @ 3220:0d3feaef089f
Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
* tools/set_mxe_env.sh.in: use MXE_NATIVE_BUILD config variable to set HOST for environment path.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Wed, 07 Aug 2013 19:18:23 -0400 |
parents | 5ef49fb3299d |
children | 13be64f9f16d |
line wrap: on
line source
# This file is part of MXE. # See index.html for further information. PKG := gtk2 $(PKG)_IGNORE := $(PKG)_CHECKSUM := baf5c73e186352cad767392a6b55840be0326ddc $(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION) $(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.xz $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) $(PKG)_DEPS := gettext libpng jpeg tiff jasper glib atk pango cairo gdk-pixbuf define $(PKG)_UPDATE $(WGET) -q -O- 'http://git.gnome.org/browse/gtk+/refs/tags' | \ grep '<a href=' | \ $(SED) -n 's,.*<a[^>]*>\([0-9]*\.[0-9]*[02468]\.[^<]*\)<.*,\1,p' | \ grep -v '^2\.9' | \ grep '^2\.' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ $(ENABLE_SHARED_OR_STATIC) \ --prefix='$(HOST_PREFIX)' \ --enable-explicit-deps \ --disable-glibtest \ --disable-modules \ --disable-cups \ --disable-test-print-backend \ --disable-gtk-doc \ --disable-man \ --with-included-immodules \ --without-x $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= '$(MXE_CC)' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(HOST_BINDIR)/test-gtk2.exe' \ `'$(MXE_PKG_CONFIG)' gtk+-2.0 --cflags --libs` endef