From 936b25bba53af1c03c63d3394fe166bce441a9bc Mon Sep 17 00:00:00 2001 From: Sam James <sam@gentoo.org> Date: Sat, 29 Oct 2022 13:03:03 +0100 Subject: media-libs/libmikmod: EAPI 8 Signed-off-by: Sam James <sam@gentoo.org> --- media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild | 79 +++++++++++++++++++++++ media-libs/libmikmod/libmikmod-3.3.11.1.ebuild | 74 --------------------- 2 files changed, 79 insertions(+), 74 deletions(-) create mode 100644 media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild delete mode 100644 media-libs/libmikmod/libmikmod-3.3.11.1.ebuild (limited to 'media-libs') diff --git a/media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild b/media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild new file mode 100644 index 000000000000..96b5ee258b0b --- /dev/null +++ b/media-libs/libmikmod/libmikmod-3.3.11.1-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib multilib-minimal + +DESCRIPTION="A library to play a wide range of module formats" +HOMEPAGE="http://mikmod.sourceforge.net/" +SRC_URI="mirror://sourceforge/mikmod/${P}.tar.gz" + +LICENSE="LGPL-2+ LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="+alsa coreaudio cpu_flags_ppc_altivec debug nas openal oss pulseaudio cpu_flags_x86_sse2 static-libs +threads" + +REQUIRED_USE="|| ( alsa coreaudio nas openal oss pulseaudio )" + +RDEPEND=" + !${CATEGORY}/${PN}:2 + alsa? ( >=media-libs/alsa-lib-1.0.27.2:=[${MULTILIB_USEDEP}] ) + nas? ( >=media-libs/nas-1.9.4:=[${MULTILIB_USEDEP}] ) + openal? ( >=media-libs/openal-1.15.1-r1[${MULTILIB_USEDEP}] ) + pulseaudio? ( >=media-sound/pulseaudio-5.0[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + oss? ( virtual/os-headers ) +" +BDEPEND="sys-apps/texinfo" + +MULTILIB_CHOST_TOOLS=( + /usr/bin/libmikmod-config +) + +src_prepare() { + default + + # USE=debug enables Werror, bug #621688 + sed -i -e 's/-Werror//' configure || die +} + +multilib_src_configure() { + local mysimd="--disable-simd" + if use ppc || use ppc64 || use ppc-macos; then + mysimd="$(use_enable cpu_flags_ppc_altivec simd)" + fi + if use amd64 || use x86 || use amd64-linux || use x86-linux || use x64-macos; then + mysimd="$(use_enable cpu_flags_x86_sse2 simd)" + fi + + # sdl, sdl2: missing multilib supported ebuilds, temporarily disabled, remember to update REQUIRED_USE + ECONF_SOURCE=${S} econf \ + $(use_enable alsa) \ + $(use_enable nas) \ + $(use_enable pulseaudio) \ + --disable-sdl \ + --disable-sdl2 \ + $(use_enable openal) \ + $(use_enable oss) \ + $(use_enable coreaudio osx) \ + $(use_enable debug) \ + $(use_enable threads) \ + $(use_enable static-libs static) \ + --disable-dl \ + ${mysimd} +} + +multilib_src_install() { + emake DESTDIR="${D}" install + dosym ${PN}$(get_libname 3) /usr/$(get_libdir)/${PN}$(get_libname 2) +} + +multilib_src_install_all() { + dodoc AUTHORS NEWS README TODO + docinto html + dodoc docs/*.html + + find "${ED}" -name '*.la' -delete || die +} diff --git a/media-libs/libmikmod/libmikmod-3.3.11.1.ebuild b/media-libs/libmikmod/libmikmod-3.3.11.1.ebuild deleted file mode 100644 index bb462fd8cdd0..000000000000 --- a/media-libs/libmikmod/libmikmod-3.3.11.1.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit multilib-minimal - -DESCRIPTION="A library to play a wide range of module formats" -HOMEPAGE="http://mikmod.sourceforge.net/" -SRC_URI="mirror://sourceforge/mikmod/${P}.tar.gz" - -LICENSE="LGPL-2+ LGPL-2.1" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="+alsa coreaudio cpu_flags_ppc_altivec debug nas openal oss pulseaudio cpu_flags_x86_sse2 static-libs +threads" - -REQUIRED_USE="|| ( alsa coreaudio nas openal oss pulseaudio )" - -RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0.27.2:=[${MULTILIB_USEDEP}] ) - nas? ( >=media-libs/nas-1.9.4:=[${MULTILIB_USEDEP}] ) - openal? ( >=media-libs/openal-1.15.1-r1[${MULTILIB_USEDEP}] ) - pulseaudio? ( >=media-sound/pulseaudio-5.0[${MULTILIB_USEDEP}] ) - !${CATEGORY}/${PN}:2" -DEPEND="${RDEPEND} - sys-apps/texinfo - oss? ( virtual/os-headers )" - -MULTILIB_CHOST_TOOLS=( - /usr/bin/libmikmod-config -) - -src_prepare() { - # USE=debug enables Werror, bug #621688 - sed -i -e 's/-Werror//' configure || die - default -} - -multilib_src_configure() { - local mysimd="--disable-simd" - if use ppc || use ppc64 || use ppc-macos; then - mysimd="$(use_enable cpu_flags_ppc_altivec simd)" - fi - if use amd64 || use x86 || use amd64-linux || use x86-linux || use x64-macos; then - mysimd="$(use_enable cpu_flags_x86_sse2 simd)" - fi - - # sdl, sdl2: missing multilib supported ebuilds, temporarily disabled, remember to update REQUIRED_USE - ECONF_SOURCE=${S} \ - econf \ - $(use_enable alsa) \ - $(use_enable nas) \ - $(use_enable pulseaudio) \ - --disable-sdl \ - --disable-sdl2 \ - $(use_enable openal) \ - $(use_enable oss) \ - $(use_enable coreaudio osx) \ - $(use_enable debug) \ - $(use_enable threads) \ - $(use_enable static-libs static) \ - --disable-dl \ - ${mysimd} -} - -multilib_src_install() { - emake DESTDIR="${D}" install - dosym ${PN}$(get_libname 3) /usr/$(get_libdir)/${PN}$(get_libname 2) -} - -multilib_src_install_all() { - dodoc AUTHORS NEWS README TODO - docinto html - dodoc docs/*.html - find "${ED}" -name '*.la' -delete || die -} -- cgit v1.2.3-65-gdbad