mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 03:17:15 +08:00
warzone2100: rebuild against glew
This commit is contained in:
parent
08a63539e9
commit
1b88998aaa
@ -5,7 +5,7 @@
|
||||
|
||||
pkgname=warzone2100
|
||||
pkgver=3.1.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="3D real-time strategy game where you fight to rebuilt the world destroyed by nuclear war."
|
||||
arch=('x86_64')
|
||||
url="http://wz2100.net/"
|
||||
@ -13,12 +13,20 @@ license=('GPL')
|
||||
groups=()
|
||||
categories=('games')
|
||||
depends=('sdl_net' 'libgl' 'openal' 'libjpeg' 'libpng' 'libvorbis' 'libtheora'
|
||||
'libmad' 'physfs' 'mesa' 'quesoglc' 'popt' 'ttf-dejavu' 'qt' 'glew')
|
||||
'libmad' 'physfs' 'mesa' 'quesoglc' 'popt' 'ttf-dejavu' 'qt' 'glew'
|
||||
'harfbuzz')
|
||||
makedepends=('gawk' 'bison' 'flex' 'zip' 'unzip')
|
||||
conflicts=('warzone2100-dev')
|
||||
changelog=ChangeLog
|
||||
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz")
|
||||
sha256sums=('c937a2e2c7afdad00b00767636234bbec4d8b18efb008073445439d32edb76cf')
|
||||
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz"
|
||||
"buildfix.patch")
|
||||
sha256sums=('c937a2e2c7afdad00b00767636234bbec4d8b18efb008073445439d32edb76cf'
|
||||
'85e158cd81f836b2bc264dfe39f0cc3504be5d94c4ebf321496594f841164595')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
patch -p1 -i ../buildfix.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
13
warzone2100/buildfix.patch
Normal file
13
warzone2100/buildfix.patch
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/lib/ivis_opengl/screen.cpp b/lib/ivis_opengl/screen.cpp
|
||||
index d240a63..861265d 100644
|
||||
--- a/lib/ivis_opengl/screen.cpp
|
||||
+++ b/lib/ivis_opengl/screen.cpp
|
||||
@@ -261,7 +261,7 @@ void screen_EnableMissingFunctions()
|
||||
__glewUseProgram = __glewUseProgramObjectARB;
|
||||
__glewGetShaderiv = __glewGetObjectParameterivARB;
|
||||
__glewLinkProgram = __glewLinkProgramARB;
|
||||
- __glewShaderSource = __glewShaderSourceARB;
|
||||
+ __glewShaderSource = (PFNGLSHADERSOURCEPROC) __glewShaderSourceARB;
|
||||
__glewUniform1f = __glewUniform1fARB;
|
||||
__glewUniform1i = __glewUniform1iARB;
|
||||
__glewUniform4fv = __glewUniform4fvARB;
|
Loading…
Reference in New Issue
Block a user