mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 07:57:13 +08:00
freeglut 2.8.1
This commit is contained in:
parent
1e494c5c2c
commit
9b9b212ae7
@ -1,28 +0,0 @@
|
||||
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
|
||||
);
|
||||
|
@ -1,38 +1,31 @@
|
||||
#
|
||||
# Platform Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
|
||||
#maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
||||
#contributions from Arch: https://www.archlinux.org/packages/extra/x86_64/freeglut/
|
||||
pkgname=freeglut
|
||||
pkgver=2.6.0
|
||||
pkgrel=2
|
||||
pkgver=2.8.1
|
||||
pkgrel=1
|
||||
pkgdesc="Provides functionality for small OpenGL programs"
|
||||
arch=('i686' 'x86_64')
|
||||
arch=('x86_64')
|
||||
url="http://freeglut.sourceforge.net/"
|
||||
license=('MIT')
|
||||
depends=('libxxf86vm' 'mesa' 'libxi')
|
||||
replaces=('glut')
|
||||
provides=('glut')
|
||||
conflicts=('glut')
|
||||
depends=('libxxf86vm' 'libgl' 'libxi')
|
||||
makedepends=('mesa' 'glu' 'libxxf86vm')
|
||||
options=('!libtool')
|
||||
source=(http://downloads.sourceforge.net/freeglut/${pkgname}-${pkgver}.tar.gz \
|
||||
2.6.0-GFX_radeon.patch)
|
||||
md5sums=('39f0f2de89f399529d2b981188082218' '6d0a018fe4f0bc9ace2b244ca59514d3')
|
||||
sha1sums=('68306c4486c13d005a4e4d54035e0c0b1bdc220b' '2e392c7d0b60016ec89e6a5edf504f5722351b95')
|
||||
source=(http://downloads.sourceforge.net/freeglut/${pkgname}-${pkgver}.tar.gz)
|
||||
md5sums=('918ffbddcffbac83c218bc52355b6d5a')
|
||||
|
||||
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" || return 1
|
||||
|
||||
# smooth_opengl3 demo doesn't build with recent mesa, Gentoo bug #428382
|
||||
sed -i "s/smooth_opengl3 //" progs/demos/Makefile.*
|
||||
|
||||
./configure --prefix=/usr || return 1
|
||||
make all || return 1
|
||||
make DESTDIR="${pkgdir}" install || return 1
|
||||
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
|
||||
autoreconf -vfi
|
||||
./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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user