summaryrefslogtreecommitdiff
path: root/extra/gtkglextmm/PKGBUILD
blob: 9e77e889443bc5559209f0689fe804b6a2a289c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# $Id: PKGBUILD 168604 2012-10-13 11:47:19Z 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' 'mips64el')
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
}