From 01d949528070d03279e63adc38c9728793b3f659 Mon Sep 17 00:00:00 2001 From: ayhanyalcinsoy Date: Wed, 22 Jul 2015 16:09:47 +0300 Subject: [PATCH] x264:moved into main for pisi2.0 --- multimedia/video/x264/actions.py | 55 ++++++++++++++++ multimedia/video/x264/pspec.xml | 87 ++++++++++++++++++++++++++ multimedia/video/x264/translations.xml | 13 ++++ 3 files changed, 155 insertions(+) create mode 100644 multimedia/video/x264/actions.py create mode 100644 multimedia/video/x264/pspec.xml create mode 100644 multimedia/video/x264/translations.xml diff --git a/multimedia/video/x264/actions.py b/multimedia/video/x264/actions.py new file mode 100644 index 0000000000..3540265c48 --- /dev/null +++ b/multimedia/video/x264/actions.py @@ -0,0 +1,55 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools + +verMAJOR = "0" +verMINOR = "0" +staticlibfile = "/usr/lib/libx264.a" + +pisitools.cflags.sub("-O[\ds]", "-O3") + +def getMinorVersion(): + f = file("x264.h").read() + for i in f.split("\n"): + if i.startswith("#define X264_BUILD"): + return i.split()[-1] + + return "0" + +def setup(): + shelltools.export("CFLAGS", "%s -O3" % get.CFLAGS()) + + # force using shared gpac + pisitools.dosed("configure", "-lgpac_static", "-lgpac") + + # these disables are here to prevent circular deps, especially with ffmpeg + autotools.rawConfigure("--prefix=/usr \ + --enable-pic \ + --enable-shared \ + --disable-avs \ + --disable-ffms \ + --disable-lavf \ + --disable-swscale \ + --bit-depth=10 \ + ") + +def build(): + autotools.make() + +def install(): + autotools.install() + + #verMINOR = getMinorVersion() + #pisitools.dosym("libx264.so.%s.%s" % (verMAJOR, verMINOR), "/usr/lib/libx264.so.%s" % verMAJOR) + + # No static libs + if shelltools.isFile("%s/%s" % (get.installDIR(), staticlibfile)): + pisitools.remove(staticlibfile) + diff --git a/multimedia/video/x264/pspec.xml b/multimedia/video/x264/pspec.xml new file mode 100644 index 0000000000..023a8c35f0 --- /dev/null +++ b/multimedia/video/x264/pspec.xml @@ -0,0 +1,87 @@ + + + + + x264 + http://developers.videolan.org/x264.html + + PisiLinux Community + admins@pisilinux.org + + GPLv2 + library + app:console + Open source H264/AVC encoder + x264 is a free library for encoding H264/AVC video streams. + + ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20141201-2245.tar.bz2 + + yasm-devel + + + + + x264 + + /usr/bin + /usr/lib + + + + + x264-devel + Development files for x264 + + x264 + + + /usr/include + /usr/lib/pkgconfig + + + + + + 2014-12-02 + 2245 + Version bump + Stefan Gronewold(groni) + groni@pisilinux.org + + + 2014-06-18 + 2245 + Version bump. + Yusuf Aydemir + yusuf.aydemir@pisilinux.org + + + 2014-04-05 + 0.0_20140404 + Version bump + Marcin Bojara + marcin@pisilinux.org + + + 2014-02-17 + 0.0_20130705 + Rebuild. + PisiLinux Community + admins@pisilinux.org + + + 2013-07-06 + 0.0_20130705 + Version bump + Marcin Bojara + marcin@pisilinux.org + + + 2012-09-30 + 0.0_20120929 + First release + Erdem Artan + admins@pisilinux.org + + + diff --git a/multimedia/video/x264/translations.xml b/multimedia/video/x264/translations.xml new file mode 100644 index 0000000000..efcdba2c1d --- /dev/null +++ b/multimedia/video/x264/translations.xml @@ -0,0 +1,13 @@ + + + + x264 + Açık kaynak kodlu H264/AVC çözücü + x264 H264/AVC görüntü dosyalarını açmak için kullanılan bir kütüphane + + + + x264-devel + x264 için geliştirme dosyaları + +