blob: 6afa7c0def191c3ce420550ac70d7a092b3b328c (
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
103
104
105
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/x11-libs/wxGTK/wxGTK-2.3.2-r1.ebuild,v 1.7 2002/07/16 03:12:03 gerk Exp $
S=${WORKDIR}/${P}
DESCRIPTION="GTK+ version of wxWindows, a cross-platform C++ GUI toolkit."
LICENSE="LGPL-2"
SLOT="2.3"
KEYWORDS="x86 ppc"
SRC_URI="mirror://sourceforge/wxwindows/${P}.tar.bz2"
HOMEPAGE="http://www.wxwindows.org/"
DEPEND="dev-libs/libunicode
media-libs/netpbm
gif? ( media-libs/giflib )
png? ( media-libs/libpng )
jpeg? ( media-libs/jpeg )
tiff? ( media-libs/tiff )
odbc? ( dev-db/unixODBC )
opengl? ( virtual/opengl )"
use gtk \
&& DEPEND="${DEPEND} =x11-libs/gtk+-1.2*" \
|| DEPEND="${DEPEND} x11-libs/openmotif"
RDEPEND="nls? ( sys-devel/gettext )"
src_compile() {
local myconf
#--with-gtk enabled by default, if you want to build against motif,
#replace --with-gtk with --with-motif and --without-gtk. You will
#also need openmotif installed. Unfortunately, the package build tools
#only support installation of one currently.
use gtk \
&& myconf="--with-gtk" \
|| myconf="--with-motif --without-gtk"
#Build static library too, shared library is enabled by default.
#Enable useful config options that don't have USE flags
myconf="${myconf} --enable-static --with-zlib --with-unicode"
#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.
#confiure options that have corresponding USE variable.
use odbc \
&& myconf="${myconf} --with-odbc" \
|| myconf="${myconf} --without-odbc"
use opengl \
&& myconf="${myconf} --with-opengl" \
|| myconf="${myconf} --without-opengl"
use gif \
&& myconf="${myconf} --enable-gif" \
|| myconf="${myconf} --disable-gif"
use png \
&& myconf="${myconf} --with-libpng --enable-pnm" \
|| myconf="${myconf} --without-libpng --disable-pnm"
use jpeg \
&& myconf="${myconf} --with-libjpeg" \
|| myconf="${myconf} --without-libjpeg"
use tiff \
&& myconf="${myconf} --with-libtiff" \
|| myconf="${myconf} --without-libtiff"
./configure \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--prefix=/usr \
--host=${CHOST} \
${myconf}|| die
emake || die
}
src_install () {
make \
infodir=${D}/usr/share/info \
mandir=${D}/usr/share/man \
prefix=${D}/usr \
install || die
dodoc *.txt
}
|