summaryrefslogtreecommitdiff
blob: f17b77d49a1ee0e77b8152abc685db0ce4be7c7b (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/xoscope/xoscope-2.0.ebuild,v 1.3 2012/05/04 07:10:19 jdhore Exp $

EAPI=4

inherit autotools linux-info

DESCRIPTION="Soundcard Oscilloscope for X"
HOMEPAGE="http://xoscope.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="x11-libs/gtkdatabox
	virtual/man"
DEPEND="${RDEPEND}
	virtual/pkgconfig"

CONFIG_CHECK="~!SND_PCM_OSS"
ERROR_SND_PCM_OSS="CONFIG_SND_PCM_OSS is needed to support sound card input via /dev/dsp"

src_prepare() {
	epatch "${FILESDIR}"/${P}-remove_bundled_gtkdatabox.patch
	epatch "${FILESDIR}"/${P}-man_no_-Tutf8.patch
	epatch "${FILESDIR}"/${P}-implicit_decls.patch
	epatch "${FILESDIR}"/${P}-comedi_compile.patch

	eautoreconf
}

src_compile() {
	emake -j1
}