| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/directvnc/directvnc-0.7.6.ebuild,v 1.2 2011/02/26 21:51:43 signals Exp $
|
| 4 |
|
| 5 |
inherit eutils
|
| 6 |
|
| 7 |
DESCRIPTION="Very thin VNC client for unix framebuffer systems"
|
| 8 |
HOMEPAGE="http://drinkmilk.github.com/directvnc/"
|
| 9 |
SRC_URI="http://github.com/downloads/drinkmilk/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-2"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~x86 ~ppc ~amd64"
|
| 14 |
IUSE="mouse"
|
| 15 |
|
| 16 |
RDEPEND="dev-libs/DirectFB
|
| 17 |
virtual/jpeg"
|
| 18 |
|
| 19 |
DEPEND="${RDEPEND}
|
| 20 |
virtual/pkgconfig
|
| 21 |
>=sys-apps/sed-4
|
| 22 |
x11-proto/xproto"
|
| 23 |
|
| 24 |
src_unpack() {
|
| 25 |
unpack ${A}
|
| 26 |
|
| 27 |
# Make mouse support optional
|
| 28 |
cd "${S}/src"
|
| 29 |
use mouse || epatch "${FILESDIR}/${PN}-mouse.patch"
|
| 30 |
}
|
| 31 |
|
| 32 |
src_compile() {
|
| 33 |
econf || die
|
| 34 |
|
| 35 |
# Fix bug #116148, DFBGraphicsDeviceDescription is no longer present in
|
| 36 |
# newer DirectFB version, but the application never uses it :-/
|
| 37 |
local comment_out="DFBCardCapabilities caps;"
|
| 38 |
sed -i -e "s:${comment_out}://${comment_out}:" src/dfb.c
|
| 39 |
|
| 40 |
emake DEBUGFLAGS="${CFLAGS}" AM_LDFLAGS="${LDFLAGS}" || die
|
| 41 |
}
|
| 42 |
|
| 43 |
src_install() {
|
| 44 |
make install DESTDIR="${D}" || die
|
| 45 |
rm -rf "${D}/usr/doc"
|
| 46 |
dodoc AUTHORS ChangeLog NEWS README THANKS TODO
|
| 47 |
}
|