summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gtkglextmm-1-fixes.patch58
-rw-r--r--src/gtkglextmm-test.cpp13
-rw-r--r--src/gtkglextmm.mk39
3 files changed, 110 insertions, 0 deletions
diff --git a/src/gtkglextmm-1-fixes.patch b/src/gtkglextmm-1-fixes.patch
new file mode 100644
index 0000000..a413c98
--- /dev/null
+++ b/src/gtkglextmm-1-fixes.patch
@@ -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 --git a/src/gtkglextmm-test.cpp b/src/gtkglextmm-test.cpp
new file mode 100644
index 0000000..99fb1c7
--- /dev/null
+++ b/src/gtkglextmm-test.cpp
@@ -0,0 +1,13 @@
+/* This file is part of mingw-cross-env. */
+/* See doc/index.html for further information. */
+
+#include <gtkmm/main.h>
+#include <gtkmm/gl/init.h>
+
+int main(int argc, char *argv[])
+{
+ Gtk::Main g(argc, argv);
+ Gtk::GL::init(argc, argv);
+ g.run();
+ return 0;
+}
diff --git a/src/gtkglextmm.mk b/src/gtkglextmm.mk
new file mode 100644
index 0000000..e365735
--- /dev/null
+++ b/src/gtkglextmm.mk
@@ -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 '<a href=' | \
+ $(SED) -n "s,.*<a href='[^']*/tag/?id=\\([0-9][^']*\\)'.*,\\1,p" | \
+ grep -v '1\.1\.' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ --disable-shared
+ $(MAKE) -C '$(1)' -j '$(JOBS)' install \
+ bin_PROGRAMS= \
+ sbin_PROGRAMS= \
+ noinst_PROGRAMS= \
+ INFO_DEPS=
+
+ '$(TARGET)-g++' \
+ -W -Wall \
+ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(TARGET).exe' \
+ `'$(TARGET)-pkg-config' gtkglextmm-1.2 --cflags --libs` \
+ -lwinspool -lcomctl32 -lcomdlg32 -ldnsapi
+endef