code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>twolame</Name>
        Optimize edilmiş bir MPEG Ses katman 2 çözücüsü
        <Description xml:lang="tr">TwoLame Mike Cheng'in tooLAME'ni taban olarak alan LAME'in ISO dist10 kodları ve parçaları üzerinde optimize edilmiş bir MPEG Ses Katman 2 çözücüsüdür.</Description>
    </Source>

    <Package>
        <Name>twolame-devel</Name>
        twolame için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import get

def setup():
    shelltools.export("AT_M4DIR", "m4")
    autotools.autoreconf("-vfi")

    autotools.configure('--disable-dependency-tracking \
                         --enable-nls \
                         --enable-vcut \
                         --enable-ogg123 \
                         --with-flac \
                         --with-speex \
                         --with-kate \
                         --docdir="/%s/%s"' % (get.docDIR(), get.srcNAME()))

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.removeDir("/usr/share/doc")
    pisitools.dodoc("CHANGES", "COPYING", "AUTHORS", "README", "ogg123/ogg123rc-example")

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>vorbis-tools</Name>
        <Homepage>http://www.vorbis.com/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>app:console</IsA>
        <Summary>Tools for using the Ogg Vorbis sound file format</Summary>
        <Description>This set of tools allow you to play and encode Ogg Vorbis files.</Description>
        <Archive sha1sum="fc6a820bdb5ad6fcac074721fab5c3f96eaf6562" type="targz">http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libvorbis-devel</Dependency>
            <Dependency>libao-devel</Dependency>
            <Dependency>flac-devel</Dependency>
            <Dependency>speex-devel</Dependency>
            <Dependency>libogg-devel</Dependency>
            <Dependency>libkate-devel</Dependency>
            <Dependency>curl-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>vorbis-tools</Name>
        <RuntimeDependencies>
            <Dependency>libvorbis</Dependency>
            <Dependency>libao</Dependency>
            <Dependency>flac</Dependency>
            <Dependency>speex</Dependency>
            <Dependency>libogg</Dependency>
            <Dependency>libkate</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-18</Date>
            <Version>1.4.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.4.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-01-28</Date>
            <Version>1.4.0</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>vorbis-tools</Name>
        <Summary xml:lang="tr">Ogg Vorbis ses dosyaları için araçlar paketi.</Summary>
        <Description xml:lang="tr">vorbis-tools Ogg Vorbis dosyaları oluşturabilmenize ve oynatabilmenize olanak tanır.</Description>
    </Source>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    shelltools.system("./autogen.sh")
    autotools.configure("--prefix=/usr \
                         --libdir=/usr/lib \
                         --disable-static \
                         --enable-mmx")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>wavpack</Name>
        <Homepage>http://www.wavpack.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <Summary>WavPack audio compression tools</Summary>
        <Description>WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode.</Description>
        <Archive sha1sum="7a8c9228d8e0f48828cf0a8f31aabcc8ae1f1c3b" type="targz">https://github.com/dbry/WavPack/archive/5.1.0.tar.gz</Archive>
    </Source>

    <Package>
        <Name>wavpack</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>wavpack-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">wavpack</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>5.1.0</Version>
            <Comment>Version Bump.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>4.75.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-20</Date>
            <Version>4.75.0</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>wavpack</Name>
        <Summary xml:lang="tr">WavPack ses sıkıştırma araçları.</Summary>
        <Description xml:lang="tr">WavPack, kayıpsız veya yüksek kaliteli kayıplı ve eşşsiz karışık sıkıştırma kipi sunan açık ses sıkıştırma biçimidir.</Description>
        <Description xml:lang="es">WavPack es un formato de compresión open audio con modos de compresión sin pérdida, de alta calidad con pérdida, y un modo híbrido.</Description>
    </Source>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt

from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools

# if pisi can't find source directory, see /var/pisi/yarock/work/ and:
# WorkDir="yarock-"+ get.srcVERSION() +"/sub_project_dir/"

def setup():
    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                                          -DCMAKE_INSTALL_PREFIX=/usr \
                                          -DENABLE_QT5=1 \
                                          -DENABLE_VLC=OFF \
                                          -DENABLE_MPV=ON \
                                          -DENABLE_PHONON=ON \
                                          -DTAGLIB_MIN_VERSION=1.9.1")

def build():
    cmaketools.make()

def install():
    cmaketools.install()

# Take a look at the source folder for these file as documentation.
    pisitools.dodoc("CHANGES.md", "README.md")

# If there is no install rule for a runnable binary, you can
# install it to binary directory.
#    pisitools.dobin("yarock")

# You can use these as variables, they will replace GUI values before build.
# Package Name : yarock
# Version : 1.1.6
# Summary : Qt Modern Music Player with collection browse based on cover art

# For more information, you can look at the Actions API
# from the Help menu and toolbar.


code:
diff -ruN Yarock_1.1.5_source-orig/src/core/player/phonon/CMakeLists.txt Yarock_1.1.5_source/src/core/player/phonon/CMakeLists.txt
--- Yarock_1.1.5_source-orig/src/core/player/phonon/CMakeLists.txt	2015-05-21 00:42:46.627611703 +0300
+++ Yarock_1.1.5_source/src/core/player/phonon/CMakeLists.txt	2015-05-21 00:43:25.852867232 +0300
@@ -34,7 +34,7 @@

 if (ENABLE_QT5)
-    INCLUDE_DIRECTORIES( ${PHONON_INCLUDE_DIR}/phonon4qt5 )
+    INCLUDE_DIRECTORIES( /usr/include/phonon4qt5 )
 else (ENABLE_QT5)
     INCLUDE_DIRECTORIES( ${PHONON_INCLUDES} )
 endif (ENABLE_QT5)


code:
<PISI>
    <Source>
        <Name>yarock</Name>
        <Homepage>https://launchpad.net/yarock</Homepage>
        <Packager>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        Qt Modern Music Player with collection browse based on cover art
        <Description>Yarock is a music player in c++/Qt designed to provide a clean, simple and beautiful music collection based on album coverart</Description>
        <Archive sha1sum="d9716d6d8e17da086c7357b0cba7f53cb88f7d63" type="targz">https://launchpad.net/yarock/1.x/1.1.6/+download/Yarock_1.1.6_source.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>extra-cmake-modules</Dependency>
            <Dependency>mpv-player-devel</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-phonon-devel</Dependency>
            <Dependency>qt5-x11extras-devel</Dependency>
            <Dependency>qt5-sql-mysql</Dependency>
            <Dependency>qt5-sql-sqlite</Dependency>
            <Dependency>qt5-sql-odbc</Dependency>
            <Dependency>qt5-sql-postgresql</Dependency>
            <Dependency>qt5-linguist</Dependency>
            <Dependency>taglib-devel</Dependency>
            <Dependency>htmlcxx-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libICE-devel</Dependency>
        </BuildDependencies>
     <Patches>
         <Patch level="1">phonon.patch</Patch>
    </Patches>
    </Source>
    <Package>
        <Name>yarock</Name>
        Qt Modern Music Player with collection browse based on cover art
        <RuntimeDependencies>
            <Dependency>qt5-base</Dependency>
            <Dependency>qt5-phonon</Dependency>
            <Dependency>qt5-x11extras</Dependency>
            <Dependency>taglib</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>htmlcxx</Dependency>
            <Dependency>mpv-player</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <History>
        <Update release="2">
            <Date>2017-04-23</Date>
            <Version>1.1.6</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-11-24</Date>
            <Version>1.1.6</Version>
            <Comment>First Release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<PISI>
    <Name>multimedia.stream</Name>
</PISI>


code:
#!/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

def setup():
    pisitools.cxxflags.add("-fpermissive")
    autotools.configure("--with-alsa \
                         --with-faac \
                         --with-vorbis \
                         --with-lame \
                         --without-jack")

def build():
    autotools.make()

def install():
    autotools.rawInstall('DESTDIR="%s"' % get.installDIR())

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "FAQ", "NEWS", "README", "TODO")


code:
http://code.google.com/p/darkice/issues/detail?id=29
SerialUlaw.cpp:296:26: error: ‘perror’ was not declared in this scope

--- src/SerialUlaw.cpp
+++ src/SerialUlaw.cpp
@@ -40,6 +40,8 @@
 #include "config.h"
 #endif

+#include <stdio.h>
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #else


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>darkice</Name>
        <Homepage>http://darkice.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>Live audio streamer</Summary>
        <Description>DarkIce as a live audio streamer. It records audio from an audio interface (e.g. sound card), encodes it and sends it to a streaming server.</Description>
        <Archive sha1sum="541233b78b3399acf2ec89dec5a08c8e54197c53" type="targz">https://sourceforge.net/projects/darkice/files/darkice/1.3/darkice-1.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>pulseaudio-libs-devel</Dependency>
            <Dependency>lame-devel</Dependency>
            <Dependency>faac-devel</Dependency>
            <Dependency>libogg-devel</Dependency>
            <Dependency>twolame-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
            <Dependency>libsamplerate-devel</Dependency>
            <Dependency>libopus-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="0">darkice-1.0-gcc44.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>darkice</Name>
        <RuntimeDependencies>
            <Dependency>pulseaudio-libs</Dependency>
            <Dependency>lame</Dependency>
            <Dependency>faac</Dependency>
            <Dependency>libogg</Dependency>
            <Dependency>twolame</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>libvorbis</Dependency>
            <Dependency>libsamplerate</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libopus</Dependency>
        </RuntimeDependencies>
        <Files>
           <Path fileType="config">/etc</Path>
           <Path fileType="doc">/usr/share/doc</Path>
           <Path fileType="man">/usr/share/man</Path>
           <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>1.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-08</Date>
            <Version>1.2</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>darkice</Name>
        Canlı müzik, ses yayınlama aracı
        <Description xml:lang="tr">Darkice bir canlı müzik, ses yayınlama uygulamasıdır. Bir ses arayüzünden (örneğin bir ses kartı) sesleri kaydeder, kodlar ve yayınlayacak sunucuya gönderir.</Description>
    </Source>

    <Package>
        <Name>darkice-devel</Name>
        darkice için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

def setup():
    #Fix htmldir
    pisitools.dosed("doc/Makefile.am", "doc/icecast", "doc/icecast/html")
    #pisitools.dosed("debian/icecast2.1", "icecast2", "icecast")

    autotools.autoreconf("-vif")
    autotools.configure("--sysconfdir=/etc/icecast \
                         --disable-static \
                         --with-curl \
                         --with-ogg \
                         --with-theora \
                         --with-speex \
                         --enable-yp \
                         --with-openssl=/usr")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    #Create Log Dir
    pisitools.dodir("/var/log/icecast")
    pisitools.dodir("/run/icecast")

    #Correct permissions
    shelltools.chmod("%s/var/log/icecast" % get.installDIR(), 0755 )
    shelltools.chmod("%s/etc/icecast/icecast.xml" % get.installDIR(),  0640)
    shelltools.chmod("%s/run/icecast" % get.installDIR(), 0755)

    pisitools.insinto("/usr/share/pixmaps", "web/icecast.png")

    #pisitools.doman("debian/icecast2.1")


code:
#!/usr/bin/python

import os

def postInstall(fromVersion, fromRelease, toVersion, toRelease):
    os.system("/bin/chown -R icecast:icecast /var/log/icecast")
    os.system("/bin/chown -R icecast:icecast /etc/icecast")
    os.system("/bin/chown -R icecast:icecast /run/icecast")


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-

from comar.service import *

serviceType = "server"
serviceDesc = _({"en": "Icecast Daemon",
                 "tr": "Icecast Servisi"})

@synchronized
def start():
    startService(command="/usr/bin/icecast",
                 args="-c /etc/icecast/icecast.xml",
                 pidfile="/run/icecast/icecast.pid",
                 donotify=True,
                 detach=True)
@synchronized
def stop():
    stopService(pidfile="/run/icecast/icecast.pid",
                donotify=True)

def status():
    return isServiceRunning("/run/icecast/icecast.pid")

def reload():
    stopService(command="/usr/bin/icecast",
                args="reload")


code:
diff -Naur icecast-2.3.2.orig/conf/icecast.xml.in icecast-2.3.2/conf/icecast.xml.in
--- icecast-2.3.2.orig/conf/icecast.xml.in	2008-04-04 18:14:10.000000000 +0300
+++ icecast-2.3.2/conf/icecast.xml.in	2008-09-28 01:01:51.000000000 +0300
@@ -7,8 +7,8 @@
         <client-timeout>30</client-timeout>
         <header-timeout>15</header-timeout>
         <source-timeout>10</source-timeout>
-        <!-- If enabled, this will provide a burst of data when a client
-             first connects, thereby significantly reducing the startup
+        <!-- If enabled, this will provide a burst of data when a client
+             first connects, thereby significantly reducing the startup
              time for listeners that do substantial buffering. However,
              it also significantly increases latency between the source
              client and listening client.  For low-latency setups, you
@@ -102,7 +102,7 @@
         <hidden>1</hidden>
         <no-yp>1</no-yp>
         <authentication type="htpasswd">
-                <option name="filename" value="myauth"/>
+                <option name="filename" value="/usr/share/icecast/myauth"/>
                 <option name="allow_duplicate_users" value="0"/>
         </authentication>
         <on-connect>/home/icecast/bin/stream-start</on-connect>
@@ -129,10 +129,10 @@

         <!-- Note that if <chroot> is turned on below, these paths must both
              be relative to the new root, not the original root -->
-        <logdir>@localstatedir@/log/@PACKAGE@</logdir>
+        <logdir>/var/log/icecast</logdir>
         <webroot>@pkgdatadir@/web</webroot>
         <adminroot>@pkgdatadir@/admin</adminroot>
-        <!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->
+        <pidfile>/run/icecast/icecast.pid</pidfile>

         <!-- Aliases: treat requests for 'source' path as being for 'dest' path
              May be made specific to a port or bound address using the "port"
@@ -164,11 +164,10 @@

     <security>
         <chroot>0</chroot>
-        <!--
+        <!--test for logrotate soon-->
         <changeowner>
-            <user>nobody</user>
-            <group>nogroup</group>
+            <user>icecast</user>
+            <group>icecast</group>
         </changeowner>
-        -->
     </security>
 </icecast>


code:
diff -Naur icecast-2.3.2.orig/m4/acx_pthread.m4 icecast-2.3.2/m4/acx_pthread.m4
--- icecast-2.3.2.orig/m4/acx_pthread.m4	2009-02-22 00:33:42.000000000 +0200
+++ icecast-2.3.2/m4/acx_pthread.m4	2009-05-01 05:27:18.000000000 +0300
@@ -63,7 +63,7 @@
 # pthread-config: use pthread-config program (for GNU Pth library)

 case "${host_cpu}-${host_os}" in
-        *solaris*)
+        *solaris*|*linux*)

         # On Solaris (at least, for some versions), libc contains stubbed
         # (non-functional) versions of the pthreads routines, so link-based


code: d /run/icecast 0755 icecast icecast


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>icecast</Name>
        <Homepage>http://www.icecast.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <Icon>icecast</Icon>
        <IsA>service</IsA>
        <Summary>ShoutCast compatible streaming media server</Summary>
        <Description>Icecast is a streaming media server which currently supports Ogg Vorbis and MP3 audio streams. It can be used to create an Internet radio station or a privately running jukebox and many things in between.</Description>
        <Archive sha1sum="230e2aa5abf80010c42d41cc7c0b078fb542b080" type="targz">http://downloads.xiph.org/releases/icecast/icecast-2.4.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>libogg-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
            <Dependency>libkate-devel</Dependency>
            <Dependency>speex-devel</Dependency>
            <Dependency>libtheora-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">pthread_flag.patch</Patch>
            <Patch level="1">icecast.conf.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>icecast</Name>
        <RuntimeDependencies>
            <Dependency>libxslt</Dependency>
            <Dependency>libogg</Dependency>
            <Dependency>libvorbis</Dependency>
            <Dependency>libkate</Dependency>
            <Dependency>speex</Dependency>
            <Dependency>libtheora</Dependency>
            <Dependency>curl</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>openssl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/icecast</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/icecast</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
            <Path fileType="data">/var</Path>
            <Path fileType="data">/run</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/icecast.conf</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/icecast.conf">tmpfiles.conf</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>2.4.3</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.4.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-08</Date>
            <Version>2.4.3</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>icecast</Name>
        <Summary xml:lang="tr">Shoutcast uyumlu muzik yayın sunucusu</Summary>
        <Description xml:lang="tr">Icecast, Ogg Vorbis ve Mp3 formatlarını destekleyerek ağ üzerinden muzik yayını yapmanızı sağlar. Icecast ile bir internet radyo istasyonu kurabilir ya da kendinize özel bir şarkı liste oluşturup paylaşabilirsiniz.</Description>
    </Source>
</PISI>


code:
#!/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

def setup():
    autotools.configure("--disable-static")

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING*", "README*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmms</Name>
        <Homepage>http://sourceforge.net/projects/libmms</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A common library for accessing MMS media streaming protocol
        <Description>libmms is a library for accessing Microsoft Media Server (MMS) media streaming protocol.</Description>
        <Archive sha1sum="b03ef84a9eedc68fdf2866265b667b75e1a33bee" type="targz">mirrors://sourceforge/libmms/libmms-0.6.4.tar.gz</Archive>
    </Source>

    <Package>
        <Name>libmms</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libmms-devel</Name>
        Development files for libmms
        <RuntimeDependencies>
            <Dependency release="current">libmms</Dependency>
            <Dependency>glib2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>0.6.4</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.6.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-10-23</Date>
            <Version>0.6.4</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libmms</Name>
        MMS protokolüne erişim sağlayan bir kütüphane
        <Description xml:lang="tr">libmms, Microsoft Media Server(MMS) akış protokolünü kullanan ses kaynaklarına erişmek için kullanılan bir kütüphanedir.</Description>
    </Source>

    <Package>
        <Name>libmms-devel</Name>
        libmms için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import get

WorkDir="live"

def setup():
    shelltools.system("./genMakefiles shared")

def build():
    # http://bugs.gentoo.org/show_bug.cgi?id=247844
    autotools.make('-j1 LINK_OPTS="-L. %s"' % get.LDFLAGS().replace("-Wl,--as-needed",""))

def install():
    for directory in ["BasicUsageEnvironment", "groupsock", "liveMedia", "UsageEnvironment"]:
        pisitools.insinto("/usr/include/%s" % directory, "%s/include/*" % directory)
        pisitools.insinto("/usr/lib/", "%s/*.so" % directory)

    pisitools.dodoc("README", "COPYING")


code:
diff -Nur live-old/config.shared live/config.shared
--- live-old/config.shared	1970-01-01 02:00:00.000000000 +0200
+++ live/config.shared	2007-02-23 13:35:55.000000000 +0200
@@ -0,0 +1,17 @@
+COMPILE_OPTS =		$(INCLUDES) -I. -DSOCKLEN_T=socklen_t -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64
+C =			c
+C_COMPILER =		$(CC)
+C_FLAGS =		$(COMPILE_OPTS) -fPIC $(CFLAGS)
+CPP =			cpp
+CPLUSPLUS_COMPILER =	$(CXX)
+CPLUSPLUS_FLAGS =	$(COMPILE_OPTS) -fPIC $(CXXFLAGS)
+OBJ =			o
+LINK =			$(CXX) -o
+LINK_OPTS =		-L.
+CONSOLE_LINK_OPTS =	$(LINK_OPTS)
+LIBRARY_LINK =		$(CC) -o
+LIBRARY_LINK_OPTS =	$(LINK_OPTS) -shared -Wl,-soname,$@
+LIB_SUFFIX =			so
+LIBS_FOR_CONSOLE_APPLICATION =
+LIBS_FOR_GUI_APPLICATION =
+EXE =


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>live555</Name>
        <Homepage>http://www.live555.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Multimedia streaming library
        <Description>Live555 is a set of C++ libraries for multimedia streaming, using open standard protocols (RTP/RTCP, RTSP, SIP)</Description>

        <Archive sha1sum="b3ea835186070cca2c47a09d7391d1336698de3f" type="targz">http://distfiles.alpinelinux.org/distfiles/live.2016.10.21.tar.gz</Archive>
        <Patches>
             <Patch level="1">shared-config.patch</Patch>

        </Patches>
    </Source>

    <Package>
        <Name>live555</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>live555-devel</Name>
        Development files for live555
        <RuntimeDependencies>
            <Dependency release="current">live555</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-18</Date>
            <Version>2016.10.21</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>2016.10.21</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2014.05.08</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-25</Date>
            <Version>2014.05.08</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>live555</Name>
        Çokluortam yayın kitaplığı
        <Description xml:lang="tr">Live555, açık standart protokolleri kullanan (RTP/RTCP, RTSP, SIP) çoklu ortam duraksız işlemleri (streaming) için C++ kütüphaneleridir.</Description>
        <Description xml:lang="fr">Live555 est un ensemble de librairies C++ pour le streaming (diffusion numérique) multimédia utilisant les protocoles de standards ouverts (RTP/RTCP, RTSP, SIP).</Description>
    </Source>

    <Package>
        <Name>live555-devel</Name>
        live555 için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

makeargs="prefix=/usr sbindir=/usr/bin mandir=/usr/share/man"

def setup():
    pisitools.dosed("Makefile", "CC=.*", "CC=%s" % get.CC())
    pisitools.dosed("Makefile", "LDFLAGS=.*", \
                                "LDFLAGS=%s" % get.LDFLAGS())

    pisitools.dosed("librtmp/Makefile", "CC=.*", \
                                        "CC=%s" % get.CC())

def build():

    autotools.make(' -j1 %s XCFLAGS="%s"' % (makeargs, get.CFLAGS()) )

def install():
    autotools.rawInstall(' -j1 %s DESTDIR=%s' % (makeargs, get.installDIR()))

    #pisitools.remove("/usr/lib/librtmp.a")

    pisitools.insinto("/usr/share/doc/%s" % get.srcNAME(), "librtmp/COPYING", "librtmp-COPYING")
    pisitools.dodoc("COPYING", "ChangeLog", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>rtmpdump</Name>
        <Homepage>http://rtmpdump.mplayerhq.hu/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>

        <License>LGPLv2</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        Toolkit for RTMP streams
        <Description>rtmpdump is a tool for dumping media content streamed over RTMP. All forms of RTMP are supported, including rtmp://, rtmpt://, rtmpe://, rtmpte://, and rtmps:// .</Description>
        <Archive sha1sum="b981d669a6aeabb08f2b58262b6299d4ead62c29" type="targz">http://source.pisilinux.org/1.0/rtmpdump-15012015.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>openssl-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>rtmpdump</Name>
        <RuntimeDependencies>
            <Dependency>openssl</Dependency>
            <Dependency>zlib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/rtmpdump</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>rtmpdump-devel</Name>
        Development files for rtmpdump
        <RuntimeDependencies>
            <Dependency release="current">rtmpdump</Dependency>
            <Dependency>openssl-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>20150115</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>20150115</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-29</Date>
            <Version>20150115</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>rtmpdump</Name>
        RTMP yayınları araç takımı
        <Description xml:lang="tr">rtmpdump, RTMP üzerinden yayın yapan ortam içeriklerinin dökümünü yapmak için yazılmış bir araçtır. RTMP yayımının bütün biçimleri desteklenmektedir: rtmp://, rtmpt://, rtmpe://, rtmpte://, ve rtmps:// .</Description>
    </Source>

    <Package>
        <Name>rtmpdump-devel</Name>
        rtmpdump için geliştirme dosyaları
    </Package>
</PISI>


code:
<PISI>
    <Name>multimedia.tv</Name>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

def setup():
    shelltools.export("LDFLAGS", get.LDFLAGS())

    autotools.configure("--enable-gpl \
                         --enable-gpl3 \
                         --disable-gtk2 \
                         --qt-libdir=/usr/lib/ \
                         --qt-includedir=/usr/include/qt5 \
                         --avformat-vdpau \
                         --avformat-swscale")

    # Enable bindings
    shelltools.echo("%s/src/swig/config.mak" % get.curDIR(), "SUBDIRS = perl python")

def build():
    autotools.make()
    autotools.make("-C src/swig")

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    # We should manually install the bindings :(
    pisitools.insinto("/usr/lib/%s/site-packages/" % get.curPYTHON(), "src/swig/python/mlt.py")
    pisitools.dolib("src/swig/python/_mlt.so", "/usr/lib/%s/site-packages/" % get.curPYTHON())

    pisitools.insinto("/usr/lib/perl5/vendor_perl/%s/" % get.curPERL(), "src/swig/perl/blib/lib/mlt.pm")
    pisitools.dolib("src/swig/perl/blib/arch/auto/mlt/mlt.so", "/usr/lib/perl5/vendor_perl/%s/i686-linux-thread-multi/auto/mlt/" % get.curPERL())

    pisitools.dodoc("ChangeLog", "COPYING", "GPL*", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mlt</Name>
        <Homepage>http://www.mltframework.org/twiki/bin/view/MLT/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        A multimedia framework, designed and developed for television broadcasting
        <Description>MLT is an open source multimedia framework, designed and developed for television broadcasting.</Description>
        <Archive sha1sum="f2d946cf64fbd48485445cb6a4d604615dfc45d4" type="targz">https://sourceforge.net/projects/mlt/files/mlt/mlt-6.4.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>swig</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>frei0r-plugins-devel</Dependency>
            <Dependency>fftw3-devel</Dependency>

            <Dependency>jack-audio-connection-kit-devel</Dependency>
            <Dependency>pulseaudio-libs-devel</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-svg-devel</Dependency>
            <Dependency>perl</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>libsamplerate-devel</Dependency>

            <Dependency>ladspa-sdk-devel</Dependency>

            <Dependency>libvorbis-devel</Dependency>
            <Dependency>sdl-image-devel</Dependency>
            <Dependency>libexif-devel</Dependency>

            <Dependency>libsdl-devel</Dependency>
            <Dependency>ffmpeg-devel</Dependency>

            <Dependency>libdv-devel</Dependency>
            <Dependency>sox-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>perl-mlt</Name>
        <PartOf>programming.language.perl</PartOf>
        Perl bindings for MLT
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>perl</Dependency>
            <Dependency release="current">mlt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/perl*</Path>
        </Files>
    </Package>

    <Package>
        <Name>python-mlt</Name>
        <PartOf>programming.language.python</PartOf>
        Python bindings for MLT
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>python</Dependency>
            <Dependency release="current">mlt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/python*</Path>
        </Files>
    </Package>

    <Package>
        <Name>mlt</Name>
        <RuntimeDependencies>
            <Dependency>sox</Dependency>
            <Dependency>fftw3</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>ffmpeg</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libsdl</Dependency>
            <Dependency>libexif</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>qt5-svg</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>libvorbis</Dependency>
            <Dependency>sdl-image</Dependency>
            <Dependency>libsamplerate</Dependency>
            <Dependency>pulseaudio-libs</Dependency>
            <Dependency>jack-audio-connection-kit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share/mlt</Path>
            <Path fileType="data">/usr/share/mlt/modules</Path>
            <Path fileType="data">/usr/share/mlt/modules/lumas/PAL</Path>
        </Files>
    </Package>

    <Package>
        <Name>mlt-devel</Name>
        Development files for mlt
        <RuntimeDependencies>
            <Dependency release="current">mlt</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-04-13</Date>
            <Version>6.4.1</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-25</Date>
            <Version>6.2.0</Version>
            <Comment>Version bump.</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-20</Date>
            <Version>0.9.8</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-16</Date>
            <Version>0.9.8</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>mlt</Name>
        Televizyon yayını için tasarlanmış bir çoklu ortam altyapısı
        <Description xml:lang="tr">MLT televizyon yayını için tasarlanmış, açık kaynak kodlu bir çoklu ortam alyapısıdır.</Description>
    </Source>

    <Package>
        <Name>perl-mlt</Name>
        MLT için Perl bağlayıcıları
    </Package>

    <Package>
        <Name>python-mlt</Name>
        MLT için Python bağlayıcıları
    </Package>

    <Package>
        <Name>mlt-devel</Name>
        mlt için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import get

def setup():
    shelltools.export("CFLAGS", "%s -Wno-pointer-sign %s" % (get.CFLAGS(), get.LDFLAGS()))

    autotools.autoreconf("-vfi")
    autotools.configure("--with-x \
                         --enable-xfree-ext \
                         --enable-xvideo \
                         --enable-dv \
                         --disable-motif \
                         --enable-quicktime \
                         --enable-alsa \
                         --enable-lirc \
                         --enable-gl \
                         --enable-zvbi \
                         --enable-xft \
                         --prefix=/usr \
                         --enable-aa")
                         # --enable-mmx \ # let the build decide it

def build():
    autotools.make()

def install():
    autotools.install("libdir=%(D)s/usr/lib/xawtv \
                       resdir=%(D)s/etc/X11" % {"D": get.installDIR()})

    pisitools.dobin("x11/v4lctl")
    pisitools.dodoc("COPYING", "Changes", "README*", "TODO")

    pisitools.removeDir("/usr/share/man/fr")
    pisitools.removeDir("/usr/share/man/es")

    pisitools.dodir("/usr/share/xawtv")
    pisitools.domove("/usr/share/*.list", "/usr/share/xawtv/")
    pisitools.domove("/usr/share/Index*", "/usr/share/xawtv/")

    shelltools.chmod("contrib/xawtv48x48.xpm", 0644)
    pisitools.insinto("/usr/share/pixmaps", "contrib/xawtv48x48.xpm", "xawtv.xpm")


code:
--- console/Subdir.mk.orig	2011-09-05 20:26:02.000000000 +0300
+++ console/Subdir.mk	2011-09-10 14:13:33.887999993 +0300
@@ -88,6 +88,10 @@
 console/scantv   : LDFLAGS := $(DLFLAGS)
 console/streamer : LDFLAGS := $(DLFLAGS)
 console/webcam   : LDFLAGS := $(DLFLAGS)
+console/v4l-conf : LDFLAGS := $(DLFLAGS) -pie
+
+# compile flags
+console/v4l-conf : CFLAGS += -fPIE

 # global targets
 all:: $(TARGETS-console) $(TARGETS-v4l-conf)


code:
diff -uNr xawtv-3.100.orig/common/channel.c xawtv-3.100/common/channel.c
--- xawtv-3.100.orig/common/channel.c	2011-02-22 07:56:44.000000000 +0200
+++ xawtv-3.100/common/channel.c	2011-05-07 15:35:34.948000119 +0300
@@ -181,6 +181,9 @@
     {  -1, NULL,     },
 };

+extern struct STRTAB booltab[];
+extern struct STRTAB captab[];
+
 /* just malloc memory for a new channel ... */
 struct CHANNEL*
 add_channel(char *name)
diff -uNr xawtv-3.100.orig/common/channel.h xawtv-3.100/common/channel.h
--- xawtv-3.100.orig/common/channel.h	2011-02-22 07:56:44.000000000 +0200
+++ xawtv-3.100/common/channel.h	2011-05-07 15:36:33.398000163 +0300
@@ -90,8 +90,5 @@

 /* ----------------------------------------------------------------------- */

-extern struct STRTAB booltab[];
-extern struct STRTAB captab[];
-
 int str_to_int(char *str, struct STRTAB *tab);
 const char* int_to_str(int n, struct STRTAB *tab);
diff -uNr xawtv-3.100.orig/common/commands.c xawtv-3.100/common/commands.c
--- xawtv-3.100.orig/common/commands.c	2011-02-22 07:56:44.000000000 +0200
+++ xawtv-3.100/common/commands.c	2011-05-07 15:37:07.600000117 +0300
@@ -162,6 +162,9 @@

 static int keypad_state = -1;

+extern struct STRTAB booltab[];
+extern struct STRTAB captab[];
+
 /* ----------------------------------------------------------------------- */

 void add_attrs(struct ng_attribute *new)


code:
[Desktop Entry]
Encoding=UTF-8
Icon=xawtv.xpm
Exec=xawtv
Name=XawTV
Name[tr]=XawTV
GenericName=Television Viewer
GenericName[tr]=Televizyon Uygulaması
Terminal=false
Type=Application
Categories=Application;AudioVideo;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>xawtv</Name>
        <Homepage>http://linuxtv.org/downloads/xawtv/</Homepage>
        <Packager>
            <Name>Erdinc Gultekin</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <Icon>xawtv</Icon>
        <IsA>app:gui</IsA>
        <PartOf>multimedia.tv</PartOf>
        <Summary>TV application</Summary>
        <Description>xawtv is a TV application that supports many interfaces (analog video streams), such as Xvideo, v4l2 and bktr etc. It can display TV streams and record them.</Description>
        <Archive sha1sum="5e15a279c75d02b36f7e3699d5cc8ce285c2a9be" type="tarbz2">http://linuxtv.org/downloads/xawtv/xawtv-3.103.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>aalib-devel</Dependency>
            <Dependency>libquicktime-devel</Dependency>
            <Dependency>openmotif-devel</Dependency>
            <Dependency>libdv-devel</Dependency>
            <Dependency>zvbi-devel</Dependency>
            <Dependency>lirc-devel</Dependency>
            <Dependency>libv4l-devel</Dependency>
            <Dependency>xorg-font</Dependency>
            <Dependency>libXxf86dga-devel</Dependency>
            <Dependency>libdv</Dependency>
            <Dependency>libXpm-devel</Dependency>
            <Dependency>libXrender-devel</Dependency>
            <Dependency>libXv-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
            <Dependency>libXxf86vm-devel</Dependency>
            <Dependency>libXmu-devel</Dependency>
            <Dependency>libFS-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>libXft-devel</Dependency>
            <Dependency>libXaw-devel</Dependency>
            <Dependency>zvbi-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
            <Dependency>libSM-devel</Dependency>
            <Dependency>libICE-devel</Dependency>
            <Dependency>libexplain-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>gpm</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="0">v4l-conf_non-position-independent-executable_fix.patch</Patch>
            <Patch level="1">xawtv-3.95.patch</Patch>
        </Patches>
      </Source>

    <Package>
        <Name>xawtv</Name>
        <RuntimeDependencies>
            <Dependency>gpm</Dependency>
            <Dependency>zvbi</Dependency>
            <Dependency>lirc</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>aalib</Dependency>
            <Dependency>libSM</Dependency>
            <Dependency>libdv</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>libXv</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libXmu</Dependency>
            <Dependency>libXaw</Dependency>
            <Dependency>libICE</Dependency>
            <Dependency>libv4l</Dependency>
            <Dependency>libXpm</Dependency>
            <Dependency>libXft</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>xorg-font</Dependency>
            <Dependency>libXrandr</Dependency>
            <Dependency>libXrender</Dependency>
            <Dependency>libXxf86vm</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>libexplain</Dependency>
            <Dependency>libXxf86dga</Dependency>
            <Dependency>libXinerama</Dependency>
            <Dependency>libquicktime</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib/xawtv</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/xawtv</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/xawtv.desktop">xawtv.desktop</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-15</Date>
            <Version>3.103</Version>
            <Comment>Add Dependency.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.103</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-01-09</Date>
            <Version>3.103</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
      </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>xawtv</Name>
        <Summary xml:lang="tr">TV uygulaması</Summary>
        <Description xml:lang="tr">xawtv Xvideo, v4l2, bktr gibi birçok arayüzü destekleyen bir TV uygulamasıdır. xawtv ayrıca video kayıt yeteneği ve birkaç yararlı konsol aracına sahiptir.</Description>
    </Source>
</PISI>


code:
#!/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 shelltools

def setup():
    shelltools.export("AUTOPOINT", "/bin/true")
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                         --enable-nls \
                         --with-x \
                         --enable-v4l \
                         --enable-dvb \
                         --with-doxygen")

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dohtml("doc/html/*")
    pisitools.dodoc("ChangeLog", "AUTHORS", "COPYING", "NEWS", "README*", "TODO")


code:
diff -Naur zvbi-0.2.31/src/Makefile.am zvbi-0.2.31.oden/src/Makefile.am
--- zvbi-0.2.31/src/Makefile.am	2008-02-19 01:35:14.000000000 +0100
+++ zvbi-0.2.31.oden/src/Makefile.am	2008-11-08 13:11:22.000000000 +0100
@@ -119,6 +119,8 @@
 	proxy-client.c \
 	proxy-msg.c

+libzvbi_chains_la_LIBADD = -ldl
+
 if MAINTAINER_MODE

 hammgen: hammgen.c
diff -Naur zvbi-0.2.31/src/Makefile.in zvbi-0.2.31.oden/src/Makefile.in
--- zvbi-0.2.31/src/Makefile.in	2008-07-25 08:20:51.000000000 +0200
+++ zvbi-0.2.31.oden/src/Makefile.in	2008-11-08 13:11:07.000000000 +0100
@@ -62,7 +62,7 @@
 	"$(DESTDIR)$(libzvbiincludedir)"
 libLTLIBRARIES_INSTALL = $(INSTALL)
 LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
-libzvbi_chains_la_LIBADD =
+libzvbi_chains_la_LIBADD = -ldl
 am_libzvbi_chains_la_OBJECTS = chains.lo io.lo misc.lo proxy-client.lo \
 	proxy-msg.lo
 libzvbi_chains_la_OBJECTS = $(am_libzvbi_chains_la_OBJECTS)


code:
Index: configure.in
===================================================================
--- configure.in
+++ configure.in	2009-05-27 10:33:24.000000000 +0200
@@ -6,6 +6,17 @@

 AM_INIT_AUTOMAKE([1.9 check-news dist-bzip2])
 AM_CONFIG_HEADER(config.h)
+
+dnl AM_ACLOCAL_INCLUDE(macrodir)
+AC_DEFUN([AM_ACLOCAL_INCLUDE],
+[
+    AM_CONDITIONAL(INSIDE_GNOME_COMMON, test x = y)
+
+    test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
+
+    for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done
+])
+
 AM_ACLOCAL_INCLUDE(m4)
 AM_MAINTAINER_MODE


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>zvbi</Name>
        <Homepage>http://zapping.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        VBI Decoding Library for Zapping
        <Description>Zapping is a TV viewer for the Gnome desktop. With Zapping and a TV card you can watch TV, take screenshots, and record video and audio. Zapping supports Closed Caption and Teletext subtitles.</Description>
        <Archive sha1sum="b0fc8d596c90d603e883e6b195318c6b276a3eb4" type="tarbz2">mirrors://sourceforge/zapping/zvbi-0.2.35.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>doxygen</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">zvbi-0.2.31-linkage_fix.diff</Patch>

	    <Patch level="0">zvbi-0.2.7-fix-build.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>zvbi</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/zvbi</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

    <Package>
        <Name>zvbi-devel</Name>
        Development files for zvbi
        <RuntimeDependencies>
            <Dependency release="current">zvbi</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="doc">/usr/share/doc/zvbi/html</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>0.2.35</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.2.35</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-27</Date>
            <Version>0.2.35</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>zvbi</Name>
        Zapping uygulaması için VBI çözücü kütüphanesi
        <Description xml:lang="tr">Zapping Gnome masaüstü için bir televizyon göstericisidir. Zapping ve bir TV kartı ile TV seyredebilir, ekran resmi çekebilir ve video ve audio kaydedebilirsiniz. Zapping Kapalı Çekim (Closed Capture) ve Teletex altyazılarını desteklemektedir.</Description>
        <Description xml:lang="fr">Zapping est un lecteur TV pour le bureau Gnome. Avec Zapping et une carte TV vous pouvez, voir la télévision, faire des copies d'écran et effectuer des enregistrements audio et vidéo. Zapping gère les sous-titres et le télétexte.</Description>
        <Description xml:lang="es">Zapping es un visualizador de TV para el escritorio Gnome. Con Zapping y una tarjeta de TV puede mirar la tele, capturar pantallas, grabar video y audio. Zapping soporta subtitulos teletext y Closed Caption.</Description>
    </Source>

    <Package>
        <Name>zvbi-devel</Name>
        zvbi için geliştirme dosyaları
    </Package>
</PISI>


code:
<PISI>
    <Name>multimedia.video</Name>
</PISI>


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.

from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "crystalhd"

def build():
    #libcrystalhd and crystalhd-firmware
    shelltools.cd('linux_lib/libcrystalhd')
    autotools.make('clean')
    autotools.make()

def install():
    pisitools.dodoc('COPYING')
    #libcrystalhd and crystalhd-firmware
    shelltools.cd('linux_lib/libcrystalhd')
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>crystalhd</Name>
        <Homepage>http://www.broadcom.com/support/crystal_hd/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <Summary>Drivers for Broadcom's BCM70012 and BCM70015 Crystal HD</Summary>
        <Description>Drivers for Broadcom's BCM70012 and BCM70015 Crystal HD</Description>
        <Archive sha1sum="31616471614451730ba927471d7a2403dc333927" type="tarlzma">http://source.pisilinux.org/1.0/crystalhd.tar.xz</Archive>
    </Source>
    <Package>
        <Name>libcrystalhd</Name>
        <Files>
            <Path fileType="library">/usr/lib/libcrystalhd.so</Path>
            <Path fileType="library">/usr/lib/libcrystalhd.so.3</Path>
            <Path fileType="library">/usr/lib/libcrystalhd.so.3.6</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <Package>
        <Name>libcrystalhd-devel</Name>
        <RuntimeDependencies>
            <Dependency version="current">libcrystalhd</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/libcrystalhd/bc_dts_defs.h</Path>
            <Path fileType="header">/usr/include/libcrystalhd/bc_dts_types.h</Path>
            <Path fileType="header">/usr/include/libcrystalhd/libcrystalhd_if.h</Path>
            <Path fileType="header">/usr/include/libcrystalhd/libcrystalhd_version.h</Path>
        </Files>
    </Package>
    <Package>
        <Name>crystalhd-firmware</Name>
        <Files>
            <Path fileType="data">/lib/firmware</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-06</Date>
            <Version>20100703</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>20100703</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-20</Date>
            <Version>20100703</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>crystalhd</Name>
        Broadcom BCM70012 ve BCM70015 için Crystal HD sürücüleri
        <Description xml:lang="tr">Broadcom BCM70012 ve BCM70015 için Crystal HD sürücüleri</Description>
    </Source>
    <Package>
        <Name>libcrystalhd</Name>
        Broadcom Crystal HD için kütüphane
    </Package>
    <Package>
        <Name>libcrystalhd-devel</Name>
        Broadcom Crystal HD için geliştirici dosyaları
    </Package>
    <Package>
        <Name>crystalhd-firmware</Name>
        Broadcom Crystal HD firmware dosyaları
    </Package>
</PISI>


code:
#!/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

def setup():
    shelltools.system("./configure --prefix=/usr \
                            --mandir=/usr/share/man \
                            --disable-debug \
                            --disable-static \
                            --disable-stripping \
                            --enable-avfilter \
                            --enable-avresample \
                            --enable-fontconfig \
                            --enable-gnutls \
                            --enable-gpl \
                            --enable-libass \
                            --enable-libbluray \
                            --enable-libfreetype \
                            --enable-libgsm \
                            --enable-libmodplug \
                            --enable-libmp3lame \
                            --enable-libopencore_amrnb \
                            --enable-libopencore_amrwb \
                            --enable-libopenjpeg \
                            --enable-libopus \
                            --enable-libpulse \
                            --enable-librtmp \
                            --enable-libschroedinger \
                            --enable-libspeex \
                            --enable-libtheora \
                            --enable-libv4l2 \
                            --enable-libvorbis \
                            --enable-libvpx \
                            --enable-libx264 \
                            --enable-libx265 \
                            --enable-libxvid \
                            --enable-pic \
                            --enable-postproc \
                            --enable-runtime-cpudetect \
                            --enable-shared \
                            --enable-swresample \
                            --enable-vdpau \
                            --enable-version3 \
                            --enable-libdc1394 \
                            --enable-libnut \
                            --enable-libcelt \
                            --enable-frei0r \
                            --enable-libcdio \
                            --enable-libvo-amrwbenc \
                            --enable-nonfree")

def build():
    autotools.make()
    autotools.make('tools/qt-faststart')
    autotools.make("doc/ff{mpeg,play,server}.1")

def install():
    autotools.rawInstall("DESTDIR=%s install-man" % get.installDIR())
    pisitools.dobin("tools/qt-faststart")
    pisitools.dodoc("Changelog", "README.md", "LICENSE.md", "COPYING*")


code:
--- libavcodec/libx265.c~	2014-03-23 23:07:50.000000000 +0100
+++ libavcodec/libx265.c	2014-04-05 19:28:05.566614823 +0200
@@ -38,8 +38,6 @@

     x265_encoder *encoder;
     x265_param   *params;
-    uint8_t      *header;
-    int           header_size;

     char *preset;
     char *tune;
@@ -66,7 +64,6 @@
     libx265Context *ctx = avctx->priv_data;

     av_frame_free(&avctx->coded_frame);
-    av_freep(&ctx->header);

     x265_param_free(ctx->params);

@@ -80,11 +77,8 @@
 {
     libx265Context *ctx = avctx->priv_data;
     x265_nal *nal;
-    uint8_t *buf;
     int sar_num, sar_den;
     int nnal;
-    int ret;
-    int i;

     if (avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL &&
         !av_pix_fmt_desc_get(avctx->pix_fmt)->log2_chroma_w &&
@@ -121,11 +115,11 @@
     av_reduce(&sar_num, &sar_den,
               avctx->sample_aspect_ratio.num,
               avctx->sample_aspect_ratio.den, 4096);
-    ctx->params->bEnableVuiParametersPresentFlag = 1;
-    ctx->params->bEnableAspectRatioIdc           = 1;
-    ctx->params->aspectRatioIdc                  = 255;
-    ctx->params->sarWidth                        = sar_num;
-    ctx->params->sarHeight                       = sar_den;
+    ctx->params->vui.bEnableVuiParametersPresentFlag = 1;
+    ctx->params->vui.bEnableAspectRatioIdc           = 1;
+    ctx->params->vui.aspectRatioIdc                  = 255;
+    ctx->params->vui.sarWidth                        = sar_num;
+    ctx->params->vui.sarHeight                       = sar_den;

     if (x265_max_bit_depth == 8)
         ctx->params->internalBitDepth = 8;
@@ -148,6 +142,9 @@
         ctx->params->rc.rateControlMode = X265_RC_ABR;
     }

+    if (!(avctx->flags & CODEC_FLAG_GLOBAL_HEADER))
+        ctx->params->bRepeatHeaders = 1;
+
     if (ctx->x265_opts) {
         AVDictionary *dict    = NULL;
         AVDictionaryEntry *en = NULL;
@@ -180,35 +177,23 @@
         return AVERROR_INVALIDDATA;
     }

-    ret = x265_encoder_headers(ctx->encoder, &nal, &nnal);
-    if (ret < 0) {
-        av_log(avctx, AV_LOG_ERROR, "Cannot encode headers.\n");
-        libx265_encode_close(avctx);
-        return AVERROR_INVALIDDATA;
-    }
-
-    for (i = 0; i < nnal; i++)
-        ctx->header_size += nal[i].sizeBytes;
-
-    ctx->header = av_malloc(ctx->header_size + FF_INPUT_BUFFER_PADDING_SIZE);
-    if (!ctx->header) {
-        av_log(avctx, AV_LOG_ERROR,
-               "Cannot allocate HEVC header of size %d.\n", ctx->header_size);
-        libx265_encode_close(avctx);
-        return AVERROR(ENOMEM);
-    }
+    if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) {
+        avctx->extradata_size = x265_encoder_headers(ctx->encoder, &nal, &nnal);
+        if (avctx->extradata_size <= 0) {
+            av_log(avctx, AV_LOG_ERROR, "Cannot encode headers.\n");
+            libx265_encode_close(avctx);
+            return AVERROR_INVALIDDATA;
+        }

-    buf = ctx->header;
-    for (i = 0; i < nnal; i++) {
-        memcpy(buf, nal[i].payload, nal[i].sizeBytes);
-        buf += nal[i].sizeBytes;
-    }
+        avctx->extradata = av_malloc(avctx->extradata_size + FF_INPUT_BUFFER_PADDING_SIZE);
+        if (!avctx->extradata) {
+            av_log(avctx, AV_LOG_ERROR,
+                   "Cannot allocate HEVC header of size %d.\n", avctx->extradata_size);
+            libx265_encode_close(avctx);
+            return AVERROR(ENOMEM);
+        }

-    if (avctx->flags & CODEC_FLAG_GLOBAL_HEADER) {
-        avctx->extradata_size = ctx->header_size;
-        avctx->extradata = ctx->header;
-        ctx->header_size = 0;
-        ctx->header = NULL;
+        memcpy(avctx->extradata, nal[0].payload, avctx->extradata_size);
     }

     return 0;
@@ -250,8 +235,6 @@
     for (i = 0; i < nnal; i++)
         payload += nal[i].sizeBytes;

-    payload += ctx->header_size;
-
     ret = ff_alloc_packet(pkt, payload);
     if (ret < 0) {
         av_log(avctx, AV_LOG_ERROR, "Error getting output packet.\n");
@@ -259,14 +242,6 @@
     }
     dst = pkt->data;

-    if (ctx->header) {
-        memcpy(dst, ctx->header, ctx->header_size);
-        dst += ctx->header_size;
-
-        av_freep(&ctx->header);
-        ctx->header_size = 0;
-    }
-
     for (i = 0; i < nnal; i++) {
         memcpy(dst, nal[i].payload, nal[i].sizeBytes);
         dst += nal[i].sizeBytes;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ffmpeg</Name>
        <Homepage>http://ffmpeg.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>GPLv3</License>
        <License>LGPLv2</License>
        <License>LGPLv3</License>
        <IsA>app:console</IsA>
        A command-line tool to record, convert and stream audio and video
        <Description>FFmpeg is a complete solution to record, convert and stream audio and video.</Description>
        <Archive sha1sum="bc729e38c313ad381a56ffd29a61a7b985a49ea4" type="tarxz">http://ffmpeg.org/releases/ffmpeg-3.3.6.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>freetype-devel</Dependency>
            <Dependency>faac-devel</Dependency>
            <Dependency>lame-devel</Dependency>
            <Dependency>x264-devel</Dependency>
            <Dependency>x265-devel</Dependency>
            <Dependency>libva-devel</Dependency>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>libvpx-devel</Dependency>
            <Dependency>libass-devel</Dependency>
            <Dependency>libopus-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>libvdpau-devel</Dependency>
            <Dependency>libtheora-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
            <Dependency>gnutls-devel</Dependency>
            <Dependency>celt-devel</Dependency>
            <Dependency>gsm-devel</Dependency>
            <Dependency>libbluray-devel</Dependency>
            <Dependency>opencore-amr-devel</Dependency>
            <Dependency>libmodplug-devel</Dependency>
            <Dependency>pulseaudio-libs-devel</Dependency>
            <Dependency>openjpeg-devel</Dependency>
            <Dependency>frei0r-plugins-devel</Dependency>
            <Dependency>rtmpdump-devel</Dependency>
            <Dependency>schroedinger-devel</Dependency>
            <Dependency>speex-devel</Dependency>
            <Dependency>yasm-devel</Dependency>
            <Dependency>libv4l-devel</Dependency>
            <Dependency>pkgconfig</Dependency>
            <Dependency>libvo-amrwbenc-devel</Dependency>
            <Dependency>libvo-aacenc-devel</Dependency>
            <Dependency>xvid-devel</Dependency>
            <Dependency>libdc1394-devel</Dependency>
            <Dependency>libnut-devel</Dependency>
            <Dependency>libcdio-paranoia-devel</Dependency>
            <Dependency>libXv-devel</Dependency>
            <Dependency>libidn-devel</Dependency>
        </BuildDependencies>

    </Source>

    <Package>
        <Name>ffmpeg</Name>
        <RuntimeDependencies>
            <Dependency>gsm</Dependency>
            <Dependency>celt</Dependency>
            <Dependency>faac</Dependency>
            <Dependency>lame</Dependency>
            <Dependency>x264</Dependency>
            <Dependency>x265</Dependency>
            <Dependency>xvid</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>speex</Dependency>
            <Dependency>libva</Dependency>
            <Dependency>libXv</Dependency>
            <Dependency>gnutls</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libnut</Dependency>
            <Dependency>libsdl</Dependency>
            <Dependency>libv4l</Dependency>
            <Dependency>libvpx</Dependency>
            <Dependency>libxcb</Dependency>
            <Dependency>libass</Dependency>
            <Dependency>libopus</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libvdpau</Dependency>
            <Dependency>openjpeg</Dependency>
            <Dependency>rtmpdump</Dependency>
            <Dependency>libbluray</Dependency>
            <Dependency>libdc1394</Dependency>
            <Dependency>libtheora</Dependency>
            <Dependency>libvorbis</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>libmodplug</Dependency>
            <Dependency>libvo-aacenc</Dependency>
            <Dependency>opencore-amr</Dependency>
            <Dependency>schroedinger</Dependency>
            <Dependency>libvo-amrwbenc</Dependency>
            <Dependency>pulseaudio-libs</Dependency>
            <Dependency>libcdio-paranoia</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/ffmpeg</Path>
        </Files>
    </Package>

    <Package>
        <Name>ffmpeg-devel</Name>
        Development files for ffmpeg
        <RuntimeDependencies>
            <Dependency release="current">ffmpeg</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
	<Update release="6">
            <Date>2018-01-13</Date>
            <Version>3.3.6</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-01-04</Date>
            <Version>3.3.6</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-17</Date>
            <Version>3.2.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-13</Date>
            <Version>3.0.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.8.6</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-16</Date>
            <Version>2.8.6</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>ffmpeg</Name>
        FFmpeg ses ve görüntü dosyalarını kaydedebilen, dönüştürebilen ve açabilen yazılımdır
        FFmpeg to kompletne rozwiązanie nagrywania, konwersji i transmisji strumieni dźwięku i obrazu
        <Description xml:lang="tr">FFmpeg ses ve görüntü dosyalarını kaydedebilen,dönüştürebilen ve açabilen komple bir çözüm. libavcodec ve birçok popüler ses/görüntü codeclerini içerir.</Description>
        <Description xml:lang="pl">FFmpeg to kompletne rozwiązanie nagrywania, konwersji i transmisji strumieni dźwięku i obrazu. Jest to działające z linii poleceń narzędzie do konwersji obrazu z jednego formatu do innego. Obsługuje także przechwytywanie i kodowanie w czasie rzeczywistym z karty telewizyjnej.</Description>
    </Source>

    <Package>
        <Name>ffmpeg-devel</Name>
        ffmpeg için geliştirme dosyaları
        Pliki nagłówkowe ffmpeg
    </Package>
</PISI>


code:
#!/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

def setup():
    autotools.configure("--with-package-name='PisiLinux gst-libav package' \
                         --with-package-origin='http://www.pisilinux.org' \
                         --enable-ffmpeg")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dodoc("README","NEWS","ChangeLog")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gst-libav-next</Name>
        <Homepage>http://gstreamer.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>Gstreamer plugin for the libav codec</Summary>
        <Description>Gstreamer plugin for the libav codec.</Description>
        <Archive sha1sum="88d1dafb9d0e9868cf8438e6d95319933f1c2f41" type="tarxz">https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.10.3.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>orc-devel</Dependency>
            <Dependency>yasm-devel</Dependency>
            <Dependency>gst-plugins-base-next-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>gst-libav-next</Name>
        <RuntimeDependencies>
            <Dependency>bzip2</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>gstreamer-next</Dependency>
            <Dependency>gst-plugins-base-next</Dependency>
    </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-17</Date>
            <Version>1.10.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-10</Date>
            <Version>1.8.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-02</Date>
            <Version>1.8.1</Version>
            <Comment>Version bump</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-29</Date>
            <Version>1.6.3</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>gst-libav</Name>
        <Summary xml:lang="tr">Gstreamer için FFmpeg desteği</Summary>
    </Source>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import get

def setup():
    autotools.configure("--with-package-name='PisiLinux gstreamer-plugins-bad package' \
                         --with-package-origin='http://www.pisilinux.org'")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("ABOUT-NLS", "AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "RELEASE", "REQUIREMENTS")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gst-plugins-bad-next</Name>
        <Homepage>http://gstreamer.freedesktop.org/modules/gst-plugins-bad.html</Homepage>
        <Packager>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A set of GStreamer plug-ins that aren't up to par compared to the rest
        <Description>GStreamer Bad Plug-ins is a set of plug-ins that aren't up to par compared to the rest. They might be close to being good quality, but they're missing something - be it a good code review, some documentation, a set of tests, a real live maintainer, or some actual wide use.</Description>
        <Archive sha1sum="bd04b95d86be0cb4827970fccfafe90f02f96032" type="tarxz">https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.10.3.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>orc-devel</Dependency>
            <Dependency>gsm-devel</Dependency>
            <Dependency>faac-devel</Dependency>
            <Dependency>gtk3-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
            <Dependency>webp-devel</Dependency>
            <Dependency>x265-devel</Dependency>
            <Dependency>faad2-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>mpg123-devel</Dependency>
            <Dependency>libdca-devel</Dependency>
            <Dependency>jasper-devel</Dependency>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>libexif-devel</Dependency>
            <Dependency>libopus-devel</Dependency>
            <Dependency>wayland-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>wayland-cursor</Dependency>
            <Dependency>libmpeg2-devel</Dependency>
            <Dependency>DirectFB-devel</Dependency>
            <Dependency>libvdpau-devel</Dependency>
            <Dependency>libtheora-devel</Dependency>
            <Dependency>libdvdnav-devel</Dependency>
            <Dependency>libsndfile-devel</Dependency>
            <Dependency>mjpegtools-devel</Dependency>
            <Dependency>soundtouch-devel</Dependency>
            <Dependency>libdvdread-devel</Dependency>
            <Dependency>llvm-clang-devel</Dependency>
            <Dependency>schroedinger-devel</Dependency>
            <Dependency>libvo-aacenc-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>libvo-amrwbenc-devel</Dependency>
            <Dependency>gstreamer-next-devel</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>gst-plugins-base-next-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>gst-plugins-bad-next</Name>
        <RuntimeDependencies>
            <Dependency>gsm</Dependency>
            <Dependency>orc</Dependency>
            <Dependency>faac</Dependency>
            <Dependency>gtk3</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>webp</Dependency>
            <Dependency>x265</Dependency>
            <Dependency>bzip2</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>faad2</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libdca</Dependency>
            <Dependency>libdrm</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libkms</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libopus</Dependency>
            <Dependency versionFrom="1.7.7">DirectFB</Dependency>
            <Dependency>libvdpau</Dependency>
            <Dependency>libdvdnav</Dependency>
            <Dependency>libdvdread</Dependency>
            <Dependency>libsndfile</Dependency>
            <Dependency>mjpegtools</Dependency>
            <Dependency>soundtouch</Dependency>
            <Dependency>libvo-aacenc</Dependency>
            <Dependency>schroedinger</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>gstreamer-next</Dependency>
            <Dependency>libvo-amrwbenc</Dependency>
            <Dependency>wayland-client</Dependency>
            <Dependency>gst-plugins-base-next</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="data">/usr/share/gstreamer-1.0</Path>
            <Path fileType="data">/usr/share/gst-plugins-bad/1.0/</Path>
            <Path fileType="doc">/usr/share/gtk-doc</Path>
            <Path fileType="data">/usr/share/gir-1.0/</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>gst-plugins-bad-next-devel</Name>
        Development files for gst-plugins-bad
        <RuntimeDependencies>
            <Dependency>gstreamer-next-devel</Dependency>
            <Dependency>gst-plugins-base-next-devel</Dependency>
            <Dependency release="current">gst-plugins-bad-next</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2017-03-05</Date>
            <Version>1.10.3</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2017-02-17</Date>
            <Version>1.10.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-13</Date>
            <Version>1.8.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-12</Date>
            <Version>1.8.1</Version>
            <Comment>Version bump</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-31</Date>
            <Version>1.6.3</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>gst-plugins-bad-next</Name>
        Diğer eklentilerle karşılaştırıldığında çok iyi durumda olmayan gstreamer eklentileri
        <Description xml:lang="tr">gst-plugins-bad, iyiye yakın kalitede olan ancak gerçek bir geliştirici, belgelendirme, test seti gibi eksikleri bulunan eklentilerdir.</Description>
    </Source>

    <Package>
        <Name>gst-plugins-bad-next-devel</Name>
        gst-plugins-bad için geliştirme dosyaları
    </Package>
</PISI>


code:
#!/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 shelltools
from pisi.actionsapi import get

def setup():
    shelltools.export("AUTOPOINT", "true")
    pisitools.dosed("autogen.sh", "tool_run.*autopoint --force.*")

    pisitools.dosed("ext/modplug/gstmodplug.cc", "stdafx.h", "libmodplug/stdafx.h")
    pisitools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS")

    shelltools.export("NOCONFIGURE", "1")
    shelltools.system("./autogen.sh")

    autotools.configure("--with-package-name='PisiLinux gstreamer-plugins-bad package' \
                         --with-package-origin='http://www.pisilinux.org'")

    # for fix unused dependency
    pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("ABOUT-NLS", "AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "RELEASE", "REQUIREMENTS")


code:
diff -ur gst-plugins-bad-0.10.23.orig/ext/directfb/dfb-example.c gst-plugins-bad-0.10.23/ext/directfb/dfb-example.c
--- ext/directfb/dfb-example.c	2011-12-11 20:49:11.000000000 +0200
+++ ext/directfb/dfb-example.c	2012-11-07 20:57:47.614763209 +0200
@@ -1,7 +1,7 @@

-#include <directfb.h>
 #include <stdio.h>
 #include <gst/gst.h>
+#include <directfb.h>

 static IDirectFB *dfb = NULL;
 static IDirectFBSurface *primary = NULL;