From 5790f3d04e88bb8372868f3130c625e1079c55a4 Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Thu, 12 Nov 2009 02:26:16 +0000 Subject: [PATCH] add c++-bindings for gtk2 SVN-Revision: 18396 --- Xorg/lib/gtkmm/Makefile | 68 ++++++++++++++ .../patches/100-disable-tools-tests.patch | 92 +++++++++++++++++++ 2 files changed, 160 insertions(+) create mode 100644 Xorg/lib/gtkmm/Makefile create mode 100644 Xorg/lib/gtkmm/patches/100-disable-tools-tests.patch diff --git a/Xorg/lib/gtkmm/Makefile b/Xorg/lib/gtkmm/Makefile new file mode 100644 index 0000000000..73ac721462 --- /dev/null +++ b/Xorg/lib/gtkmm/Makefile @@ -0,0 +1,68 @@ +# +# Copyright (C) 2008-2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gtkmm +PKG_VERSION:=2.16.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.16 +PKG_FIXUP:=libtool + +include $(INCLUDE_DIR)/package.mk + +PKG_INSTALL:=1 + +TARGET_CFLAGS+=\ + -I$(STAGING_DIR)/usr/lib/libintl/include/ \ + -I$(STAGING_DIR)/usr/lib/libiconv/include/ + +TARGET_LDFLAGS+=\ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(STAGING_DIR)/usr/lib/libintl/lib/ \ + -L$(STAGING_DIR)/usr/lib/libiconv/lib/ + +define Package/gtkmm + SECTION:=xorg-framework + CATEGORY:=Xorg + SUBMENU:=framework + TITLE:=GTK+-2.0 + DEPENDS:=+gtk2 +cairomm +pangomm +glibmm +endef + +CONFIGURE_ARGS+= --disable-docs --disable-demos + +define Build/InstallDev + $(INSTALL_DIR) \ + $(1)/usr/lib/pkgconfig \ + $(1)/usr/include + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/* \ + $(1)/usr/include/ + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/* \ + $(1)/usr/lib/ + + $(INSTALL_DATA) \ + $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \ + $(1)/usr/lib/pkgconfig/ +endef + +define Package/gtkmm/install + $(INSTALL_DIR) \ + $(1)/usr/lib + + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/*.so* \ + $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,gtkmm)) diff --git a/Xorg/lib/gtkmm/patches/100-disable-tools-tests.patch b/Xorg/lib/gtkmm/patches/100-disable-tools-tests.patch new file mode 100644 index 0000000000..3f17b5cd6f --- /dev/null +++ b/Xorg/lib/gtkmm/patches/100-disable-tools-tests.patch @@ -0,0 +1,92 @@ +diff -ruN gtkmm-2.16.0.orig/configure gtkmm-2.16.0/configure +--- gtkmm-2.16.0.orig/configure 2009-03-16 12:33:19.000000000 +0100 ++++ gtkmm-2.16.0/configure 2009-11-05 19:43:21.000000000 +0100 +@@ -22179,10 +22179,7 @@ + AUTOHEADER=':' + + +-ac_config_files="$ac_config_files Makefile gdk/Makefile gdk/gdkmm-2.4.pc gdk/src/Makefile gdk/gdkmm/Makefile gdk/gdkmm/private/Makefile gtk/Makefile gtk/gtkmm-2.4.pc gtk/src/Makefile gtk/gtkmm/Makefile gtk/gtkmm/private/Makefile tools/Makefile tools/m4/Makefile tools/extra_defs_gen/Makefile" +- +- +-ac_config_files="$ac_config_files tests/Makefile tests/child_widget/Makefile tests/child_widget2/Makefile tests/child_widget_managed/Makefile tests/refcount_dialog/Makefile tests/dialog/Makefile tests/dialog_deletethis/Makefile tests/delete_cpp_child/Makefile tests/main_with_options/Makefile tests/menu_destruction/Makefile tests/property_notification/Makefile tests/scrolledwindow/Makefile tests/wrap_existing/Makefile" ++ac_config_files="$ac_config_files Makefile gdk/Makefile gdk/gdkmm-2.4.pc gdk/src/Makefile gdk/gdkmm/Makefile gdk/gdkmm/private/Makefile gtk/Makefile gtk/gtkmm-2.4.pc gtk/src/Makefile gtk/gtkmm/Makefile gtk/gtkmm/private/Makefile" + + + ac_config_files="$ac_config_files scripts/Makefile" +@@ -22870,22 +22867,6 @@ + "gtk/src/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/src/Makefile" ;; + "gtk/gtkmm/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/gtkmm/Makefile" ;; + "gtk/gtkmm/private/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/gtkmm/private/Makefile" ;; +- "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; +- "tools/m4/Makefile") CONFIG_FILES="$CONFIG_FILES tools/m4/Makefile" ;; +- "tools/extra_defs_gen/Makefile") CONFIG_FILES="$CONFIG_FILES tools/extra_defs_gen/Makefile" ;; +- "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; +- "tests/child_widget/Makefile") CONFIG_FILES="$CONFIG_FILES tests/child_widget/Makefile" ;; +- "tests/child_widget2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/child_widget2/Makefile" ;; +- "tests/child_widget_managed/Makefile") CONFIG_FILES="$CONFIG_FILES tests/child_widget_managed/Makefile" ;; +- "tests/refcount_dialog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/refcount_dialog/Makefile" ;; +- "tests/dialog/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dialog/Makefile" ;; +- "tests/dialog_deletethis/Makefile") CONFIG_FILES="$CONFIG_FILES tests/dialog_deletethis/Makefile" ;; +- "tests/delete_cpp_child/Makefile") CONFIG_FILES="$CONFIG_FILES tests/delete_cpp_child/Makefile" ;; +- "tests/main_with_options/Makefile") CONFIG_FILES="$CONFIG_FILES tests/main_with_options/Makefile" ;; +- "tests/menu_destruction/Makefile") CONFIG_FILES="$CONFIG_FILES tests/menu_destruction/Makefile" ;; +- "tests/property_notification/Makefile") CONFIG_FILES="$CONFIG_FILES tests/property_notification/Makefile" ;; +- "tests/scrolledwindow/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scrolledwindow/Makefile" ;; +- "tests/wrap_existing/Makefile") CONFIG_FILES="$CONFIG_FILES tests/wrap_existing/Makefile" ;; + "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; + "MSVC_Net2005/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC_Net2005/Makefile" ;; + "MSVC_Net2005/gendef/Makefile") CONFIG_FILES="$CONFIG_FILES MSVC_Net2005/gendef/Makefile" ;; +diff -ruN gtkmm-2.16.0.orig/configure.in gtkmm-2.16.0/configure.in +--- gtkmm-2.16.0.orig/configure.in 2009-03-16 12:19:50.000000000 +0100 ++++ gtkmm-2.16.0/configure.in 2009-11-05 19:42:17.000000000 +0100 +@@ -405,26 +405,6 @@ + gtk/src/Makefile + gtk/gtkmm/Makefile + gtk/gtkmm/private/Makefile +- +- tools/Makefile +- tools/m4/Makefile +- tools/extra_defs_gen/Makefile +-]) +- +-AC_CONFIG_FILES([ +- tests/Makefile +- tests/child_widget/Makefile +- tests/child_widget2/Makefile +- tests/child_widget_managed/Makefile +- tests/refcount_dialog/Makefile +- tests/dialog/Makefile +- tests/dialog_deletethis/Makefile +- tests/delete_cpp_child/Makefile +- tests/main_with_options/Makefile +- tests/menu_destruction/Makefile +- tests/property_notification/Makefile +- tests/scrolledwindow/Makefile +- tests/wrap_existing/Makefile + ]) + + AC_CONFIG_FILES([ +diff -ruN gtkmm-2.16.0.orig/Makefile.am gtkmm-2.16.0/Makefile.am +--- gtkmm-2.16.0.orig/Makefile.am 2008-11-18 17:17:02.000000000 +0100 ++++ gtkmm-2.16.0/Makefile.am 2009-11-05 19:43:50.000000000 +0100 +@@ -4,7 +4,7 @@ + ATK_SUBDIR= + endif + +-SUBDIRS = tools $(ATK_SUBDIR) gdk gtk @DEMO_SUBDIR@ @DOCS_SUBDIR@ tests MSVC_Net2005 MSVC_Net2008 win32_installer ++SUBDIRS = $(ATK_SUBDIR) gdk gtk @DEMO_SUBDIR@ @DOCS_SUBDIR@ MSVC_Net2005 MSVC_Net2008 win32_installer + DIST_SUBDIRS = $(SUBDIRS) scripts + + EXTRA_DIST = build_shared/Makefile_build.am_fragment \ +diff -ruN gtkmm-2.16.0.orig/Makefile.in gtkmm-2.16.0/Makefile.in +--- gtkmm-2.16.0.orig/Makefile.in 2009-03-16 12:32:56.000000000 +0100 ++++ gtkmm-2.16.0/Makefile.in 2009-11-05 19:43:39.000000000 +0100 +@@ -213,7 +213,7 @@ + top_srcdir = @top_srcdir@ + @GTKMM_ATKMM_ENABLED_FALSE@ATK_SUBDIR = + @GTKMM_ATKMM_ENABLED_TRUE@ATK_SUBDIR = atk +-SUBDIRS = tools $(ATK_SUBDIR) gdk gtk @DEMO_SUBDIR@ @DOCS_SUBDIR@ tests MSVC_Net2005 MSVC_Net2008 win32_installer ++SUBDIRS = $(ATK_SUBDIR) gdk gtk @DEMO_SUBDIR@ @DOCS_SUBDIR@ MSVC_Net2005 MSVC_Net2008 win32_installer + DIST_SUBDIRS = $(SUBDIRS) scripts + EXTRA_DIST = build_shared/Makefile_build.am_fragment \ + build_shared/Makefile_build_gensrc.am_fragment \ -- 2.30.2