Wiki home
Editing page "
gtkglextmm
"
Base on previous version:
0
-
1436
-
1437
-
1441
-
1443
-
1452
-
4830
# Sorry about the mess, this package is just so outdated it requires extensive patching to work with non-ancient gtk+2/glib etc. wget -c [link]http://ftp.gnome.org/pub/GNOME/sources/gtkglextmm/1.2/gtkglextmm-1.2.0.tar.bz2[/link] tar -xjf gtkglextmm-1.2.0.tar.bz2 cd gtkglextmm-1.2.0 sed -i -e '1i#include "privatesymbols.h"' gdkglext/gdkmm/gl/*.cc sed -i -e '1i#include <glib.h>' gdkglext/gdkmm/gl/*.cc sed -i -e '/glshapes/d;/gl_draw_/d;' gdkglext/gdkmm/gl/drawable.cc sed -i -e 's/gdkglfont/gdk/;s/retvalue =/&(Glib::RefPtr<Pango::Font>)0;/;/gl_font/{s/.*//;n;s/.*//;n;s/.*//;}' gdkglext/gdkmm/gl/font.cc mkdir -p build cd build ../configure --prefix="/usr" --disable-maintainer-mode # Private symbols from gtkglext which should not be used, but are used by gtkglextmm cat > privatesymbols.h << END #ifndef yourenotsupposedtousethese #define yourenotsupposedtousethese 1 #include <glib-object.h> GType gdk_gl_config_attrib_get_type (void); GType gdk_gl_config_caveat_get_type (void); GType gdk_gl_visual_type_get_type (void); GType gdk_gl_transparent_type_get_type (void); GType gdk_gl_drawable_type_mask_get_type (void); GType gdk_gl_render_type_mask_get_type (void); GType gdk_gl_buffer_mask_get_type (void); GType gdk_gl_config_error_get_type (void); GType gdk_gl_render_type_get_type (void); GType gdk_gl_drawable_attrib_get_type (void); GType gdk_gl_pbuffer_attrib_get_type (void); GType gdk_gl_event_mask_get_type (void); GType gdk_gl_event_type_get_type (void); GType gdk_gl_drawable_type_get_type (void); GType gdk_gl_config_mode_get_type (void); #endif END sed -i -e 's/-D\([^ ]*_DISABLE_DEPRECATED\)/-U\1/g' gdkglext/gdkmm/gl/Makefile sed -i -e 's/-D\([^ ]*_DISABLE_DEPRECATED\)/-U\1/g' gtkglext/gtkmm/gl/Makefile echo "CXXFLAGS += -I`pwd` -DGLIBMM_DISABLE_DEPRECATED=1" >> gdkglext/gdkmm/gl/Makefile make # Doesn't mind -j# make install
Change summary:
Tags allowed:
[pkg]name[/pkg]
Link to another package on the buildwiki by name
[link]URL[/link]
Link to an external page