Mercurial > mxe-octave
view src/gtk.mk @ 1212:84cc482e2b06
tidy up handling of staic library dependencies
-ldnsapi provided by pkgconfig/gio-2.0.pc.
-lwinspool -lcomctl32 -lcomdlg32 provided by pkgconfig/gtk+-2.0.pc
Don't need to explicitly mention these building test programs.
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Wed, 29 Sep 2010 02:00:35 +0200 |
parents | 821fabe85a36 |
children | 8d43a215ea43 |
line wrap: on
line source
# This file is part of mingw-cross-env. # See doc/index.html for further information. # GTK+ PKG := gtk $(PKG)_IGNORE := $(PKG)_VERSION := 2.22.0 $(PKG)_CHECKSUM := 3af12d8eb3520516b25fa82873f87473dfb42cc0 $(PKG)_SUBDIR := gtk+-$($(PKG)_VERSION) $(PKG)_FILE := gtk+-$($(PKG)_VERSION).tar.bz2 $(PKG)_WEBSITE := http://www.gtk.org/ $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/gtk+/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE) $(PKG)_DEPS := gcc 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' | \ head -1 endef define $(PKG)_BUILD cd '$(1)' && ./configure \ --host='$(TARGET)' \ --disable-shared \ --prefix='$(PREFIX)/$(TARGET)' \ --enable-explicit-deps \ --disable-gdiplus \ --disable-glibtest \ --disable-modules \ --disable-cups \ --disable-test-print-backend \ --disable-gtk-doc \ --disable-man \ --with-libpng \ --with-libjpeg \ --with-libtiff \ --with-libjasper \ --with-included-loaders \ --with-included-immodules \ --without-x $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-gtk.exe' \ `'$(TARGET)-pkg-config' gtk+-2.0 --cflags --libs` endef