blob: 2706357def62fbd9fee6d97ae88c6e52a285054a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/smpeg2/smpeg2-2.0.0-r2.ebuild,v 1.2 2014/06/18 19:57:01 mgorny Exp $
EAPI=5
inherit eutils toolchain-funcs autotools multilib-minimal
MY_P=smpeg-${PV}
DESCRIPTION="SDL MPEG Player Library"
HOMEPAGE="http://icculus.org/smpeg/"
SRC_URI="http://dev.gentoo.org/~hasufell/distfiles/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug mmx static-libs"
DEPEND=">=media-libs/libsdl2-2.0.1-r1[${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}"
DOCS=( CHANGES README README.SDL_mixer TODO )
S=${WORKDIR}/${MY_P}
src_prepare() {
epatch "${FILESDIR}"/${P}-smpeg2-config.patch
# avoid file collision with media-libs/smpeg
sed -i \
-e '/plaympeg/d' \
Makefile.am || die
AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf
}
multilib_src_configure() {
# the debug option is bogus ... all it does is add extra
# optimizations if you pass --disable-debug
ECONF_SOURCE="${S}" econf \
$(use_enable static-libs static) \
--disable-rpath \
--enable-debug \
--disable-sdltest \
$(use_enable mmx) \
$(use_enable debug assertions)
}
multilib_src_install_all() {
use static-libs || prune_libtool_files
}
|