/[gentoo-x86]/net-misc/rdesktop/rdesktop-1.7.1.ebuild
Gentoo

Contents of /net-misc/rdesktop/rdesktop-1.7.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations) (download)
Sun Aug 19 23:47:24 2012 UTC (23 months, 1 week ago) by ottxor
Branch: MAIN
Changes since 1.8: +3 -3 lines
added prefix keywords

(Portage version: 2.2.0_alpha121/cvs/Linux i686)

1 voyageur 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ottxor 1.9 # $Header: /var/cvsroot/gentoo-x86/net-misc/rdesktop/rdesktop-1.7.1.ebuild,v 1.8 2012/07/15 18:18:23 armin76 Exp $
4 voyageur 1.1
5     EAPI=4
6    
7     inherit autotools eutils
8    
9     MY_PV=${PV/_/-}
10    
11     DESCRIPTION="A Remote Desktop Protocol Client"
12     HOMEPAGE="http://rdesktop.sourceforge.net/"
13     SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}.tar.gz"
14    
15     LICENSE="GPL-3"
16     SLOT="0"
17 ottxor 1.9 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
18 voyageur 1.1 IUSE="alsa ao debug ipv6 libsamplerate oss pcsc-lite"
19    
20     S=${WORKDIR}/${PN}-${MY_PV}
21    
22     RDEPEND=">=dev-libs/openssl-0.9.6b
23     x11-libs/libX11
24     x11-libs/libXext
25     x11-libs/libXau
26     x11-libs/libXdmcp
27     alsa? ( media-libs/alsa-lib )
28     ao? ( >=media-libs/libao-0.8.6 )
29     libsamplerate? ( media-libs/libsamplerate )
30     pcsc-lite? ( >=sys-apps/pcsc-lite-1.6.6 )"
31     DEPEND="${RDEPEND}
32 jdhore 1.2 virtual/pkgconfig
33 voyageur 1.1 x11-libs/libXt"
34    
35     src_prepare() {
36     # Prevent automatic stripping
37     local strip="$(echo '$(STRIP) $(DESTDIR)$(bindir)/rdesktop')"
38     sed -i -e "s:${strip}::" Makefile.in \
39     || die "sed failed in Makefile.in"
40    
41     # Automagic dependency on libsamplerate
42     epatch "${FILESDIR}"/${PN}-1.6.0-sound_configure.patch
43     # Fix --enable-smartcard logic
44     epatch "${FILESDIR}"/${PN}-1.6.0-smartcard_configure.patch
45     # bug #280923
46     epatch "${FILESDIR}"/${PN}-1.7.0-libao_crash.patch
47    
48     eautoreconf
49     }
50    
51     src_configure() {
52     if use ao; then
53     sound_conf=$(use_with ao sound libao)
54     else if use alsa; then
55     sound_conf=$(use_with alsa sound alsa)
56     else
57     sound_conf=$(use_with oss sound oss)
58     fi
59     fi
60    
61     econf \
62 ottxor 1.9 --with-openssl="${EPREFIX}"/usr \
63 voyageur 1.1 $(use_with debug) \
64     $(use_with ipv6) \
65     $(use_with libsamplerate) \
66     $(use_enable pcsc-lite smartcard) \
67     ${sound_conf}
68     }
69    
70     src_install() {
71     emake DESTDIR="${D}" install
72     dodoc doc/HACKING doc/TODO doc/keymapping.txt
73    
74     # For #180313 - applies to versions >= 1.5.0
75     # Fixes sf.net bug
76     # http://sourceforge.net/tracker/index.php?func=detail&aid=1725634&group_id=24366&atid=381349
77     # check for next version to see if this needs to be removed
78     insinto /usr/share/rdesktop/keymaps
79     newins "${FILESDIR}/rdesktop-keymap-additional" additional
80     newins "${FILESDIR}/rdesktop-keymap-cs" cs
81     newins "${FILESDIR}/rdesktop-keymap-sk" sk
82     }

  ViewVC Help
Powered by ViewVC 1.1.20