diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-08-10 20:36:50 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-08-10 20:36:50 +0000 |
commit | aff41c84b5b735160c259a4f466ab8bf99b9881c (patch) | |
tree | ba2186f092752f3c0b706a450b988bac777e8e09 /media-libs/libmpeg2 | |
parent | Convert to multilib. Stack it for medialibs r10. Remove unneeded glib depende... (diff) | |
download | gentoo-2-aff41c84b5b735160c259a4f466ab8bf99b9881c.tar.gz gentoo-2-aff41c84b5b735160c259a4f466ab8bf99b9881c.tar.bz2 gentoo-2-aff41c84b5b735160c259a4f466ab8bf99b9881c.zip |
Convert to multilib and stack it for medialibs r10
(Portage version: 2.2.0_alpha196/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'media-libs/libmpeg2')
-rw-r--r-- | media-libs/libmpeg2/ChangeLog | 9 | ||||
-rw-r--r-- | media-libs/libmpeg2/libmpeg2-0.5.1-r2.ebuild | 66 |
2 files changed, 73 insertions, 2 deletions
diff --git a/media-libs/libmpeg2/ChangeLog b/media-libs/libmpeg2/ChangeLog index e1dcbd7561c0..f44470c0f3ce 100644 --- a/media-libs/libmpeg2/ChangeLog +++ b/media-libs/libmpeg2/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-libs/libmpeg2 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg2/ChangeLog,v 1.80 2012/05/17 14:32:33 aballier Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg2/ChangeLog,v 1.81 2013/08/10 20:36:49 aballier Exp $ + +*libmpeg2-0.5.1-r2 (10 Aug 2013) + + 10 Aug 2013; Alexis Ballier <aballier@gentoo.org> +libmpeg2-0.5.1-r2.ebuild: + Convert to multilib and stack it for medialibs r10 17 May 2012; Alexis Ballier <aballier@gentoo.org> libmpeg2-0.5.1-r1.ebuild: keyword ~amd64-fbsd diff --git a/media-libs/libmpeg2/libmpeg2-0.5.1-r2.ebuild b/media-libs/libmpeg2/libmpeg2-0.5.1-r2.ebuild new file mode 100644 index 000000000000..7f815e38c4b6 --- /dev/null +++ b/media-libs/libmpeg2/libmpeg2-0.5.1-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg2/libmpeg2-0.5.1-r2.ebuild,v 1.1 2013/08/10 20:36:50 aballier Exp $ + +EAPI=5 + +inherit autotools eutils libtool multilib-minimal + +DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video" +HOMEPAGE="http://libmpeg2.sourceforge.net/" +SRC_URI="http://libmpeg2.sourceforge.net/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" +IUSE="sdl static-libs X" + +RDEPEND="sdl? ( media-libs/libsdl ) + X? ( x11-libs/libXv + x11-libs/libICE + x11-libs/libSM + x11-libs/libXt ) + abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r9 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )" +DEPEND="${RDEPEND} + X? ( x11-proto/xextproto )" + +DOCS=( AUTHORS ChangeLog NEWS README TODO ) + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-arm-private-symbols.patch \ + "${FILESDIR}"/${P}-global-symbol-test.patch \ + "${FILESDIR}"/${P}-armv4l.patch + elibtoolize + ### PowerPC fix for altivec + epatch "${FILESDIR}"/${P}-altivec.patch + eautoconf +} + +multilib_src_configure() { + local myconf="--disable-sdl --without-x" + multilib_is_native_abi && myconf="$(use_enable sdl) $(use_with X x)" + + ECONF_SOURCE="${S}" econf \ + $(use_enable static-libs static) \ + --enable-shared \ + ${myconf} + + # remove useless subdirs + if ! multilib_is_native_abi ; then + sed -i \ + -e 's/ libvo src//' \ + Makefile || die + fi +} + +multilib_src_compile() { + emake OPT_CFLAGS="${CFLAGS}" \ + MPEG2DEC_CFLAGS="${CFLAGS}" \ + LIBMPEG2_CFLAGS="" +} + +multilib_src_install_all() { + find "${ED}" -name '*.la' -exec rm -f {} + +} |