summaryrefslogtreecommitdiff
blob: 28ce47c011f6acfb33b2b073d0a5c3dcdba72994 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit autotools flag-o-matic gnome2

DESCRIPTION="GTK based loudspeaker enclosure and crossovernetwork designer"
HOMEPAGE="http://gspeakers.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND="
	dev-cpp/gtkmm:2.4
	>=dev-libs/libsigc++-2.6:2
	dev-libs/libxml2:2
	|| (
		sci-electronics/gnucap
		sci-electronics/ngspice
		sci-electronics/spice
	)
"
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/pkgconfig
"

PATCHES=(
	"${FILESDIR}"/${P}-cxxflags.patch
	"${FILESDIR}"/${P}-gcc43.patch
	"${FILESDIR}"/${P}-glib-single-include.patch
	"${FILESDIR}"/${P}-fix-sigc-includes.patch
	"${FILESDIR}"/${P}-c++11.patch
)

src_prepare() {
	append-cxxflags '-std=c++11'
	mv configure.in configure.ac || die
	gnome2_src_prepare
	eautoreconf
}