blob: 904ef9af7c001e0f9db3134e81210927711f0e58 (
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
74
75
76
77
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.6.0-r1.ebuild,v 1.3 2005/06/09 01:12:38 mr_bones_ Exp $
inherit wxlib gnuconfig
DESCRIPTION="GTK+ version of wxWidgets, a cross-platform C++ GUI toolkit and
wxbase non-gui library"
SLOT="2.6"
KEYWORDS="~x86 ~ppc ~sparc ~alpha ~arm ~amd64 ~ia64 ~hppa ~ppc64"
IUSE="gnome gtk2 jpeg joystick odbc opengl png sdl tiff wxgtk1"
RDEPEND="${RDEPEND}
opengl? ( virtual/opengl )
gtk2? ( >=x11-libs/gtk+-2.0
>=dev-libs/glib-2.0 )
wxgtk1? ( =x11-libs/gtk+-1.2*
=dev-libs/glib-1.2* )
png? ( media-libs/libpng )
jpeg? ( media-libs/jpeg )
tiff? ( media-libs/tiff )
odbc? ( dev-db/unixODBC )
!mips? ( !arm? ( !hppa? ( !ia64? ( !ppc64? ( !alpha? ( !sparc? ( sdl? ( media-libs/sdl-sound ) ) ) ) ) ) ) )"
DEPEND="${RDEPEND}
${DEPEND}
gtk2? ( dev-util/pkgconfig )"
S=${WORKDIR}/wxWidgets-${PV}
pkg_setup() {
einfo "To install only wxbase (non-gui libs) use -gtk2 -wxgtk1"
}
src_compile() {
gnuconfig_update
if use wxgtk1 || use gtk2; then
myconf="${myconf}
$(use_enable opengl)
$(use_with png libpng)
$(use_with jpeg libjpeg)
$(use_with tiff libtiff)
$(use_with opengl)
$(use_with gnome gnomeprint)
$(use_with sdl)
$(use_enable joystick)"
fi
use wxgtk1 && \
configure_build gtk1 "" "${myconf} --with-gtk=1"
use gtk2 && \
configure_build gtk2 unicode "${myconf} --with-gtk=2"
! use gtk2 && ! use wxgtk1 && \
configure_build base unicode "--disable-gui"
}
src_install() {
use wxgtk1 && install_build gtk1
use gtk2 && install_build gtk2
! use gtk2 && ! use wxgtk1 && install_build base
wxlib_src_install
}
pkg_postinst() {
einfo "IMPORTANT: If you are upgrading from wxGTK-2.6.0 to"
einfo "wxGTK-2.6.0-r1 you will need to recomplie applications"
einfo "linked to it. >=dev-db/pgadmin3-1.2.0 is one and any"
einfo "other non-portage wxGTK apps you may have installed also."
einfo "This is necessary due to changing the way wxGTK is built"
einfo "with multilibs instead of a monolithic build."
einfo "Also note dev-libs/wxbase has been removed from portage"
einfo "and can be installed with wxGTK by specifying the USE flags"
einfo "-gtk2 and -wxgtk1"
}
|