# HG changeset patch # User Martin Gerhardy # Date 1285795392 -7200 # Node ID 6f81712a503bad29528b3cd91ee1ab0f82d89c70 # Parent 4fe6f5dd8a54ac411bdd5e7d4bfffb132201566a new package gtkglextmm diff -r 4fe6f5dd8a54 -r 6f81712a503b src/gtkglextmm-1-fixes.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gtkglextmm-1-fixes.patch Wed Sep 29 23:23:12 2010 +0200 @@ -0,0 +1,58 @@ +This file is part of mingw-cross-env. +See doc/index.html for further information. + +Contains ad hoc patches for cross building. + +From c71783745127d3af9ab40f6a4cb95ac13ad2707b Mon Sep 17 00:00:00 2001 +From: mingw-cross-env +Date: Wed, 29 Sep 2010 23:08:44 +0200 +Subject: [PATCH 1/2] allow deprecated GdkSpanFunc + + +diff --git a/gtkglext/gtkmm/gl/Makefile.in b/gtkglext/gtkmm/gl/Makefile.in +index 13afa02..152f930 100644 +--- a/gtkglext/gtkmm/gl/Makefile.in ++++ b/gtkglext/gtkmm/gl/Makefile.in +@@ -209,7 +209,6 @@ sublib_cflags = \ + $(GTKGLEXTMM_DEP_CFLAGS) \ + -DGTKMM_GL_COMPILATION \ + -DG_DISABLE_DEPRECATED \ +- -DGDK_DISABLE_DEPRECATED \ + -DGDK_PIXBUF_DISABLE_DEPRECATED \ + -DGTK_DISABLE_DEPRECATED + +-- +1.7.1 + + +From b3a26572b965ada869cc388b6bfce5c54b6ab704 Mon Sep 17 00:00:00 2001 +From: mingw-cross-env +Date: Wed, 29 Sep 2010 23:18:40 +0200 +Subject: [PATCH 2/2] wine workaround: s,cross_compiling=no,cross_compiling=yes, + + +diff --git a/configure b/configure +index 508d229..65f61fb 100755 +--- a/configure ++++ b/configure +@@ -409,7 +409,7 @@ exec 6>&1 + # + ac_default_prefix=/usr/local + ac_config_libobj_dir=. +-cross_compiling=no ++cross_compiling=yes + subdirs= + MFLAGS= + MAKEFLAGS= +@@ -2486,7 +2486,7 @@ if test "$cross_compiling" != yes; then + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then +- cross_compiling=no ++ cross_compiling=yes + else + if test "$cross_compiling" = maybe; then + cross_compiling=yes +-- +1.7.1 + diff -r 4fe6f5dd8a54 -r 6f81712a503b src/gtkglextmm-test.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gtkglextmm-test.cpp Wed Sep 29 23:23:12 2010 +0200 @@ -0,0 +1,13 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include +#include + +int main(int argc, char *argv[]) +{ + Gtk::Main g(argc, argv); + Gtk::GL::init(argc, argv); + g.run(); + return 0; +} diff -r 4fe6f5dd8a54 -r 6f81712a503b src/gtkglextmm.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/gtkglextmm.mk Wed Sep 29 23:23:12 2010 +0200 @@ -0,0 +1,39 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# GtkGLExtmm +PKG := gtkglextmm +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.2.0 +$(PKG)_CHECKSUM := 5cd489e07517a88262cd6050f723227664e82996 +$(PKG)_SUBDIR := gtkglextmm-$($(PKG)_VERSION) +$(PKG)_FILE := gtkglextmm-$($(PKG)_VERSION).tar.gz +$(PKG)_WEBSITE := http://gtkglext.sourceforge.net/ +$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/gtkglext/gtkglextmm/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gtkmm + +define $(PKG)_UPDATE + wget -q -O- 'http://git.gnome.org/cgit/gtkglextmm/refs/tags' | \ + grep '