summaryrefslogtreecommitdiff
blob: aa6775d49f5bbdfbb0326d27f9776df12c744629 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-misc/rdesktop/rdesktop-1.1.0-r1.ebuild,v 1.4 2002/07/11 06:30:48 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="A Remote Desktop Protocol Client"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://rdesktop.sourceforge.net/"

KEYWORDS="x86"
DEPEND="x11-base/xfree ssl? ( >=dev-libs/openssl-0.9.6b )"
LICENSE="GPL-2"
SLOT="0"

src_compile() {
	local myconf
	use ssl && myconf="--with-openssl"
	use ssl || myconf="--without-openssl"
	[ "${DEBUG}" ] && myconf="${myconf} --with-debug"
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man $myconf || die
	use ssl && echo "CFLAGS += -I/usr/include/openssl" >> Makeconf
	# Hold on tight folks, this ain't purdy
	if [ ! -z "${CXXFLAGS}" ]; then
		sed -e 's/-O2//g' Makefile > Makefile.tmp && mv Makefile.tmp Makefile
		echo "CFLAGS += ${CXXFLAGS}" >> Makeconf
	fi
	emake || die "compile problem"
}

src_install () {
	dobin rdesktop
	doman rdesktop.1
	dodoc COPYING
}