Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 765565
Collapse All | Expand All

(-)a/media-libs/libmpeg2/files/libmpeg2-0.5.1-altivec.patch
Lines 1-5 Link Here
(-)a/media-libs/libmpeg2/files/libmpeg2-0.5.1-armv4l.patch (-1 lines)
Lines 1-6 Link Here
1
diff -urNp libmpeg2.orig/libmpeg2/motion_comp_arm_s.S libmpeg2/libmpeg2/motion_comp_arm_s.S
(-)a/media-libs/libmpeg2/libmpeg2-0.5.1-r2.ebuild (-25 / +18 lines)
Lines 1-9 Link Here
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=5
4
EAPI=7
5
5
6
inherit autotools eutils libtool ltprune multilib-minimal
6
inherit autotools multilib-minimal
7
7
8
DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video"
8
DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video"
9
HOMEPAGE="http://libmpeg2.sourceforge.net/"
9
HOMEPAGE="http://libmpeg2.sourceforge.net/"
Lines 12-18 SRC_URI="http://libmpeg2.sourceforge.net/files/${P}.tar.gz" Link Here
12
LICENSE="GPL-2"
12
LICENSE="GPL-2"
13
SLOT="0"
13
SLOT="0"
14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
14
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
15
IUSE="sdl static-libs X"
15
IUSE="sdl X"
16
16
17
RDEPEND="sdl? ( media-libs/libsdl )
17
RDEPEND="sdl? ( media-libs/libsdl )
18
	X? (
18
	X? (
Lines 26-65 DEPEND="${RDEPEND} Link Here
26
26
27
DOCS=( AUTHORS ChangeLog NEWS README TODO )
27
DOCS=( AUTHORS ChangeLog NEWS README TODO )
28
28
29
PATCHES=(
30
	"${FILESDIR}"/${P}-altivec.patch
31
	"${FILESDIR}"/${P}-arm-private-symbols.patch
32
	"${FILESDIR}"/${P}-armv4l.patch
33
	"${FILESDIR}"/${P}-global-symbol-test.patch
34
)
35
29
src_prepare() {
36
src_prepare() {
30
	epatch \
37
	default
31
		"${FILESDIR}"/${P}-arm-private-symbols.patch \
38
	eautoreconf
32
		"${FILESDIR}"/${P}-global-symbol-test.patch \
33
		"${FILESDIR}"/${P}-armv4l.patch
34
	elibtoolize
35
	### PowerPC fix for altivec
36
	epatch "${FILESDIR}"/${P}-altivec.patch
37
	eautoconf
38
}
39
}
39
40
40
multilib_src_configure() {
41
multilib_src_configure() {
41
	ECONF_SOURCE="${S}"	\
42
	ECONF_SOURCE="${S}" econf \
42
	econf \
43
		--disable-static \
43
		$(use_enable static-libs static) \
44
		--enable-shared \
44
		--enable-shared \
45
		$(multilib_native_use_enable sdl) \
45
		$(multilib_native_use_enable sdl) \
46
		$(multilib_native_use_with X x)
46
		$(multilib_native_use_with X x)
47
47
48
	# remove useless subdirs
48
	# remove useless subdirs
49
	if ! multilib_is_native_abi ; then
49
	multilib_is_native_abi || sed -i -e 's/ libvo src//' Makefile || die
50
		sed -i \
51
			-e 's/ libvo src//' \
52
			Makefile || die
53
	fi
54
}
50
}
55
51
56
multilib_src_compile() {
52
multilib_src_compile() {
57
	emake OPT_CFLAGS="${CFLAGS}" \
53
	emake {MPEG2DEC,OPT}_CFLAGS="${CFLAGS}" LIBMPEG2_CFLAGS=
58
		MPEG2DEC_CFLAGS="${CFLAGS}" \
59
		LIBMPEG2_CFLAGS=""
60
}
54
}
61
55
62
multilib_src_install_all() {
56
multilib_src_install_all() {
63
	prune_libtool_files --all
64
	einstalldocs
57
	einstalldocs
58
	find "${ED}" -type f -name '*.la' -delete || die
65
}
59
}
66
- 

Return to bug 765565