summaryrefslogtreecommitdiff
path: root/media-libs/libcdaudio/libcdaudio-0.99.12-r5.ebuild
blob: 252b6d1402d8992666ec49aacc1d9f3d75ea8fab (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
46
47
48
49
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools flag-o-matic

DESCRIPTION="Library of cd audio related routines"
HOMEPAGE="https://libcdaudio.sourceforge.net/"
SRC_URI="mirror://sourceforge/libcdaudio/${P}.tar.gz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"

PATCHES=(
	"${FILESDIR}"/${PN}-0.99-CAN-2005-0706.patch
	"${FILESDIR}"/${P}-bug245649.patch
	"${FILESDIR}"/${P}-libdir-fix.patch
	"${FILESDIR}"/${P}-m4-testprogram-fix.patch
)

src_prepare() {
	default

	# replace vintage 2004 autotools collection complete with worrying
	# code to "make it portable" by converting ANSI C into K&R C
	sed -i '/AM_C_PROTOTYPES/d' configure.ac || die
	sed -i '/ansi2knr/d' Makefile.am || die
	eautoreconf
}

src_configure() {
	# -Werror=lto-type-mismatch
	#
	# Upstream is pretty dead. The best that can be said is that as of a year
	# ago if you posted support tickets, upstream would ask you:
	#
	# "libcdaudio is looking for a maintainer. Would you accept becoming a
	# maintainer, so that you can integrate the change directly?"
	filter-lto

	econf --enable-threads --disable-static
}

src_install() {
	default
	find "${ED}" -name '*.la' -delete || die
}