| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/qx11grab/qx11grab-0.4.3.ebuild,v 1.4 2012/05/05 08:58:50 jdhore Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit cmake-utils
|
| 8 |
|
| 9 |
DESCRIPTION="X11 desktop video grabber tray"
|
| 10 |
HOMEPAGE="http://qx11grab.hjcms.de/"
|
| 11 |
SRC_URI="http://qx11grab.hjcms.de/downloads/${PV}/${P}.tar.xz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="amd64 x86"
|
| 16 |
IUSE="kde opengl pulseaudio"
|
| 17 |
|
| 18 |
RDEPEND="
|
| 19 |
>=media-libs/alsa-lib-1.0.24
|
| 20 |
>=media-libs/fontconfig-2.4
|
| 21 |
>=media-libs/freetype-2.4:2
|
| 22 |
>=sys-apps/dbus-1.4.16
|
| 23 |
>=x11-libs/libX11-1.3.4
|
| 24 |
>=x11-libs/libXrandr-1.3
|
| 25 |
>=x11-libs/qt-core-4.7.2:4
|
| 26 |
>=x11-libs/qt-dbus-4.7.2:4
|
| 27 |
>=x11-libs/qt-gui-4.7.2:4[dbus]
|
| 28 |
>=virtual/ffmpeg-0.10.2-r1[X,encode,truetype]
|
| 29 |
kde? ( kde-base/kdelibs:4 )
|
| 30 |
opengl? ( >=x11-libs/qt-opengl-4.7.2:4 )
|
| 31 |
pulseaudio? ( media-sound/pulseaudio )
|
| 32 |
"
|
| 33 |
DEPEND="${RDEPEND}
|
| 34 |
virtual/pkgconfig
|
| 35 |
kde? ( dev-util/automoc )
|
| 36 |
"
|
| 37 |
PDEPEND="virtual/freedesktop-icon-theme"
|
| 38 |
|
| 39 |
PATCHES=(
|
| 40 |
"${FILESDIR}/${PV}-fix-ffmpeg-filter-check.patch"
|
| 41 |
)
|
| 42 |
|
| 43 |
src_prepare() {
|
| 44 |
base_src_prepare
|
| 45 |
|
| 46 |
# install docs into standard Gentoo location
|
| 47 |
sed -i -e "/DESTINATION share/ s:\${CMAKE_PROJECT_NAME}:doc/${PF}:" \
|
| 48 |
CMakeLists.txt || die
|
| 49 |
}
|
| 50 |
|
| 51 |
src_configure() {
|
| 52 |
local mycmakeargs=(
|
| 53 |
$(cmake-utils_use_enable kde KDE_SUPPORT)
|
| 54 |
$(cmake-utils_use_enable opengl)
|
| 55 |
$(cmake-utils_use_enable pulseaudio PULSE)
|
| 56 |
)
|
| 57 |
cmake-utils_src_configure
|
| 58 |
}
|