blob: a82d6cef24c4c1bc50658fa3c1ca1effe25caa41 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Maintainer: Francesco Zardi <fracar0 [at] hotmail _dot_ it>
# Contributor: Geyslan G. Bem <geyslan@gmail.com>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Eric BĂ©langer <eric@archlinux.org>
pkgname=wxgtk2.8
pkgver=2.8.12.1
pkgrel=8
pkgdesc="GTK+ implementation of wxWidgets API for GUI"
arch=('i686' 'x86_64')
url="http://wxwidgets.org"
license=('custom:wxWindows')
depends=('gtk2' 'gstreamer0.10-base' 'sdl' 'libsm')
makedepends=('gstreamer0.10-base-plugins' 'gconf' 'glu')
provides=("wxgtk2.8=${pkgver}")
conflicts=('wxgtk2.8-light')
options=('!emptydirs')
source=("http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2"
'wxGTK-collision.patch'
'make-abicheck-non-fatal.patch'
'wxGTK-2.8.12.1-r2-gcc6.patch'
'disable-lto-in-configure.patch')
sha1sums=('05688dc03d61631750f5904273122bb40a2115f5'
'75d2292a0058570aa6071b4bee6eef69e47f1208'
'dfe38650c655395b90bf082b5734c4093508bfa3'
'f1a3bc30ec8139d97ca239dc1bf6cbc2ceb5c5d9'
'd4f661d3a1fe324d8d6703b1da677fbbf10d46a7')
prepare() {
cd wx*-${pkgver}
patch -p1 -i ../wxGTK-collision.patch
# C++ ABI check is too strict and breaks with GCC 5.1
# https://bugzilla.redhat.com/show_bug.cgi?id=1200611
patch -Np1 -i ../make-abicheck-non-fatal.patch
# fix gcc6 narrowing error
# https://bugs.gentoo.org/show_bug.cgi?id=592442
patch -p1 -i ../wxGTK-2.8.12.1-r2-gcc6.patch
# Turn off LTO when compiling test programs in the "configure" script
patch -p1 -i ../disable-lto-in-configure.patch
}
build() {
cd wx*-${pkgver}
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-gtk=2 \
--with-opengl \
--enable-unicode \
--enable-graphics_ctx \
--disable-optimize \
--enable-mediactrl \
--with-regex=builtin \
--with-libpng=sys \
--with-libxpm=sys \
--with-libjpeg=sys \
--with-libtiff=sys \
--with-sdl \
--disable-precomp-headers
make
make -C locale allmo
make -C contrib/src
}
package() {
cd wx*-${pkgver}
make DESTDIR="${pkgdir}" install
make -C contrib/src DESTDIR="${pkgdir}" install
install -D -m644 docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|