Lines 1-8
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.13.1.ebuild,v 1.1 2008/07/05 19:14:17 armin76 Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils autotools |
5 |
inherit eutils |
6 |
|
6 |
|
7 |
MY_P=${P/rb_/} |
7 |
MY_P=${P/rb_/} |
8 |
MY_P=${MY_P/torrent/torrent-rasterbar} |
8 |
MY_P=${MY_P/torrent/torrent-rasterbar} |
Lines 18-24
Link Here
|
18 |
|
18 |
|
19 |
IUSE="debug" |
19 |
IUSE="debug" |
20 |
|
20 |
|
21 |
DEPEND="dev-libs/boost |
21 |
DEPEND="|| ( ( !>=dev-libs/boost-1.35 dev-cpp/asio ) |
|
|
22 |
( >=dev-libs/boost-1.35 ) ) |
22 |
!net-libs/libtorrent" |
23 |
!net-libs/libtorrent" |
23 |
RDEPEND="${DEPEND}" |
24 |
RDEPEND="${DEPEND}" |
24 |
|
25 |
|
Lines 31-45
Link Here
|
31 |
} |
32 |
} |
32 |
|
33 |
|
33 |
src_compile() { |
34 |
src_compile() { |
34 |
BOOST_LIBS="--with-boost-date-time=boost_date_time-mt \ |
35 |
#use multi-threading versions of boost libs |
35 |
--with-boost-filesystem=boost_filesystem-mt \ |
36 |
BOOST_LIBS=" |
36 |
--with-boost-thread=boost_thread-mt \ |
37 |
--with-boost-system=boost_system-mt \ |
37 |
--with-boost-regex=boost_regex-mt \ |
38 |
--with-boost-asio=boost_system-mt |
38 |
--with-boost-program_options=boost_program_options-mt" |
39 |
--with-boost-filesystem=boost_filesystem-mt \ |
|
|
40 |
--with-boost-thread=boost_thread-mt \ |
41 |
--with-boost-regex=boost_regex-mt \ |
42 |
--with-boost-program_options=boost_program_options-mt" |
39 |
|
43 |
|
40 |
econf $(use_enable debug) \ |
44 |
econf $(use_enable debug) \ |
41 |
${BOOST_LIBS} \ |
45 |
--with-asio=system \ |
42 |
LDFLAGS="${LDFLAGS} -pthread" || die "econf failed" |
46 |
${BOOST_LIBS} \ |
|
|
47 |
|| die "econf failed" |
48 |
|
43 |
emake || die "emake failed" |
49 |
emake || die "emake failed" |
44 |
} |
50 |
} |
45 |
|
51 |
|