summaryrefslogtreecommitdiff
path: root/media-libs/libsmf/libsmf-1.3.ebuild
blob: 6994e7e00b466bc0dc940908227bec25442fbab7 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Standard MIDI File format library"
HOMEPAGE="https://libsmf.sourceforge.net/api/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm ppc ppc64 x86"
IUSE="doc readline"

RDEPEND="
	dev-libs/glib:2
	readline? ( sys-libs/readline:= )"
DEPEND="${RDEPEND}"
BDEPEND="
	virtual/pkgconfig
	doc? ( app-text/doxygen )"

src_configure() {
	econf \
		--disable-static \
		$(use_with readline)
}

src_compile() {
	default

	if use doc; then
		doxygen doxygen.cfg || die
	fi
}

src_install() {
	use doc && local HTML_DOCS=( api )
	default

	# no static archives
	find "${D}" -name '*.la' -delete || die
}