packages/x11-libs/wxWidgets/wxWidgets-2.9.1.exheres-0 (2139B) - raw
1 # Copyright 2009 Maxime Coste <frrrwww@gmail.com>
2 # Distributed under the terms of the GNU General Public License v2
3
4 require toolchain-funcs
5
6 SUMMARY="Cross-Platform GUI Library"
7 DESCRIPTION="
8 wxWidgets gives you a single, easy-to-use API for writing GUI applications on
9 multiple platforms that still utilize the native platform's controls and
10 utilities.
11 "
12 HOMEPAGE="http://www.wxwidgets.org/"
13 DOWNLOADS="mirror://sourceforge/wxwindows/${PNV}.tar.bz2"
14
15 LICENCES="LGPL-2"
16 SLOT="2.9"
17 PLATFORMS="~amd64 ~x86"
18 MYOPTIONS="gstreamer joystick odbc sdl tiff"
19
20 BUGS_TO="djc@djc.id.au"
21
22 DEPENDENCIES="
23 build:
24 dev-util/pkg-config
25 build+run:
26 dev-libs/expat
27 dev-libs/glib:2
28 media-libs/jpeg
29 media-libs/libpng
30 x11-dri/mesa
31 x11-libs/gtk+:2
32 x11-libs/libSM
33 x11-libs/libXxf86vm
34 x11-libs/libXpm
35 x11-libs/pango [[ note = [ required for unicode support ] ]]
36 gstreamer? (
37 gnome-platform/GConf:2
38 media-libs/gstreamer:0.10
39 media-plugins/gst-plugins-base:0.10
40 )
41 odbc? ( dev-db/unixODBC )
42 sdl? ( media-libs/SDL )
43 tiff? ( media-libs/tiff )
44 "
45
46 src_configure() {
47 econf \
48 --hates=docdir \
49 --enable-compat26 \
50 --enable-controls \
51 --enable-expat=sys \
52 --enable-gui \
53 --enable-intl \
54 --enable-shared \
55 --enable-threads \
56 --enable-unicode \
57 --$(tc-is-cross-compiler && echo dis || echo en)able-precomp-headers \
58 --with-gtk=2 \
59 --with-libjpeg=sys \
60 --with-libpng=sys \
61 --with-libxpm=sys \
62 --with-opengl \
63 --with-regex=builtin \
64 --with-zlib=sys \
65 --without-gnomeprint \
66 --without-gnomevfs \
67 --without-motif \
68 --without-wine \
69 $(option_enable joystick) \
70 $(option_with gstreamer mediactrl) \
71 $(option_with odbc odbc sys) \
72 $(option_with sdl) \
73 $(option_with tiff libtiff sys)
74 }
75
76 src_install() {
77 default
78 dodoc -r docs/*
79 edo rmdir "${IMAGE}"/usr/share/locale/{*/{LC_MESSAGES,},}
80 }
81