You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
3 months ago
|
# 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
|
||
|
}
|