diff --git a/multimedia/editor/handbrake/actions.py b/multimedia/editor/handbrake/actions.py new file mode 100644 index 0000000000..360cac511c --- /dev/null +++ b/multimedia/editor/handbrake/actions.py @@ -0,0 +1,40 @@ +#!/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 autotools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get +from pisi.actionsapi import shelltools + +def setup(): + # Use Python 2 + shelltools.system("sed -i 's/python2/python/g' gtk/src/Makefile.am") + # Force use of gtk2 + shelltools.system("sed -i 's/PKG_CHECK_MODULES(Gtk3.*/use_gtk3=no/' gtk/configure.ac") + shelltools.cd("gtk") + pisitools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS") + pisitools.dosed("configure.ac", "AM_PROG_CC_STDC", "AC_PROG_CC") + autotools.autoreconf("-fiv") + shelltools.cd("..") + shelltools.system("./configure --force \ + --prefix=/usr \ + --disable-gtk-update-checks \ + --enable-x265 \ + --enable-fdk-aac \ + --enable-libav-aac \ + --verbose") + + + +def build(): + shelltools.cd("build") + autotools.make() + +def install(): + shelltools.cd("build") + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) + shelltools.cd("..") + pisitools.dodoc("AUTHORS", "COPYING", "NEWS", "README.*") diff --git a/multimedia/editor/handbrake/files/handbrake-0.9.9-add-gmodule-to-gtk-configure.patch b/multimedia/editor/handbrake/files/handbrake-0.9.9-add-gmodule-to-gtk-configure.patch new file mode 100644 index 0000000000..00ee80a5c3 --- /dev/null +++ b/multimedia/editor/handbrake/files/handbrake-0.9.9-add-gmodule-to-gtk-configure.patch @@ -0,0 +1,11 @@ +--- HandBrake-0.9.9.orig/gtk/configure.ac 2013-09-01 12:13:06.684612296 +0300 ++++ HandBrake-0.9.9/gtk/configure.ac 2013-09-01 20:09:35.446706059 +0300 +@@ -96,7 +96,7 @@ case $host in + pkg_gudev="gudev-1.0" + ;; + esac +- GHB_PACKAGES="gthread-2.0 gio-2.0 libnotify dbus-glib-1 $pkg_gudev" ++ GHB_PACKAGES="gthread-2.0 gmodule-2.0 gio-2.0 libnotify dbus-glib-1 $pkg_gudev" + mingw_flag=no + ;; + esac \ No newline at end of file diff --git a/multimedia/editor/handbrake/files/standard-presets-fix-type.patch b/multimedia/editor/handbrake/files/standard-presets-fix-type.patch new file mode 100644 index 0000000000..797c3fa6b1 --- /dev/null +++ b/multimedia/editor/handbrake/files/standard-presets-fix-type.patch @@ -0,0 +1,88 @@ +Index: branches/0.10.x/gtk/src/standard_presets.xml +=================================================================== +--- branches/0.10.x/gtk/src/standard_presets.xml (revision 6995) ++++ branches/0.10.x/gtk/src/standard_presets.xml (revision 7008) +@@ -85,5 +85,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -216,5 +216,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -347,5 +347,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -478,5 +478,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -625,5 +625,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -772,5 +772,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -919,5 +919,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -1050,5 +1050,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -1181,5 +1181,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -1312,5 +1312,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -1458,5 +1458,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + +@@ -1605,5 +1605,5 @@ + + PictureDenoiseFilter +- off ++ off + PictureDenoiseCustom + diff --git a/multimedia/editor/handbrake/pspec.xml b/multimedia/editor/handbrake/pspec.xml new file mode 100644 index 0000000000..79fcc06e7b --- /dev/null +++ b/multimedia/editor/handbrake/pspec.xml @@ -0,0 +1,129 @@ + + + + + handbrake + http://handbrake.fr/ + + PisiLinux Community + admins@pisilinux.org + + GPLv1 + HandBrake + app + Multithreaded video transcoder + The program is also used to convert DVDs so they can be viewed on iPods, iPhones and most media players. + https://handbrake.fr/rotation.php?file=HandBrake-0.10.2.tar.bz2 + + bzip2 + python + intltool + gtk3-devel + lame-devel + gtk3-devel + x264-devel + libogg-devel + libass-devel + fribidi-devel + libxml2-devel + libbluray-devel + libnotify-devel + libvorbis-devel + libtheora-devel + dbus-glib-devel + fontconfig-devel + libsamplerate-devel + gst-plugins-base-next-devel + + + + + + handbrake + + gtk3 + lame + x264 + cairo + pango + libass + libogg + fribidi + libbluray + libnotify + gst-libav-next + libvorbis + libtheora + gdk-pixbuf + libsamplerate + gstreamer-next + gst-plugins-base-next + zlib + bzip2 + eudev + glib2 + libgcc + libxml2 + freetype + dbus-glib + + + + /usr/share + /usr/lib + /usr/share/doc + /usr/share/man + /usr/bin + /usr/share/info + /usr/lib/python2.7 + /usr/share/locale + + + + + + 2015-09-26 + 0.10.2 + Version bump. + Stefan Gronewold (groni) + groni@pisilinux.org + + + 2015-04-30 + 0.10.1 + Version bump. + Idris KALP + idriskalp@gmail.com + + + 2015-02-20 + 0.10.0 + Version bump. + Hakan Yıldız + hknyldz93@gmail.com + + + 2014-06-18 + 0.9.9 + Rebuild for gcc + Osman Erkan + osman.erkan@pisilinux.org + + + 2014-06-07 + 0.9.9 + rebuild + Kamil Atlı + suvari@pisilinux.org + + + 2013-12-05 + 0.9.9 + First release + PisiLinux Community + admins@pisilinux.org + + + \ No newline at end of file diff --git a/multimedia/editor/handbrake/translations.xml b/multimedia/editor/handbrake/translations.xml new file mode 100644 index 0000000000..35792cb42d --- /dev/null +++ b/multimedia/editor/handbrake/translations.xml @@ -0,0 +1,8 @@ + + + + handbrake + Çoklu görev destekli video kodlama/düzenleme aracı + Handbrake,Video dosyalarını portatif medya oynatıcıları için düzenleyebilmenin yanısıra çözünürlülük değişimi desteğide sunan özgür video kodlama ve düzenleme aracıdır. + +