blob: 21c9fd697f17294243f436af96ac833acedf47b3 (
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.4.1-r1.ebuild,v 1.11 2004/06/24 00:19:16 agriffis Exp $
inherit eutils
DESCRIPTION="GTK+ version of wxWindows, a cross-platform C++ GUI toolkit."
SRC_URI="mirror://sourceforge/wxwindows/${P}.tar.bz2"
HOMEPAGE="http://www.wxwindows.org/"
LICENSE="wxWinLL-3"
SLOT="0"
KEYWORDS="x86 ~ppc sparc ~alpha hppa"
IUSE="nls odbc opengl gtk2"
DEPEND="virtual/x11
media-libs/netpbm
media-libs/giflib
media-libs/libpng
media-libs/jpeg
media-libs/tiff
sys-libs/zlib
odbc? ( dev-db/unixODBC )
opengl? ( virtual/opengl )
gtk2? (
>=x11-libs/gtk+-2.0*
dev-libs/libunicode
)
!gtk2? ( =x11-libs/gtk+-1.2* )"
RDEPEND="nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${P}-wxpython1.patch
epatch ${FILESDIR}/${P}-wxpython2.patch
epatch ${FILESDIR}/${P}-contrib.patch
}
src_compile() {
local myconf
myconf="--enable-gif --with-libtiff --with-zlib --with-libpng \
--enable-png --with-libjpeg"
#Note: pcx image support enabled by default if found.
#Also, all wxWindows gui features are enabled by default. If you
#want to build a smaller library you can disable features by adding
#the appropriate flags to myconf (see INSTALL.txt).
#The build tools include a --with-freetype option, however it doesn't
#seem to be implemented in the source yet.
# Note: ODBC support does not work with --enable-unicode
# We only use --enable-unicode (if at all) when we use
# gtk2.
if use odbc && ! use gtk2; then
myconf="${myconf} --with-odbc"
elif use odbc && use gtk2; then
ewarn ""
einfo "you cannot specify both odbc and gtk2"
einfo "Choosing gtk2 over odbc"
einfo "re-run with USE=\"-gtk2\" to enable odbc"
ewarn ""
sleep 5
myconf="${myconf} --without-odbc"
else
myconf="${myconf} --without-odbc"
fi
use opengl \
&& myconf="${myconf} --with-opengl" \
|| myconf="${myconf} --without-opengl"
myconf="${myconf} --with-gtk"
# here we disable unicode support even thought gtk2 supports it
# because too many apps just don't follow the wxWindows guidelines
# for unicode support.
#
# http://www.wxwindows.org/manuals/2.4.0/wx458.htm#unicode
#
# ref #20116 - liquidx@gentoo.org (07 May 2003)
#use gtk2 && myconf="${myconf} --enable-gtk2 --enable-unicode"
use gtk2 && myconf="${myconf} --enable-gtk2"
econf ${myconf} || die "econf failed"
emake || die "make failed"
cd ${S}/contrib/src
emake || die "make contrib failed"
}
src_install() {
einstall || die "install failed"
dodoc *.txt
cd ${S}/contrib/src
einstall || die "install contrib failed"
}
|