1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: Ben <ben@benmazer.net>
7 pkgdesc="opengl extensions for gtk2"
9 url="http://gtkglext.sourceforge.net/"
11 depends=('gtk2' 'glu' 'libxmu')
12 makedepends=('python')
13 source=("https://downloads.sourceforge.net/sourceforge/gtkglext/${pkgname}-${pkgver}.tar.bz2"
14 'gtk2.20.patch' gtkglext-gcc8.patch kill-pangox.patch)
15 sha256sums=('16bd736074f6b14180f206b7e91263fc721b49912ea3258ab5f094cfa5497f51'
16 '864c6963c4a2f4f69f1f028ecee6c821a4f4d5aba142f2e07898aede825ce9ea'
17 '0ec0c22b15054b0684f9a9015ff05920af0c00dae5409e76321f683dcc17cff9'
18 '8ce31aa17ea84aede3b03fa392ec95e0e9c001f348384ba93d850de9f0b7044e')
23 patch -Np1 -i "${srcdir}/kill-pangox.patch"
24 patch -Np1 -i "${srcdir}/gtk2.20.patch"
25 sed '/AC_PATH_XTRA/d' -i configure.in
26 patch -p1 -i ../gtkglext-gcc8.patch # Fix build with GCC 8
32 cd ${pkgname}-${pkgver}
34 ./configure --prefix=/usr \
36 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41 cd ${pkgname}-${pkgver}
42 make DESTDIR="${pkgdir}" install