blob: 5494913e62c55edece209214bb27f447f16fda1f (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/wvstreams/wvstreams-3.75.ebuild,v 1.8 2004/08/12 22:39:30 aliz Exp $
inherit eutils
DESCRIPTION="A network programming library in C++"
HOMEPAGE="http://open.nit.ca/wiki/?page=WvStreams"
SRC_URI="http://people.nit.ca/~jim/${P}.0.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc -alpha ~amd64 -hppa ~ppc"
IUSE="gtk qt oggvorbis speex fam gdbm pam fftw tcltk"
RDEPEND="gtk? ( >=x11-libs/gtk+-2.2.0 )
qt? ( >=x11-libs/qt-3.0.5 )
oggvorbis? ( >=media-libs/libogg-1.0
>=media-libs/libvorbis-1.0
speex? ( <=media-libs/speex-1.0 ) )
!oggvorbis? ( speex? ( >=media-libs/speex-1.0 ) )
fam? ( >=app-admin/fam-2.7.0 )
>=sys-libs/db-3
gdbm? ( >=sys-libs/gdbm-1.8.0 )
pam? ( >=sys-libs/pam-0.75 )
>=sys-libs/zlib-1.1.4
dev-libs/openssl
fftw? ( dev-libs/fftw )
tcltk? ( dev-lang/tcl
dev-lang/swig )"
DEPEND="${RDEPEND}
virtual/libc"
if has_version =dev-lang/tcl-8.3*; then
newdepend dev-lang/swig
fi
if has_version =dev-lang/tcl-8.4*; then
newdepend sys-devel/autoconf
fi
S=${WORKDIR}/${P}.0
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${P}-makefile.patch
epatch ${FILESDIR}/${P}-fPIC.patch
if has_version =dev-lang/tcl-8.4*; then
epatch ${FILESDIR}/${P}-tcl_8_4.patch
autoconf || die
fi
}
src_compile() {
econf `use_with gtk` \
`use_with qt` \
`use_with oggvorbis ogg` \
`use_with oggvorbis vorbis` \
`use_with fam` \
`use_with gdbm` \
`use_with pam` \
`use_with qt` \
`use_with speex` \
`use_with fftw` \
`use_with tcltk tcl` \
--enable-verbose \
--with-bdb \
--with-openssl \
--with-zlib \
|| die
make || die "compile failed"
}
src_install() {
make DESTDIR=${D} install || die
}
|