You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-plugins/gkrellm-volume/gkrellm-volume-2.1.13-r2.eb...

33 lines
813 B

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellm-volume/gkrellm-volume-2.1.13-r2.ebuild,v 1.3 2012/06/14 13:21:13 ago Exp $
EAPI="3"
inherit gkrellm-plugin eutils
IUSE="alsa"
DESCRIPTION="A mixer control plugin for gkrellm"
HOMEPAGE="http://gkrellm.luon.net/volume.php"
SRC_URI="http://gkrellm.luon.net/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="2"
KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
DEPEND="alsa? ( media-libs/alsa-lib )"
S=${WORKDIR}/${PN}
PLUGIN_SO=volume.so
src_prepare() {
epatch "${FILESDIR}/${P}-reenable.patch"
epatch "${FILESDIR}/${P}-Respect-LDFLAGS.patch"
}
src_compile() {
local myconf=""
use alsa && myconf="${myconf} enable_alsa=1"
make ${myconf} || die "make failed"
}