summaryrefslogtreecommitdiff
path: root/sys-boot/plymouth-extras/plymouth-extras-0.8.8-r1.ebuild
blob: b24ea43d90c4597011bb9db09b58741477a4fece (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4

inherit autotools-utils systemd toolchain-funcs

DESCRIPTION="X11 and Label plugins for Plymouth"
HOMEPAGE="http://cgit.freedesktop.org/plymouth/"
SRC_URI="http://www.freedesktop.org/software/plymouth/releases/${P/-extras}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="debug static-libs"

CDEPEND=">=media-libs/libpng-1.2.16
	dev-libs/glib
	>=x11-libs/gtk+-2.12:2
	>=x11-libs/pango-1.21
	~sys-boot/plymouth-${PV}[-gtk,-pango,debug=]"
DEPEND="${CDEPEND}
	virtual/pkgconfig
	"
RDEPEND="${CDEPEND}"

S="${WORKDIR}/${P/-extras}"

src_configure() {
	local myeconfargs=(
		--with-system-root-install
		--localstatedir=/var
		--enable-gtk
		--enable-pango
		$(use_enable debug tracing)
		$(use_enable libkms)
		$(use_enable video_cards_intel libdrm_intel)
		$(use_enable video_cards_radeon libdrm_radeon)
		)
	autotools-utils_src_configure
}

src_install() {
	local build_dir="${BUILD_DIR}"

	# Build the x11 plugin
	BUILD_DIR="${build_dir}/src/plugins/renderers/x11" autotools-utils_src_install

	# Build the label plugin
	BUILD_DIR="${build_dir}/src/plugins/controls/label" autotools-utils_src_install
}