summaryrefslogtreecommitdiff
path: root/testing/gtkglextmm
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-13 00:57:48 -0700
committerroot <root@rshg054.dnsready.net>2012-10-13 00:57:48 -0700
commit21c295a86a10a3cd59802b2cf3ab7c24ebf0c608 (patch)
treeef49797b1f76586e9f8281e301a4923d90f29aa7 /testing/gtkglextmm
parent3cfedd8a4ed1e5464ef328d91b1a224aedc07960 (diff)
Sat Oct 13 00:57:48 PDT 2012
Diffstat (limited to 'testing/gtkglextmm')
-rw-r--r--testing/gtkglextmm/PKGBUILD40
-rw-r--r--testing/gtkglextmm/gdkspanfunc.patch13
2 files changed, 53 insertions, 0 deletions
diff --git a/testing/gtkglextmm/PKGBUILD b/testing/gtkglextmm/PKGBUILD
new file mode 100644
index 000000000..e3a098e14
--- /dev/null
+++ b/testing/gtkglextmm/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 168486 2012-10-12 17:14:06Z andyrtr $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Bastien Bouclet <bastien.bouclet@gmail.com>
+# Contributor: SpepS <dreamspepser at yahoo dot it>
+
+pkgname=gtkglextmm
+pkgver=1.2.0
+pkgrel=9
+pkgdesc="Cpp C++ bindings for gtkglext"
+arch=('i686' 'x86_64')
+url="http://gtkglext.sourceforge.net/"
+depends=('gtkmm' 'gtkglext')
+makedepends=('mesa')
+options=('!libtool')
+license=('GPL')
+source=("http://downloads.sourceforge.net/sourceforge/gtkglext/${pkgname}-${pkgver}.tar.bz2"
+ 'gdkspanfunc.patch')
+md5sums=('27c05f4d45c5fd07b6fb0f044add3056'
+ 'd7c8ea33c748a6857ee629c16b2d9bff')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # FS#24706
+ patch -Np1 -i "${srcdir}/gdkspanfunc.patch"
+
+ # automake 1.8 fix
+ sed -i "s|\(AC_DEFUN(\)\(AC_.*_MULTIHEAD\)|\1[\2]|" m4macros/gtkglextmm.m4
+
+ ./configure --prefix=/usr \
+ --disable-gtkglext-test \
+ --disable-static
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/testing/gtkglextmm/gdkspanfunc.patch b/testing/gtkglextmm/gdkspanfunc.patch
new file mode 100644
index 000000000..ae5672a8c
--- /dev/null
+++ b/testing/gtkglextmm/gdkspanfunc.patch
@@ -0,0 +1,13 @@
+--- a/gtkglext/gtkmm/gl/widget.cc 2004-05-18 03:01:50.000000000 -0300
++++ b/gtkglext/gtkmm/gl/widget.cc 2011-06-12 17:57:13.075541070 -0300
+@@ -17,9 +17,8 @@
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+-#include <gtk/gtkglwidget.h>
+-
+ #include "widget.h"
++#include <gtk/gtkglwidget.h>
+
+ namespace Gtk
+ {