mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-10 08:34:38 +08:00
warzone2100: rebuild against glew
This commit is contained in:
parent
08a63539e9
commit
1b88998aaa
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
pkgname=warzone2100
|
pkgname=warzone2100
|
||||||
pkgver=3.1.1
|
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."
|
pkgdesc="3D real-time strategy game where you fight to rebuilt the world destroyed by nuclear war."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="http://wz2100.net/"
|
url="http://wz2100.net/"
|
||||||
@ -13,12 +13,20 @@ license=('GPL')
|
|||||||
groups=()
|
groups=()
|
||||||
categories=('games')
|
categories=('games')
|
||||||
depends=('sdl_net' 'libgl' 'openal' 'libjpeg' 'libpng' 'libvorbis' 'libtheora'
|
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')
|
makedepends=('gawk' 'bison' 'flex' 'zip' 'unzip')
|
||||||
conflicts=('warzone2100-dev')
|
conflicts=('warzone2100-dev')
|
||||||
changelog=ChangeLog
|
changelog=ChangeLog
|
||||||
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz")
|
source=("http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.xz"
|
||||||
sha256sums=('c937a2e2c7afdad00b00767636234bbec4d8b18efb008073445439d32edb76cf')
|
"buildfix.patch")
|
||||||
|
sha256sums=('c937a2e2c7afdad00b00767636234bbec4d8b18efb008073445439d32edb76cf'
|
||||||
|
'85e158cd81f836b2bc264dfe39f0cc3504be5d94c4ebf321496594f841164595')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
patch -p1 -i ../buildfix.patch
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}-${pkgver}
|
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