diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-06-20 23:13:05 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-06-20 23:13:05 -0400 |
commit | 0129d667cea80b431364dca92c019b5844ae9931 (patch) | |
tree | 7a3163597828a44d7bf5107504b951c6bb8ec74f | |
parent | 5f3bdcd39a3486616794f99ea125a3a7b2e2f0fe (diff) | |
download | abslibre-0129d667cea80b431364dca92c019b5844ae9931.tar.gz abslibre-0129d667cea80b431364dca92c019b5844ae9931.tar.bz2 abslibre-0129d667cea80b431364dca92c019b5844ae9931.zip |
add ~lukeshu/freeglut26: freeglut-2.6.0 for the programs that broke with 2.8.0
-rw-r--r-- | ~lukeshu/freeglut26/2.6.0-GFX_radeon.patch | 28 | ||||
-rw-r--r-- | ~lukeshu/freeglut26/PKGBUILD | 42 |
2 files changed, 70 insertions, 0 deletions
diff --git a/~lukeshu/freeglut26/2.6.0-GFX_radeon.patch b/~lukeshu/freeglut26/2.6.0-GFX_radeon.patch new file mode 100644 index 000000000..8806fe849 --- /dev/null +++ b/~lukeshu/freeglut26/2.6.0-GFX_radeon.patch @@ -0,0 +1,28 @@ +Index: src/freeglut_window.c +=================================================================== +--- src/freeglut_window.c (Revision 832) ++++ src/freeglut_window.c (Arbeitskopie) +@@ -594,10 +594,9 @@ + #if TARGET_HOST_POSIX_X11 + if ( window ) + { +- glXMakeContextCurrent( ++ glXMakeCurrent( + fgDisplay.Display, + window->Window.Handle, +- window->Window.Handle, + window->Window.Context + ); + +@@ -932,10 +932,9 @@ + XSetWMProtocols( fgDisplay.Display, window->Window.Handle, + &fgDisplay.DeleteWindow, 1 ); + +- glXMakeContextCurrent( ++ glXMakeCurrent( + fgDisplay.Display, + window->Window.Handle, +- window->Window.Handle, + window->Window.Context + ); + diff --git a/~lukeshu/freeglut26/PKGBUILD b/~lukeshu/freeglut26/PKGBUILD new file mode 100644 index 000000000..5245eca9d --- /dev/null +++ b/~lukeshu/freeglut26/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer (Parabola): Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (Arch): Eric Belanger <eric@archlinux.org> +# Contributor: Tom Newsom <Jeepster@gmx.co.uk> + +_pkgname=freeglut +pkgname=freeglut26 +pkgver=2.6.0 +pkgrel=1 + +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") + +pkgdesc="Provides functionality for small OpenGL programs" +arch=('i686' 'x86_64') +url="http://freeglut.sourceforge.net/" +license=('MIT') +depends=('libxxf86vm' 'mesa' 'libxi') +replaces=('glut') +provides=('glut') +conflicts=('glut') +options=('!libtool') +source=(http://downloads.sourceforge.net/freeglut/${_pkgname}-${pkgver}.tar.gz \ + 2.6.0-GFX_radeon.patch) +md5sums=('39f0f2de89f399529d2b981188082218' '6d0a018fe4f0bc9ace2b244ca59514d3') +sha1sums=('68306c4486c13d005a4e4d54035e0c0b1bdc220b' '2e392c7d0b60016ec89e6a5edf504f5722351b95') + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + # fixes an issue with the radeon[hd] ATI opensource drivers + # ref: http://bugs.gentoo.org/show_bug.cgi?id=295163 + patch -p0 -i "${srcdir}/2.6.0-GFX_radeon.patch" + + ./autogen.sh + ./configure --prefix=/usr --disable-static + make all +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" +} |