summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-07-20 14:57:11 +0000
committerChristian Heim <phreak@gentoo.org>2007-07-20 14:57:11 +0000
commit2d45cddb0df74df76ec1907bbf546b53833343ff (patch)
treeddc82479eedbca7bf998c1d1a47dcc7622a1a3a8
parentRemoving Manifest1 support. (diff)
downloadphreak-2d45cddb0df74df76ec1907bbf546b53833343ff.tar.gz
phreak-2d45cddb0df74df76ec1907bbf546b53833343ff.tar.bz2
phreak-2d45cddb0df74df76ec1907bbf546b53833343ff.zip
Readding media-libs/xvid since the TEXTREL's ain't fixed yet.
svn path=/; revision=350
-rw-r--r--hardened/media-libs/xvid/Manifest3
-rw-r--r--hardened/media-libs/xvid/xvid-1.1.3.ebuild65
2 files changed, 68 insertions, 0 deletions
diff --git a/hardened/media-libs/xvid/Manifest b/hardened/media-libs/xvid/Manifest
new file mode 100644
index 0000000..5dac2b5
--- /dev/null
+++ b/hardened/media-libs/xvid/Manifest
@@ -0,0 +1,3 @@
+DIST xvid-1.1.2-noexec-stack.patch.bz2 2426 RMD160 083da9ab8e4fdcd067cd2970eeb7ad634894219f SHA1 0f5e9e15e96c6c2a1a6d7bea67e8abd5b41442fa SHA256 6de38a05303e02a2524e3f0093a3e0b021bba93d0889c2b97a05a29ba21efffa
+DIST xvidcore-1.1.3.tar.bz2 625974 RMD160 f890a2ef58be5362aa1d2894e748ef11a0c7bba8 SHA1 7a945c245851e115bc107aa621f72d775a5d1adb SHA256 f5d7f658840ef6fda5b2cd8b105d3738e1a3e735ee12ddc0136527f0185c14ed
+EBUILD xvid-1.1.3.ebuild 1935 RMD160 a151ffb90cd4629d8c8b25be879ad81f8700a2f3 SHA1 4734f5e34eb30e6224391c56d913549dfe4de1a1 SHA256 0a6875260a4964dd821a7dee901f883ec2a3cc053862ecd2ca903c3bc9799c60
diff --git a/hardened/media-libs/xvid/xvid-1.1.3.ebuild b/hardened/media-libs/xvid/xvid-1.1.3.ebuild
new file mode 100644
index 0000000..d245ecb
--- /dev/null
+++ b/hardened/media-libs/xvid/xvid-1.1.3.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/xvid/xvid-1.1.3.ebuild,v 1.10 2007/07/15 21:17:17 dertobi123 Exp $
+
+inherit eutils fixheadtails autotools pax-utils
+
+MY_P=${PN}core-${PV}
+
+DESCRIPTION="XviD, a high performance/quality MPEG-4 video de-/encoding solution"
+HOMEPAGE="http://www.xvid.org"
+SRC_URI="http://downloads.xvid.org/downloads/${MY_P}.tar.bz2
+ mirror://gentoo/${PN}-1.1.2-noexec-stack.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="1"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
+IUSE="examples altivec"
+
+# once yasm-0.6.0+ comes out, we can switch this to
+# dev-lang/nasm >=dev-lang/yasm-0.6.0
+# and then drop the quotes from section in the noexec-stack.patch
+NASM=">=dev-lang/yasm-0.5.0"
+DEPEND="x86? ( ${NASM} )
+ amd64? ( ${NASM} )"
+RDEPEND=""
+
+S="${WORKDIR}"/${MY_P}/build/generic
+
+src_unpack() {
+ unpack ${A}
+ cd "${WORKDIR}"/${MY_P}
+ epatch "${FILESDIR}"/${PN}-1.1.0_beta2-altivec.patch
+ epatch "${WORKDIR}"/${PN}-1.1.2-noexec-stack.patch
+ epatch "${FILESDIR}"/${PN}-1.1.0-3dnow-2.patch
+ epatch "${FILESDIR}"/${P}-ia64-build.patch
+ cd "${S}"
+ eautoreconf
+}
+
+src_compile() {
+ econf $(use_enable altivec)
+ emake || die "emake failed."
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed."
+
+ dodoc "${S}"/../../{AUTHORS,ChangeLog*,README,TODO}
+
+ if [[ ${CHOST} == *-darwin* ]]; then
+ local mylib=$(basename $(ls "${D}"/usr/$(get_libdir)/libxvidcore.*.dylib))
+ dosym ${mylib} /usr/$(get_libdir)/libxvidcore.dylib
+ else
+ local mylib=$(basename $(ls "${D}"/usr/$(get_libdir)/libxvidcore.so*))
+ pax-mark -m "${D}"/usr/$(get_libdir)/libxvidcore.so
+ dosym ${mylib} /usr/$(get_libdir)/libxvidcore.so
+ dosym ${mylib} /usr/$(get_libdir)/${mylib/.1}
+ fi
+
+ if use examples; then
+ dodoc "${S}"/../../CodingStyle
+ insinto /usr/share/${PN}
+ doins -r "${S}"/../../examples
+ fi
+}