1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils toolchain-funcs autotools multilib-minimal
9 DESCRIPTION="SDL MPEG Player Library"
10 HOMEPAGE="http://icculus.org/smpeg/"
11 SRC_URI="https://dev.gentoo.org/~hasufell/distfiles/${MY_P}.tar.bz2"
16 IUSE="debug cpu_flags_x86_mmx static-libs"
18 DEPEND=">=media-libs/libsdl2-2.0.1-r1[${MULTILIB_USEDEP}]"
21 DOCS=( CHANGES README README.SDL_mixer TODO )
26 epatch "${FILESDIR}"/${P}-smpeg2-config.patch
28 # avoid file collision with media-libs/smpeg
33 mv configure.in configure.ac || die
34 AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf
37 multilib_src_configure() {
38 # the debug option is bogus ... all it does is add extra
39 # optimizations if you pass --disable-debug
40 ECONF_SOURCE="${S}" econf \
41 $(use_enable static-libs static) \
45 $(use_enable cpu_flags_x86_mmx mmx) \
46 $(use_enable debug assertions)
49 multilib_src_install_all() {
50 use static-libs || prune_libtool_files