diff options
Diffstat (limited to 'media-libs/smpeg2/smpeg2-2.0.0-r4.ebuild')
-rw-r--r-- | media-libs/smpeg2/smpeg2-2.0.0-r4.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/media-libs/smpeg2/smpeg2-2.0.0-r4.ebuild b/media-libs/smpeg2/smpeg2-2.0.0-r4.ebuild new file mode 100644 index 000000000000..b8ee861d4778 --- /dev/null +++ b/media-libs/smpeg2/smpeg2-2.0.0-r4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools multilib-minimal + +MY_P="smpeg-${PV}" + +DESCRIPTION="SDL MPEG Player Library" +HOMEPAGE="https://icculus.org/smpeg/" +SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${MY_P}.tar.bz2" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="debug cpu_flags_x86_mmx static-libs" + +DEPEND="media-libs/libsdl2[${MULTILIB_USEDEP}]" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-gcc6.patch + "${FILESDIR}"/${P}-smpeg2-config.patch +) + +src_prepare() { + default + + # avoid file collision with media-libs/smpeg + sed -i -e '/plaympeg/d' Makefile.am || die + + AT_M4DIR="${ESYSROOT}/usr/share/aclocal acinclude" eautoreconf +} + +multilib_src_configure() { + local myeconfargs=( + --disable-rpath + --disable-sdltest + --enable-debug # disabling this only passes extra optimizations + $(use_enable cpu_flags_x86_mmx mmx) + $(use_enable debug assertions) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -name '*.la' -delete || die +} |