summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2012-03-29 10:54:50 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2012-03-29 10:54:50 +0000
commit870510df66c55769910d9e5dff8ec653846f4b5e (patch)
tree7dfe219f798d945d64bd5388fd0cdd0f7c9e0c1e /media-libs/libmpeg3
parentVersion bump pycxx to 6.2.4, fixes bug 408589. (diff)
downloadgentoo-2-870510df66c55769910d9e5dff8ec653846f4b5e.tar.gz
gentoo-2-870510df66c55769910d9e5dff8ec653846f4b5e.tar.bz2
gentoo-2-870510df66c55769910d9e5dff8ec653846f4b5e.zip
Version bump removing need for one of the patches.
(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libmpeg3')
-rw-r--r--media-libs/libmpeg3/ChangeLog9
-rw-r--r--media-libs/libmpeg3/libmpeg3-1.8.ebuild60
2 files changed, 67 insertions, 2 deletions
diff --git a/media-libs/libmpeg3/ChangeLog b/media-libs/libmpeg3/ChangeLog
index 330eeaf4fa17..c1062990b48a 100644
--- a/media-libs/libmpeg3/ChangeLog
+++ b/media-libs/libmpeg3/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-libs/libmpeg3
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg3/ChangeLog,v 1.72 2010/11/11 10:18:47 ssuominen Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg3/ChangeLog,v 1.73 2012/03/29 10:54:50 scarabeus Exp $
+
+*libmpeg3-1.8 (29 Mar 2012)
+
+ 29 Mar 2012; Tomáš Chvátal <scarabeus@gentoo.org> +libmpeg3-1.8.ebuild:
+ Version bump removing need for one of the patches.
11 Nov 2010; Samuli Suominen <ssuominen@gentoo.org> libmpeg3-1.7.ebuild:
Use virtual/jpeg wrt #327487.
diff --git a/media-libs/libmpeg3/libmpeg3-1.8.ebuild b/media-libs/libmpeg3/libmpeg3-1.8.ebuild
new file mode 100644
index 000000000000..44fb0ab0553f
--- /dev/null
+++ b/media-libs/libmpeg3/libmpeg3-1.8.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libmpeg3/libmpeg3-1.8.ebuild,v 1.1 2012/03/29 10:54:50 scarabeus Exp $
+
+EAPI=4
+
+inherit eutils autotools toolchain-funcs
+
+DESCRIPTION="An mpeg library for linux"
+HOMEPAGE="http://heroinewarrior.com/libmpeg3.php"
+SRC_URI="mirror://sourceforge/heroines/${P}-src.tar.bz2
+ mirror://gentoo/${PN}-1.7-gentoo.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+IUSE="mmx"
+
+RDEPEND="sys-libs/zlib
+ virtual/jpeg
+ media-libs/a52dec"
+DEPEND="${RDEPEND}
+ mmx? ( dev-lang/nasm )"
+
+src_prepare() {
+ epatch "${WORKDIR}"/${PN}-1.7-mpeg3split.patch
+ epatch "${WORKDIR}"/${PN}-1.7-textrel.patch
+ epatch "${WORKDIR}"/${PN}-1.7-gnustack.patch
+ epatch "${WORKDIR}"/${PN}-1.7-a52.patch
+ epatch "${WORKDIR}"/${PN}-1.7-all_gcc4.patch
+ epatch "${WORKDIR}"/${PN}-1.7-all_pthread.patch
+
+ cp -rf "${WORKDIR}"/1.7/* .
+ eautoreconf
+}
+
+src_configure() {
+ #disabling css since it's a fake one.
+ #One can find in the sources this message :
+ # Stubs for deCSS which can't be distributed in source form
+
+ econf \
+ $(use_enable mmx) \
+ --disable-css
+}
+
+src_install() {
+ default
+ dohtml -r docs
+ # This is a workaround, it wants to rebuild
+ # everything if the headers have changed
+ # So we patch them after install...
+ cd "${ED}/usr/include/libmpeg3"
+ # This patch patches the .h files that get installed into /usr/include
+ # to show the correct include syntax '<>' instead of '""' This patch
+ # was also generated using info from SF's src.rpm
+ epatch "${WORKDIR}"/gentoo-p2.patch
+
+ find "${ED}" -name '*.la' -exec rm -f '{}' +
+}