diff options
author | Alexis Ballier <aballier@gentoo.org> | 2011-04-27 17:20:43 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2011-04-27 17:20:43 +0000 |
commit | 7eb5af876d59b42af3b73b2979e912d7d3a6f3c2 (patch) | |
tree | 3acb8754f17e5bee85793791dcfc93ea159e7c2c /media-video/x264-encoder | |
parent | new snapshot (diff) | |
download | gentoo-2-7eb5af876d59b42af3b73b2979e912d7d3a6f3c2.tar.gz gentoo-2-7eb5af876d59b42af3b73b2979e912d7d3a6f3c2.tar.bz2 gentoo-2-7eb5af876d59b42af3b73b2979e912d7d3a6f3c2.zip |
new snapshot
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
Diffstat (limited to 'media-video/x264-encoder')
-rw-r--r-- | media-video/x264-encoder/ChangeLog | 8 | ||||
-rw-r--r-- | media-video/x264-encoder/files/x264-encoder-nolib-20110425.patch | 38 | ||||
-rw-r--r-- | media-video/x264-encoder/x264-encoder-0.0.20110426.ebuild | 60 |
3 files changed, 105 insertions, 1 deletions
diff --git a/media-video/x264-encoder/ChangeLog b/media-video/x264-encoder/ChangeLog index 3006b99cd35a..4ba6efc65682 100644 --- a/media-video/x264-encoder/ChangeLog +++ b/media-video/x264-encoder/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-video/x264-encoder # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/ChangeLog,v 1.48 2011/04/03 18:18:48 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/ChangeLog,v 1.49 2011/04/27 17:20:43 aballier Exp $ + +*x264-encoder-0.0.20110426 (27 Apr 2011) + + 27 Apr 2011; Alexis Ballier <aballier@gentoo.org> + +x264-encoder-0.0.20110426.ebuild, +files/x264-encoder-nolib-20110425.patch: + new snapshot 03 Apr 2011; Tomáš Chvátal <scarabeus@gentoo.org> x264-encoder-0.0.20100605.ebuild, x264-encoder-0.0.20101029.ebuild, diff --git a/media-video/x264-encoder/files/x264-encoder-nolib-20110425.patch b/media-video/x264-encoder/files/x264-encoder-nolib-20110425.patch new file mode 100644 index 000000000000..fabf7c747370 --- /dev/null +++ b/media-video/x264-encoder/files/x264-encoder-nolib-20110425.patch @@ -0,0 +1,38 @@ +Index: x264-snapshot-20110425-2245/Makefile +=================================================================== +--- x264-snapshot-20110425-2245.orig/Makefile ++++ x264-snapshot-20110425-2245/Makefile +@@ -146,8 +146,8 @@ $(LIBX264): .depend $(OBJS) $(OBJASM) + $(SONAME): .depend $(OBJS) $(OBJASM) $(OBJSO) + $(LD)$@ $(OBJS) $(OBJASM) $(OBJSO) $(SOFLAGS) $(LDFLAGS) + +-x264$(EXE): $(OBJCLI) $(LIBX264) +- $(LD)$@ $+ $(LDFLAGSCLI) $(LDFLAGS) ++x264$(EXE): $(OBJCLI) ++ $(LD)$@ $+ $(LDFLAGSCLI) $(LDFLAGS) `pkg-config --libs x264` + + checkasm: tools/checkasm.o $(LIBX264) + $(LD)$@ $+ $(LDFLAGS) +@@ -209,22 +209,7 @@ distclean: clean + + install: x264$(EXE) $(SONAME) + install -d $(DESTDIR)$(bindir) +- install -d $(DESTDIR)$(includedir) +- install -d $(DESTDIR)$(libdir) +- install -d $(DESTDIR)$(libdir)/pkgconfig +- install -m 644 x264.h $(DESTDIR)$(includedir) +- install -m 644 x264_config.h $(DESTDIR)$(includedir) +- install -m 644 $(LIBX264) $(DESTDIR)$(libdir) +- install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig + install x264$(EXE) $(DESTDIR)$(bindir) +- $(if $(RANLIB), $(RANLIB) $(DESTDIR)$(libdir)/$(LIBX264)) +-ifeq ($(SYS),WINDOWS) +- $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir)) +-else +- $(if $(SONAME), ln -f -s $(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX)) +- $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir)) +-endif +- $(if $(IMPLIBNAME), install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir)) + + uninstall: + rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(includedir)/x264_config.h $(DESTDIR)$(libdir)/libx264.a diff --git a/media-video/x264-encoder/x264-encoder-0.0.20110426.ebuild b/media-video/x264-encoder/x264-encoder-0.0.20110426.ebuild new file mode 100644 index 000000000000..ff1e23fe9d3e --- /dev/null +++ b/media-video/x264-encoder/x264-encoder-0.0.20110426.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/x264-encoder/x264-encoder-0.0.20110426.ebuild,v 1.1 2011/04/27 17:20:43 aballier Exp $ + +EAPI=2 +inherit eutils multilib toolchain-funcs versionator + +MY_P=x264-snapshot-$(get_version_component_range 3)-2245 + +DESCRIPTION="A free commandline encoder for X264/AVC streams" +HOMEPAGE="http://www.videolan.org/developers/x264.html" +SRC_URI="http://ftp.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="debug ffmpeg +mp4 +threads" + +RDEPEND="mp4? ( >=media-video/gpac-0.4.1_pre20060122 ) + ~media-libs/x264-${PV} + ffmpeg? ( virtual/ffmpeg )" +DEPEND="${RDEPEND} + amd64? ( >=dev-lang/yasm-0.6.2 ) + x86? ( || ( >=dev-lang/yasm-0.6.2 dev-lang/nasm ) + !<dev-lang/yasm-0.6.2 ) + x86-fbsd? ( >=dev-lang/yasm-0.6.2 ) + dev-util/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-nostrip.patch \ + "${FILESDIR}"/${PN}-nolib-20110425.patch +} + +src_configure() { + tc-export CC + + local myconf="" + use debug && myconf="${myconf} --enable-debug" + + ./configure \ + --prefix=/usr \ + --libdir=/usr/$(get_libdir) \ + --disable-avs \ + $(use_enable ffmpeg lavf) \ + $(use_enable ffmpeg swscale) \ + $(use_enable mp4 gpac) \ + $(use_enable threads thread) \ + --extra-asflags="${ASFLAGS}" \ + --extra-cflags="${CFLAGS}" \ + --extra-ldflags="${LDFLAGS}" \ + --host="${CHOST}" \ + ${myconf} \ + || die +} + +src_install() { + emake DESTDIR="${D}" install || die +} |