Diff libsidplay-1.36.59-r2 with a libsidplay-2.1.1-r6

/usr/portage/media-libs/libsidplay/libsidplay-2.1.1-r6.ebuild 2023-10-09 14:52:31.696368406 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=8
5 5

  
6
inherit libtool multilib-minimal
6
inherit autotools multilib-minimal
7

  
8
MY_P=sidplay-libs-${PV}
7 9

  
8 10
DESCRIPTION="C64 SID player library"
9
HOMEPAGE="http://critical.ch/distfiles/"
10
SRC_URI="http://critical.ch/distfiles/${P}.tgz"
11
HOMEPAGE="http://sidplay2.sourceforge.net/"
12
SRC_URI="mirror://sourceforge/sidplay2/${MY_P}.tar.gz"
11 13

  
12 14
LICENSE="GPL-2"
13
SLOT="1"
14
KEYWORDS="~alpha amd64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
15
SLOT="2"
16
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv sparc x86"
15 17
IUSE="static-libs"
16
DEPEND=""
17
RDEPEND=""
18 18

  
19
DOCS=( AUTHORS DEVELOPER )
19
BDEPEND="sys-devel/autoconf-archive"
20

  
21
MULTILIB_WRAPPED_HEADERS=(
22
	/usr/include/sidplay/sidconfig.h
23
)
24

  
20 25
PATCHES=(
26
	"${FILESDIR}"/${P}-gcc41.patch
27
	"${FILESDIR}"/${P}-fbsd.patch
21 28
	"${FILESDIR}"/${P}-gcc43.patch
22
	"${FILESDIR}"/${P}-fix-c++14.patch
29
	"${FILESDIR}"/${P}-no_libtool_reference.patch
30
	"${FILESDIR}"/${P}-gcc6.patch
31
	"${FILESDIR}"/${P}-autoconf.patch
32
	"${FILESDIR}"/${P}-slibtool.patch
23 33
)
24 34

  
35
S="${WORKDIR}/${MY_P}"
36

  
25 37
src_prepare() {
26 38
	default
27
	elibtoolize # required for fbsd .so versioning
39

  
40
	local subdirs=(
41
		builders/hardsid-builder
42
		builders/resid-builder
43
		libsidplay
44
		libsidutils
45
		resid
46
		.
47
	)
48

  
49
	for i in ${subdirs[@]}; do
50
		(
51
			cd "$i" || die
52
			eautoreconf
53
		)
54
	done
55

  
56
	multilib_copy_sources
28 57
}
29 58

  
30 59
multilib_src_configure() {
31
	ECONF_SOURCE="${S}" \
32
	econf $(use_enable static-libs static)
60
	local myeconfargs=(
61
		--enable-shared
62
		--with-pic
63
		$(use_enable static-libs static)
64
	)
65
	econf "${myeconfargs[@]}"
33 66
}
34 67

  
35 68
multilib_src_install_all() {
36
	einstalldocs
69
	docinto libsidplay
70
	dodoc libsidplay/{AUTHORS,ChangeLog,README,TODO}
71

  
72
	docinto libsidutils
73
	dodoc libsidutils/{AUTHORS,ChangeLog,README,TODO}
74

  
75
	docinto resid
76
	dodoc resid/{AUTHORS,ChangeLog,NEWS,README,THANKS,TODO}
77

  
78
	doenvd "${FILESDIR}"/65resid
79

  
37 80
	find "${D}" -name '*.la' -delete || die
38 81
}
Thank you!