Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 663800
Collapse All | Expand All

(-)a/media-libs/libfishsound/files/libfishsound-1.0.0-pc.patch (-2 / +2 lines)
Lines 1-8 Link Here
1
This will avoid including -I/usr/include/FLAC in `pkg-config --cflags fishsound` since
1
This will avoid including -I/usr/include/FLAC in `pkg-config --cflags fishsound` since
2
FLAC/assert.h will collide with system assert.h.
2
FLAC/assert.h will collide with system assert.h.
3
3
4
--- fishsound.pc.in
4
--- a/fishsound.pc.in
5
+++ fishsound.pc.in
5
+++ b/fishsound.pc.in
6
@@ -5,7 +5,6 @@
6
@@ -5,7 +5,6 @@
7
 
7
 
8
 Name: fishsound
8
 Name: fishsound
(-)a/media-libs/libfishsound/libfishsound-1.0.0-r1.ebuild (+48 lines)
Line 0 Link Here
1
# Copyright 1999-2018 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
DESCRIPTION="Simple programming interface for decoding and encoding audio data using vorbis or speex"
7
HOMEPAGE="https://www.xiph.org/fishsound/"
8
SRC_URI="https://downloads.xiph.org/releases/libfishsound/${P}.tar.gz"
9
10
LICENSE="BSD"
11
SLOT="0"
12
KEYWORDS="~amd64 ~x86"
13
IUSE="flac speex"
14
15
RDEPEND="media-libs/libvorbis
16
	media-libs/libogg
17
	flac? ( media-libs/flac )
18
	speex? ( media-libs/speex )"
19
DEPEND="${RDEPEND}
20
	virtual/pkgconfig"
21
22
# bug #395153
23
RESTRICT="test"
24
25
PATCHES=( "${FILESDIR}"/${P}-pc.patch )
26
27
src_prepare() {
28
	default
29
	sed -i \
30
		-e 's:doxygen:doxygen-dummy:' \
31
		configure || die
32
}
33
34
src_configure() {
35
	local myconf=""
36
	use flac || myconf="${myconf} --disable-flac"
37
	use speex || myconf="${myconf} --disable-speex"
38
39
	econf \
40
		--disable-dependency-tracking \
41
		${myconf}
42
}
43
44
src_install() {
45
	emake DESTDIR="${D}" \
46
		docdir="${D}/usr/share/doc/${PF}" install
47
	dodoc AUTHORS ChangeLog README
48
}

Return to bug 663800