summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-06-02 22:12:47 +0100
committerJames Le Cuirot <chewi@gentoo.org>2023-06-02 22:13:52 +0100
commit02371806c1838e54d284e8c7f89cd76debaacfe9 (patch)
tree00428bf8b5ea7d7ffb245df0e64d32ba3924d36c /media-libs/libopenmpt
parentwww-client/vivaldi-snapshot: Drop old 6.1.3001.3-r1 and 6.1.3009.3 (diff)
downloadgentoo-02371806c1838e54d284e8c7f89cd76debaacfe9.tar.gz
gentoo-02371806c1838e54d284e8c7f89cd76debaacfe9.tar.bz2
gentoo-02371806c1838e54d284e8c7f89cd76debaacfe9.zip
media-libs/libopenmpt: Version bump to 0.7.1
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'media-libs/libopenmpt')
-rw-r--r--media-libs/libopenmpt/Manifest1
-rw-r--r--media-libs/libopenmpt/libopenmpt-0.7.1.ebuild61
2 files changed, 62 insertions, 0 deletions
diff --git a/media-libs/libopenmpt/Manifest b/media-libs/libopenmpt/Manifest
index 79af0080c2b7..b47d1874dabb 100644
--- a/media-libs/libopenmpt/Manifest
+++ b/media-libs/libopenmpt/Manifest
@@ -1,2 +1,3 @@
DIST libopenmpt-0.6.10+release.autotools.tar.gz 1559701 BLAKE2B 0a9cbb45babb9adf4196bae93e118d55898801a6333982058c1320bda24980ce561768f8bb885736d357f33b13af18bfc525edab89ce0329169345a8a6a745a6 SHA512 ffa5f02be36dd8667660aff20b33ac2781fb960bbc815e3246f8e31273eb85702ed51ed04e72a1086bb5a51916dfa7d7db981c55dea52eaaa9e07e00ec170351
DIST libopenmpt-0.6.6+release.autotools.tar.gz 1554516 BLAKE2B 21e2fc4252431235608a52d3a321e26eae5d45f2328ff3e3604d84c537d72e07d72346c504901b000af04dfc52b1dd91c79f576be4331ea8685e534a174b61cd SHA512 b634c556f13dc51d1008f4216936a9b7cab25a6fb0d5218da0b692ec848de21905ed1981223ac9ecdebea9ce6c5376e91ff92e1655dd0be491fce0114e3230bf
+DIST libopenmpt-0.7.1+release.autotools.tar.gz 1650178 BLAKE2B 5bc9ad5640e842d7320df59c76cae7619a36dab72a5b084a65ab0b99f00d48ce1aaca4c7344a9e14eab05bd3f05c8f60a93bce68e99cd5f93344453dee90d29f SHA512 65468341b24d80f8bf0e9cf32d43b3ca3ced0323836373ae3c794b6df5b23d7e9c230ec37dd00777e22038d340adb56b20b83815e048fae22117ead0b4044bba
diff --git a/media-libs/libopenmpt/libopenmpt-0.7.1.ebuild b/media-libs/libopenmpt/libopenmpt-0.7.1.ebuild
new file mode 100644
index 000000000000..e5e9549227c0
--- /dev/null
+++ b/media-libs/libopenmpt/libopenmpt-0.7.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal
+
+MY_P="libopenmpt-${PV}+release.autotools"
+DESCRIPTION="Library to decode tracked music files (modules)"
+HOMEPAGE="https://lib.openmpt.org/libopenmpt/"
+SRC_URI="https://lib.openmpt.org/files/libopenmpt/src/${MY_P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="examples mp3 ogg static-libs test vorbis zlib"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ mp3? ( media-sound/mpg123[${MULTILIB_USEDEP}] )
+ ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )
+ vorbis? ( media-libs/libvorbis[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+"
+
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+ECONF_SOURCE="${S}"
+
+multilib_src_configure() {
+ # A lot of these optional dependencies relate to openmpt123, which
+ # we package separately, so we disable them here.
+ econf \
+ $(use_enable static-libs static) \
+ --disable-openmpt123 \
+ --disable-examples \
+ $(use_enable test tests) \
+ --disable-doxygen-doc \
+ $(use_with zlib) \
+ $(use_with mp3 mpg123) \
+ $(use_with ogg) \
+ $(use_with vorbis) \
+ $(use_with vorbis vorbisfile) \
+ --without-pulseaudio \
+ --without-portaudio \
+ --without-portaudiocpp \
+ --without-sdl2 \
+ --without-sndfile \
+ --without-flac
+}
+
+multilib_src_install_all() {
+ rm -f \
+ "${ED}"/usr/*/*.la \
+ "${ED}"/usr/share/doc/${P}/LICENSE || die
+
+ if ! use examples; then
+ rm -r "${ED}"/usr/share/doc/${P}/examples || die
+ fi
+}