From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F395F13826A for ; Tue, 24 May 2016 14:12:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 687A7141F3; Tue, 24 May 2016 14:12:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BBB25141F3 for ; Tue, 24 May 2016 14:12:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 52E67340CAD for ; Tue, 24 May 2016 14:12:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 09967976 for ; Tue, 24 May 2016 14:12:31 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1464099139.766f549b0ed131910864316c8e5a53839936b529.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/x264-encoder/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/x264-encoder/Manifest media-video/x264-encoder/x264-encoder-0.0.20160523.ebuild X-VCS-Directories: media-video/x264-encoder/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: 766f549b0ed131910864316c8e5a53839936b529 X-VCS-Branch: master Date: Tue, 24 May 2016 14:12:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a63a6568-1271-4d40-8578-1aebcdaa7be5 X-Archives-Hash: a03df2263f29ff359c44a0e061ecc808 commit: 766f549b0ed131910864316c8e5a53839936b529 Author: Alexis Ballier gentoo org> AuthorDate: Tue May 24 14:12:19 2016 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Tue May 24 14:12:19 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=766f549b media-video/x264-encoder: bump a new snapshot Package-Manager: portage-2.3.0_rc1 media-video/x264-encoder/Manifest | 1 + .../x264-encoder/x264-encoder-0.0.20160523.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/media-video/x264-encoder/Manifest b/media-video/x264-encoder/Manifest index 91c698a..7e88eb8 100644 --- a/media-video/x264-encoder/Manifest +++ b/media-video/x264-encoder/Manifest @@ -1,2 +1,3 @@ DIST x264-snapshot-20140308-2245.tar.bz2 624712 SHA256 b179cb1e1d4f51418d292011a7494d5b62145571c05c22007f28d8fd89d2ebbe SHA512 42dc8183aa7af2bd4c360edc0349193cf69a119450880af0c1586e8f27490d7c6784c464b29c9f07ae972aaf661672ab4f2094a46a3d19b6df35be1f9d9a1629 WHIRLPOOL b1ac3341647d9d8d8ff6177f179ee8b5d6a49a38a48791748c24d5cd3c53858758785a0d21d42fbe373ec74465d947b69526a487da15fbca1a1f9aa50064288c DIST x264-snapshot-20151011-2245.tar.bz2 725627 SHA256 80a4075ea12a81ec3b6c493e03529c5b7c1afb34c6e91d86bb078bc2ead2ccf0 SHA512 a326d724f5a28268a6dca2e75f39d10f0d9cd137e6477cb8c1be377a8c3fe9de384f74498f7c6b785377bb43024526e72ff8363b67a7e17717b176e5249df5e3 WHIRLPOOL 520dd79b2f3dfdd9e4629bd810fe8560205f4e3581d03854bd2aea35fbac565520cec336f214da688428c320bab3dea0d692a9cb816f9f53fc89520b54e200e3 +DIST x264-snapshot-20160523-2245.tar.bz2 729952 SHA256 1176c018e4896a440bf0b18ed76e3d92de7a7ce5b1e28a7efd5f6e54bf1d6860 SHA512 71cce21acec300842a8323ef8999e655520e2d47288fe983631e0d6fa180155badd9026d58057edebfd73b002f79c9c0011439e8ee9878b3bf0574e8a16fdff9 WHIRLPOOL fb844e07752a9e48ed2ccd75f34730528c60c22f9a17791c0e002f1c7d25224b814af288e6f6a9563da832bb2fc9a0fed6c92e60bb102e244ee0de24eee40b24 diff --git a/media-video/x264-encoder/x264-encoder-0.0.20160523.ebuild b/media-video/x264-encoder/x264-encoder-0.0.20160523.ebuild new file mode 100644 index 0000000..02e46dd --- /dev/null +++ b/media-video/x264-encoder/x264-encoder-0.0.20160523.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit flag-o-matic multilib toolchain-funcs eutils + +DESCRIPTION="A free commandline encoder for X264/AVC streams" +HOMEPAGE="http://www.videolan.org/developers/x264.html" +if [[ ${PV} == 9999 ]]; then + inherit git-2 + EGIT_REPO_URI="git://git.videolan.org/x264.git" + SRC_URI="" +else + inherit versionator + MY_P="x264-snapshot-$(get_version_component_range 3)-2245" + SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" + S="${WORKDIR}/${MY_P}" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="10bit avs custom-cflags ffmpeg ffmpegsource +interlaced mp4 +threads" + +REQUIRED_USE="ffmpegsource? ( ffmpeg )" + +RDEPEND="ffmpeg? ( virtual/ffmpeg ) + ~media-libs/x264-${PV}[10bit=,interlaced=,threads=] + ffmpegsource? ( media-libs/ffmpegsource ) + mp4? ( >=media-video/gpac-0.5.2 )" + +ASM_DEP=">=dev-lang/yasm-1.2.0" +DEPEND="${RDEPEND} + amd64? ( ${ASM_DEP} ) + x86? ( ${ASM_DEP} ) + x86-fbsd? ( ${ASM_DEP} ) + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}/gpac.patch" +} + +src_configure() { + tc-export CC + + # let upstream pick the optimization level by default + use custom-cflags || filter-flags -O? + + ./configure \ + --prefix="${EPREFIX}"/usr \ + --libdir="${EPREFIX}"/usr/$(get_libdir) \ + --system-libx264 \ + --host="${CHOST}" \ + --disable-lsmash \ + $(usex 10bit "--bit-depth=10" "") \ + $(usex avs "" "--disable-avs") \ + $(usex ffmpeg "" "--disable-lavf --disable-swscale") \ + $(usex ffmpegsource "" "--disable-ffms") \ + $(usex interlaced "" "--disable-interlaced") \ + $(usex mp4 "" "--disable-gpac") \ + $(usex threads "" "--disable-thread") || die + + # this is a nasty workaround for bug #376925 for x264 that also applies + # here, needed because as upstream doesn't like us fiddling with their CFLAGS + if use custom-cflags; then + local cflags + cflags="$(grep "^CFLAGS=" config.mak | sed 's/CFLAGS=//')" + cflags="${cflags//$(get-flag O)/}" + cflags="${cflags//-O? /$(get-flag O) }" + cflags="${cflags//-g /}" + sed -i "s:^CFLAGS=.*:CFLAGS=${cflags//:/\\:}:" config.mak + fi +}