summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-01-24 00:31:16 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-01-24 00:43:18 +0100
commitf696f6c5c2130ad346b9718a3f0e455feec6ccae (patch)
tree4d5661529dd17cf6f30c05f365b462c1f2194324
parentdev-libs/dbus-c++: Port to EAPI 7 (diff)
downloadgentoo-f696f6c5c2130ad346b9718a3f0e455feec6ccae.tar.gz
gentoo-f696f6c5c2130ad346b9718a3f0e455feec6ccae.tar.bz2
gentoo-f696f6c5c2130ad346b9718a3f0e455feec6ccae.zip
media-libs/libmodplug: EAPI-7++, autotools-multilib--
Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--media-libs/libmodplug/files/libmodplug-0.8.4-timidity-patches.patch4
-rw-r--r--media-libs/libmodplug/files/libmodplug-0.8.9.0-no-fast-math.patch6
-rw-r--r--media-libs/libmodplug/libmodplug-0.8.9.0-r1.ebuild35
3 files changed, 40 insertions, 5 deletions
diff --git a/media-libs/libmodplug/files/libmodplug-0.8.4-timidity-patches.patch b/media-libs/libmodplug/files/libmodplug-0.8.4-timidity-patches.patch
index 87150effb3e9..cb5d56006102 100644
--- a/media-libs/libmodplug/files/libmodplug-0.8.4-timidity-patches.patch
+++ b/media-libs/libmodplug/files/libmodplug-0.8.4-timidity-patches.patch
@@ -1,7 +1,7 @@
Index: libmodplug-0.8.4/src/load_pat.cpp
===================================================================
---- libmodplug-0.8.4.orig/src/load_pat.cpp
-+++ libmodplug-0.8.4/src/load_pat.cpp
+--- a/src/load_pat.cpp
++++ b/src/load_pat.cpp
@@ -53,8 +53,8 @@ typedef UWORD WORD;
#define PATHFORPAT "C:\\TIMIDITY\\INSTRUMENTS"
#else
diff --git a/media-libs/libmodplug/files/libmodplug-0.8.9.0-no-fast-math.patch b/media-libs/libmodplug/files/libmodplug-0.8.9.0-no-fast-math.patch
index 51f0d9d2d495..83bf8d9a8e30 100644
--- a/media-libs/libmodplug/files/libmodplug-0.8.9.0-no-fast-math.patch
+++ b/media-libs/libmodplug/files/libmodplug-0.8.9.0-no-fast-math.patch
@@ -1,6 +1,6 @@
-diff -uNr libmodplug-0.8.9.0.ORIG/configure.ac libmodplug-0.8.9.0/configure.ac
---- libmodplug-0.8.9.0.ORIG/configure.ac 2017-07-26 22:39:07.461198820 +0100
-+++ libmodplug-0.8.9.0/configure.ac 2017-07-26 22:39:53.284622741 +0100
+diff -uNr a/configure.ac b/configure.ac
+--- a/configure.ac 2017-07-26 22:39:07.461198820 +0100
++++ b/configure.ac 2017-07-26 22:39:53.284622741 +0100
@@ -31,7 +31,7 @@
AC_CHECK_HEADERS([inttypes.h stdint.h malloc.h])
AC_CHECK_FUNCS(setenv sinf)
diff --git a/media-libs/libmodplug/libmodplug-0.8.9.0-r1.ebuild b/media-libs/libmodplug/libmodplug-0.8.9.0-r1.ebuild
new file mode 100644
index 000000000000..ce0affd3f679
--- /dev/null
+++ b/media-libs/libmodplug/libmodplug-0.8.9.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools multilib-minimal
+
+DESCRIPTION="Library for playing MOD-like music files"
+HOMEPAGE="http://modplug-xmms.sourceforge.net/"
+SRC_URI="mirror://sourceforge/modplug-xmms/${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
+
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.8.4-timidity-patches.patch"
+ "${FILESDIR}/${P}-no-fast-math.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+multilib_src_configure() {
+ ECONF_SOURCE=${S} econf --disable-static
+}
+
+multilib_src_install_all() {
+ einstalldocs
+ find "${ED}" -type f -name '*.la' -delete || die
+}