1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 inherit eutils toolchain-funcs wxwidgets flag-o-matic multilib
10 MY_P="MUTE_fileSharing-${PV}_UnixSource"
12 DESCRIPTION="P2P network that provides easy search-and-download
13 functionality while also protecting your privacy"
14 HOMEPAGE="http://mute-net.sourceforge.net/"
15 SRC_URI="mirror://sourceforge/mute-net/${MY_P}.tar.gz"
22 DEPEND="dev-libs/crypto++
23 wxwidgets? ( x11-libs/wxGTK:2.6 )"
31 epatch "${FILESDIR}/${P}-configure.patch"
32 epatch "${FILESDIR}/${P}-makefile.patch"
34 cd "${S}/MUTE/otherApps/fileSharing/userInterface/languages/"
35 mv Espa?ol.txt Espanol.txt
36 rm TranslationHelper.txt
40 # not an autotools configure
42 ./configure >/dev/null || die "configure failed"
44 # break the crypto at startup
45 filter-flags -fomit-frame-pointer
47 emake GXX=$(tc-getCXX) CRYPTO_LIB="/usr/$(get_libdir)/libcrypto++.a" || die "emake failed"
49 if use wxwidgets; then
50 cd "${S}/MUTE/otherApps/fileSharing/userInterface/wxWindows"
51 emake GXX="$(tc-getCXX)" WX_CONFIG="${WX_CONFIG}" \
52 CRYPTO_LIB="/usr/$(get_libdir)/libcrypto++.a" || die "emake failed"
57 exeinto /usr/share/mute
58 doexe MUTE/otherApps/fileSharing/userInterface/textBased/textFileSharingMUTE
59 dobin "${FILESDIR}/MUTE"
60 if use wxwidgets; then
61 doexe MUTE/otherApps/fileSharing/userInterface/wxWindows/fileSharingMUTE
62 dohard /usr/bin/MUTE /usr/bin/wxMUTE
65 insinto /etc/mute/languages
66 doins MUTE/otherApps/fileSharing/userInterface/languages/*.txt
67 insinto /etc/mute/settings
68 doins MUTE/otherApps/fileSharing/userInterface/settings/*.ini
70 dodoc MUTE/otherApps/fileSharing/doc/*.txt
71 dodoc MUTE/otherApps/fileSharing/userInterface/settings/README.txt
72 dodoc MUTE/otherApps/fileSharing/doc/fileSharingProtocol.txt
73 dodoc minorGems/protocol/p2p/*