blob: fb28c21348e83a4303a917953f0adde3137e8ed2 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Lucio zara <pennega@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>
pkgname=cegui-0.6
pkgver=0.6.2
_pkgver=0.6.2b
pkgrel=13
pkgdesc="A free library providing windowing and widgets for graphics APIs/engines."
arch=('i686' 'x86_64')
url="http://www.cegui.org.uk/"
license=('MIT')
depends=('devil' 'freetype2' 'libxml2' 'lua' 'pcre' 'silly' 'glew' 'tinyxml' 'directfb' 'freeglut')
makedepends=()
options=('!libtool')
conflicts=('cegui')
source=("http://downloads.sourceforge.net/crayzedsgui/CEGUI-${_pkgver}.tar.gz")
md5sums=('4fbd95e5a2ac1c7acf2a8f5df3ac6b93')
build() {
cd ${srcdir}/CEGUI-${pkgver}
#PATCH
#sed -i '1i#include <cstddef>' include/CEGUIString.h
sed -i '/#include <stdexcept>/a\#include <cstddef>' include/CEGUIString.h
sed -i '/#include "CEGUIDynamicModule.h"/a\#include <algorithm>' RendererModules/directfbRenderer/directfb-renderer.cpp
sed -i 's:TiXmlNode\:\::TiXmlNode\:\:TINYXML_:g' XMLParserModules/TinyXMLParser/CEGUITinyXMLParser.cpp
sed -i 's:ILvoid:void:g' ImageCodecModules/DevILImageCodec/CEGUIDevILImageCodec.cpp
PYTHON=python2 \
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-static \
--disable-xerces-c \
--disable-samples \
--enable-devil \
--enable-silly \
--enable-lua-module \
--enable-python-module \
--with-default-image-codec=SILLYImageCodec
make || return 1
}
package() {
cd ${srcdir}/CEGUI-${pkgver}
install -d ${pkgdir}/usr/share/licenses/${pkgname} || return 1
make DESTDIR=${pkgdir} install || return 1
install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}
md5sums=('4fbd95e5a2ac1c7acf2a8f5df3ac6b93')
md5sums=('4fbd95e5a2ac1c7acf2a8f5df3ac6b93')
|