| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-misc/x11vnc/x11vnc-0.9.13.ebuild,v 1.6 2012/07/10 19:11:14 ranger Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
|
| 7 |
inherit eutils
|
| 8 |
|
| 9 |
DESCRIPTION="A VNC server for real X displays"
|
| 10 |
HOMEPAGE="http://www.karlrunge.com/x11vnc/"
|
| 11 |
SRC_URI="mirror://sourceforge/libvncserver/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
|
| 16 |
IUSE="avahi crypt fbcon +jpeg ssl system-libvncserver threads tk xinerama +zlib"
|
| 17 |
|
| 18 |
RDEPEND="system-libvncserver? ( >=net-libs/libvncserver-0.9.7[threads=,jpeg=,zlib=] )
|
| 19 |
!system-libvncserver? (
|
| 20 |
zlib? ( sys-libs/zlib )
|
| 21 |
jpeg? ( virtual/jpeg:0 )
|
| 22 |
)
|
| 23 |
ssl? ( dev-libs/openssl )
|
| 24 |
tk? ( dev-lang/tk )
|
| 25 |
avahi? ( >=net-dns/avahi-0.6.4 )
|
| 26 |
xinerama? ( x11-libs/libXinerama )
|
| 27 |
x11-libs/libXfixes
|
| 28 |
x11-libs/libXrandr
|
| 29 |
x11-libs/libX11
|
| 30 |
>=x11-libs/libXtst-1.1.0
|
| 31 |
x11-libs/libXdamage
|
| 32 |
x11-libs/libXext"
|
| 33 |
DEPEND="${RDEPEND}
|
| 34 |
x11-libs/libXt
|
| 35 |
xinerama? ( x11-proto/xineramaproto )
|
| 36 |
x11-proto/inputproto
|
| 37 |
x11-proto/trapproto
|
| 38 |
x11-proto/recordproto
|
| 39 |
x11-proto/xproto
|
| 40 |
x11-proto/xextproto"
|
| 41 |
|
| 42 |
pkg_setup() {
|
| 43 |
if use avahi && ! use threads ; then
|
| 44 |
ewarn "Non-native avahi support has been enabled."
|
| 45 |
ewarn "Native avahi support can be enabled by also enabling the threads USE flag."
|
| 46 |
fi
|
| 47 |
}
|
| 48 |
|
| 49 |
src_prepare() {
|
| 50 |
epatch "${FILESDIR}"/${P}-warnings.patch
|
| 51 |
}
|
| 52 |
|
| 53 |
src_configure() {
|
| 54 |
# --without-v4l because of missing video4linux 2.x support wrt #389079
|
| 55 |
econf \
|
| 56 |
$(use_with system-libvncserver) \
|
| 57 |
$(use_with avahi) \
|
| 58 |
$(use_with xinerama) \
|
| 59 |
$(use_with ssl) \
|
| 60 |
$(use_with ssl crypto) \
|
| 61 |
$(use_with crypt) \
|
| 62 |
--without-v4l \
|
| 63 |
$(use_with jpeg) \
|
| 64 |
$(use_with zlib) \
|
| 65 |
$(use_with threads pthread) \
|
| 66 |
$(use_with fbcon fbdev)
|
| 67 |
}
|
| 68 |
|
| 69 |
src_install() {
|
| 70 |
emake DESTDIR="${D}" install
|
| 71 |
dodoc x11vnc/{ChangeLog,README}
|
| 72 |
# Remove include files, which conflict with net-libs/libvncserver
|
| 73 |
rm -rf "${D}"/usr/include
|
| 74 |
}
|