Diff mac-4.11.4.5.7-r1 with a mac-10.24

/usr/portage/media-sound/mac/mac-10.24.ebuild 2023-10-09 14:52:31.784368408 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6
inherit autotools flag-o-matic
7

  
8
MY_PN=monkeys-audio
9
MY_PV=$(ver_cut 1-2)-u$(ver_cut 3)-b$(ver_cut 4)-s$(ver_cut 5)
10
MY_P=${MY_PN}_${MY_PV}
6
inherit cmake
11 7

  
12 8
DESCRIPTION="Monkey's Audio Codecs"
13
HOMEPAGE="http://www.deb-multimedia.org/dists/testing/main/binary-amd64/package/monkeys-audio.php"
14
SRC_URI="http://www.deb-multimedia.org/pool/main/m/monkeys-audio/${MY_P}.orig.tar.gz"
15
S="${WORKDIR}/${MY_P/_/-}"
9
HOMEPAGE="https://www.monkeysaudio.com"
10
SRC_URI="http://monkeysaudio.com/files/MAC_${PV/.}_SDK.zip -> ${P}.zip"
16 11

  
17 12
LICENSE="mac"
18
SLOT="0"
19
KEYWORDS="~alpha amd64 ~loong ppc ppc64 ~riscv sparc x86"
20
IUSE="cpu_flags_x86_mmx static-libs"
21

  
22
BDEPEND="cpu_flags_x86_mmx? ( dev-lang/yasm )"
23

  
24
PATCHES=(
25
	"${FILESDIR}"/${P}-output.patch
26
	"${FILESDIR}"/${P}-gcc6.patch
27
	"${FILESDIR}"/${P}-null.patch
28
)
29

  
30
DOCS=( AUTHORS ChangeLog NEWS TODO README src/History.txt src/Credits.txt ChangeLog.shntool )
13
SLOT="0/10"
14
KEYWORDS="~alpha ~amd64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
31 15

  
32
RESTRICT="mirror"
33

  
34
src_prepare() {
16
RDEPEND=""
17
DEPEND=""
18
BDEPEND="app-arch/unzip"
19

  
20
src_unpack() {
21
	mkdir -p "${S}" || die
22
	cd "${S}" || die
35 23
	default
36

  
37
	sed -i -e 's:-O3::' configure{,.in} || die
38

  
39
	# bug #778260
40
	sed -i 's/tag=ASM/tag=NASM/' src/MACLib/Assembly/Makefile.am || die
41
	eautoreconf
42
}
43

  
44
src_configure() {
45
	append-cppflags -DSHNTOOL
46
	use cpu_flags_x86_mmx && append-ldflags -Wl,-z,noexecstack
47

  
48
	econf \
49
		$(use_enable static-libs static) \
50
		$(use_enable cpu_flags_x86_mmx assembly)
51 24
}
52 25

  
53
src_install() {
54
	default
55

  
56
	insinto /usr/include/${PN}
57
	doins src/MACLib/{BitArray,UnBitArrayBase,Prepare}.h #409435
26
CMAKE_BUILD_TYPE=Release
58 27

  
59
	find "${D}" -name '*.la' -delete || die
60
}
28
PATCHES=(
29
	"${FILESDIR}/${PN}-10.18-linux.patch"
30
	"${FILESDIR}/${PN}-10.18-output.patch"
31
)
Thank you!