code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>liblastfm</Name>
        <Homepage>https://github.com/lastfm/liblastfm</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>library</IsA>
        A library for Last.fm integration
        <Description>liblastfm is a collection of libraries to help you integrate Last.fm services into your rich desktop software. It is officially supported software developed by Last.fm staff.</Description>
        <Archive sha1sum="4a6323538a26c5ea2080a8ebe58e4407dbc42397" type="targz">https://github.com/lastfm/liblastfm/archive/1.0.9.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>fftw3-devel</Dependency>
            <Dependency>qt5-sql-mysql</Dependency>
            <Dependency>qt5-sql-odbc</Dependency>
            <Dependency>qt5-sql-postgresql</Dependency>
            <Dependency>qt5-sql-sqlite</Dependency>
            <Dependency>libsamplerate-devel</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>liblastfm</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>qt5-base</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/liblastfm5.so*</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>liblastfm-devel</Name>
        A collection of libraries to help you integrate Last.fm services
        <RuntimeDependencies>
            <Dependency release="current">liblastfm</Dependency>
            <Dependency release="current">liblastfm_fingerprint</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <Package>
        <Name>liblastfm_fingerprint</Name>
        A collection of libraries to help you integrate Last.fm services
        <RuntimeDependencies>
            <Dependency release="current">liblastfm</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>libsamplerate</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>fftw3</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/liblastfm_fingerprint*</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-05-02</Date>
            <Version>1.0.9</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-27</Date>
            <Version>1.0.9</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>liblastfm</Name>
        Last.fm entegrasyonu sağlayan bir kitaplık
        <Description xml:lang="tr">liblastfm, masaüstü uygulamalarına Last.fm servislerini entegre etmeyi sağlayan kitaplıklardan oluşur. Last.fm geliştiricileri tarafından hazırlanmıştır.</Description>
    </Source>

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

    <Package>
        <Name>liblastfm_fingerprint</Name>
        Last.fm entegrasyonu kolaylaştıran kitaplık koleksiyonu
    </Package>
</PISI>

repo_name: ayhanyalcinsoy/main


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():
    pisitools.cflags.add("-ftree-vectorize -ftree-vectorizer-verbose=1")
    for i in ["NEWS", "AUTHORS", "ChangeLog"]:
        shelltools.touch(i)

    autotools.autoreconf("-vfi")

    autotools.configure("--disable-debugging \
                         --disable-static")

def build():
    autotools.make()

def install():
    autotools.install()

    pisitools.dodoc("CHANGES", "COPYRIGHT", "CREDITS", "README", "TODO", "VERSION")


code:
diff -Naur libmad-0.15.1b-orig/configure.ac libmad-0.15.1b/configure.ac
--- libmad-0.15.1b-orig/configure.ac	2007-06-30 20:22:31.000000000 -0600
+++ libmad-0.15.1b/configure.ac	2007-06-30 20:25:31.000000000 -0600
@@ -122,74 +122,74 @@
     esac
 done

-if test "$GCC" = yes
-then
-    if test -z "$arch"
-    then
-	case "$host" in
-	    i386-*)           ;;
-	    i?86-*)           arch="-march=i486" ;;
-	    arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
-	    armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
-	    powerpc-*)        ;;
-	    mips*-agenda-*)   arch="-mcpu=vr4100" ;;
-	    mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
-	esac
-    fi
-
-    case "$optimize" in
-	-O|"-O "*)
-	    optimize="-O"
-	    optimize="$optimize -fforce-mem"
-	    optimize="$optimize -fforce-addr"
-	    : #x optimize="$optimize -finline-functions"
-	    : #- optimize="$optimize -fstrength-reduce"
-	    optimize="$optimize -fthread-jumps"
-	    optimize="$optimize -fcse-follow-jumps"
-	    optimize="$optimize -fcse-skip-blocks"
-	    : #x optimize="$optimize -frerun-cse-after-loop"
-	    : #x optimize="$optimize -frerun-loop-opt"
-	    : #x optimize="$optimize -fgcse"
-	    optimize="$optimize -fexpensive-optimizations"
-	    optimize="$optimize -fregmove"
-	    : #* optimize="$optimize -fdelayed-branch"
-	    : #x optimize="$optimize -fschedule-insns"
-	    optimize="$optimize -fschedule-insns2"
-	    : #? optimize="$optimize -ffunction-sections"
-	    : #? optimize="$optimize -fcaller-saves"
-	    : #> optimize="$optimize -funroll-loops"
-	    : #> optimize="$optimize -funroll-all-loops"
-	    : #x optimize="$optimize -fmove-all-movables"
-	    : #x optimize="$optimize -freduce-all-givs"
-	    : #? optimize="$optimize -fstrict-aliasing"
-	    : #* optimize="$optimize -fstructure-noalias"
-
-	    case "$host" in
-		arm*-*)
-		    optimize="$optimize -fstrength-reduce"
-		    ;;
-		mips*-*)
-		    optimize="$optimize -fstrength-reduce"
-		    optimize="$optimize -finline-functions"
-		    ;;
-		i?86-*)
-		    optimize="$optimize -fstrength-reduce"
-		    ;;
-		powerpc-apple-*)
-		    # this triggers an internal compiler error with gcc2
-		    : #optimize="$optimize -fstrength-reduce"
-
-		    # this is really only beneficial with gcc3
-		    : #optimize="$optimize -finline-functions"
-		    ;;
-		*)
-		    # this sometimes provokes bugs in gcc 2.95.2
-		    : #optimize="$optimize -fstrength-reduce"
-		    ;;
-	    esac
-	    ;;
-    esac
-fi
+#if test "$GCC" = yes
+#then
+#    if test -z "$arch"
+#    then
+#	case "$host" in
+#	    i386-*)           ;;
+#	    i?86-*)           arch="-march=i486" ;;
+#	    arm*-empeg-*)     arch="-march=armv4 -mtune=strongarm1100" ;;
+#	    armv4*-*)         arch="-march=armv4 -mtune=strongarm" ;;
+#	    powerpc-*)        ;;
+#	    mips*-agenda-*)   arch="-mcpu=vr4100" ;;
+#	    mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
+#	esac
+#    fi
+#
+#    case "$optimize" in
+#	-O|"-O "*)
+#	    optimize="-O"
+#	    optimize="$optimize -fforce-mem"
+#	    optimize="$optimize -fforce-addr"
+#	    : #x optimize="$optimize -finline-functions"
+#	    : #- optimize="$optimize -fstrength-reduce"
+#	    optimize="$optimize -fthread-jumps"
+#	    optimize="$optimize -fcse-follow-jumps"
+#	    optimize="$optimize -fcse-skip-blocks"
+#	    : #x optimize="$optimize -frerun-cse-after-loop"
+#	    : #x optimize="$optimize -frerun-loop-opt"
+#	    : #x optimize="$optimize -fgcse"
+#	    optimize="$optimize -fexpensive-optimizations"
+#	    optimize="$optimize -fregmove"
+#	    : #* optimize="$optimize -fdelayed-branch"
+#	    : #x optimize="$optimize -fschedule-insns"
+#	    optimize="$optimize -fschedule-insns2"
+#	    : #? optimize="$optimize -ffunction-sections"
+#	    : #? optimize="$optimize -fcaller-saves"
+#	    : #> optimize="$optimize -funroll-loops"
+#	    : #> optimize="$optimize -funroll-all-loops"
+#	    : #x optimize="$optimize -fmove-all-movables"
+#	    : #x optimize="$optimize -freduce-all-givs"
+#	    : #? optimize="$optimize -fstrict-aliasing"
+#	    : #* optimize="$optimize -fstructure-noalias"
+#
+#	    case "$host" in
+#		arm*-*)
+#		    optimize="$optimize -fstrength-reduce"
+#		    ;;
+#		mips*-*)
+#		    optimize="$optimize -fstrength-reduce"
+#		    optimize="$optimize -finline-functions"
+#		    ;;
+#		i?86-*)
+#		    optimize="$optimize -fstrength-reduce"
+#		    ;;
+#		powerpc-apple-*)
+#		    # this triggers an internal compiler error with gcc2
+#		    : #optimize="$optimize -fstrength-reduce"
+#
+#		    # this is really only beneficial with gcc3
+#		    : #optimize="$optimize -finline-functions"
+#		    ;;
+#		*)
+#		    # this sometimes provokes bugs in gcc 2.95.2
+#		    : #optimize="$optimize -fstrength-reduce"
+#		    ;;
+#	    esac
+#	    ;;
+#    esac
+#fi

 case "$host" in
     mips*-agenda-*)


code:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: mad
Description: MPEG Audio Decoder
Requires:
Version: 0.15.0b
Libs: -L${libdir} -lmad -lm
Cflags: -I${includedir}


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmad</Name>
        <Homepage>http://mad.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        "M"peg "A"udio "D"ecoder library
        <Description>libmad is an audio decoder library for MPEG based content.</Description>
        <Archive sha1sum="cac19cd00e1a907f3150cc040ccc077783496d76" type="targz">mirrors://sourceforge/mad/libmad-0.15.1b.tar.gz</Archive>
        <Patches>
            <Patch level="0">amd64-64bit.diff</Patch>
            <Patch level="1">libmad-0.15.1b-cflags-O2.patch</Patch>
            <Patch level="1">libmad-0.15.1b-cflags.patch</Patch>
        </Patches>
    </Source>

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

    <Package>
        <Name>libmad-devel</Name>
        Development files for libmad
        <RuntimeDependencies>
            <Dependency release="current">libmad</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" target="/usr/lib/pkgconfig/mad.pc" permission="0644">mad.pc</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>0.15.1b</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.15.1b</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>0.15.1b</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>libmad</Name>
        Yüksek kaliteli MPEG ses çözücü kütüphanesi
        Librairie de "D"écompression "A"udio "M"peg ("M"peg "A"udio "D"ecoder")
        <Description xml:lang="tr">libmad MPEG tabanlı ses çözüm kitaplığıdır.</Description>
    </Source>

    <Package>
        <Name>libmad-devel</Name>
        libmad 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 libtools
from pisi.actionsapi import get

WorkDir = "%s-%s" % (get.srcNAME(), get.srcVERSION().replace("_", "-"))

def setup():
    shelltools.sym(".", "m4")
    shelltools.export("CFLAGS", "%s -DDRV_RAW" % get.CFLAGS())

    autotools.autoreconf("-vfi -Im4")
    libtools.gnuconfig_update()

    options = "--disable-esd \
               --disable-af \
               --disable-alsa \
               --enable-oss \
               --disable-static"

    if get.buildTYPE() == "emul32":
        options += " --bindir=/emul32/bin"

        shelltools.export("CFLAGS", "%s -DDRV_RAW -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)

def build():
    autotools.make()

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

    pisitools.dodoc("AUTHORS", "NEWS", "README", "TODO")
    pisitools.dohtml("docs/*.html")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmikmod</Name>
        <Homepage>http://mikmod.raphnet.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        A library to play a wide range of module formats
        <Description>libmikmod is a portable sound library, which used to be packaged with the MikMod module player, but is now released independentely. It is capable of playing samples as well as module files, using the OSS driver for output, as well as Alsa and EsounD. Supported module format include mod, s3m, xm, it, med, mtm and 669, to name a few.</Description>
        <Archive sha1sum="8006942c03165a66ffa9c0afbf2a2d7273d3bc78" type="targz">http://sourceforge.net/projects/mikmod/files/libmikmod/3.3.10/libmikmod-3.3.10.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>audiofile-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libmikmod</Name>
        <RuntimeDependencies>
            <Dependency>pulseaudio-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/libmikmod</Path>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>libmikmod-devel</Name>
        Development files for libmikmod
        <RuntimeDependencies>
            <Dependency release="current">libmikmod</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/libmikmod-config</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
        </Files>
    </Package>

    <Package>
        <Name>libmikmod-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for libmikmod
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>audiofile-32bit</Dependency>

            <Dependency>alsa-lib-32bit</Dependency>
            <Dependency>pulseaudio-libs-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">libmikmod</Dependency>
            <Dependency>audiofile-32bit</Dependency>
            <Dependency>alsa-lib-32bit</Dependency>
            <Dependency>pulseaudio-libs-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-18</Date>
            <Version>3.3.10</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>3.3.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-10-19</Date>
            <Version>3.3.7</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libmikmod</Name>
        Bir çok modül formatını çalabilen bir kitaplık
        <Description xml:lang="tr">libmikmod, MikMod modül çalıcısı ile kullanmılması amacıyla paketlenmiş bir taşınabilir ses kitaplığıdır, fakat artık bağımsız olarak dağıtılmaktadır. Ses örneklerini ses çıkışı için OSS sürücünü kullanarak çalabildiği gibi, Alsa ve EsounD için de kullanmaktadır. Desteklenen modül kipleri mod, s3m, xm, it, med, mtm ve 669 gibi kiplerdir.</Description>
        <Description xml:lang="fr">libmikmod est une librairie son portable, qui était habituellement emballée avec le lecteur de module MikMod, mais qui est maintenant livrée de manière indépendante. Elle est capable de jouer des échantillons ainsi que des fichiers modules, utilisant aussi bien le pilote OSS, Alsa ou EsounD pour la sortie. Les formats de module gérés comprennent entre autres mod, s3m, xm, it, med, mtm et 669.</Description>
        <Description xml:lang="es">libmikmod es ina librería portable de sonido, que solía estar incluido con el MikMod module player, pero ahora fue lanzado independientemente. Es capaz de reproducir archivos de sonidos y de módulos, usando para la salida tanto un controlador OSS, como también Alsa y EsounD. Formatos de módulos soportados abarcan mod, s3m, xm, it, med, mtm and 669, para nombrar algunos.</Description>
    </Source>

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

    <Package>
        <Name>libmikmod-32bit</Name>
        libmikmod için 32-bit paylaşımlı kitaplıklar
    </Package>
</PISI>


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

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

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--disable-dependency-tracking \
                         --disable-static")

def build():
    autotools.make()

def install():
    autotools.install()
    pisitools.dodoc("README", "NEWS", "TODO", "AUTHORS", "ChangeLog")


code:
Index: libmodplug-0.8.4/src/load_pat.cpp
===================================================================
--- libmodplug-0.8.4.orig/src/load_pat.cpp
+++ libmodplug-0.8.4/src/load_pat.cpp
@@ -53,8 +53,8 @@ typedef UWORD WORD;
 #define PATHFORPAT	"C:\\TIMIDITY\\INSTRUMENTS"
 #else
 #define DIRDELIM		'/'
-#define TIMIDITYCFG	"/usr/local/share/timidity/timidity.cfg"
-#define PATHFORPAT	"/usr/local/share/timidity/instruments"
+#define TIMIDITYCFG	"/usr/share/timidity/timidity.cfg"
+#define PATHFORPAT	"/usr/share/timidity/current"
 #endif

 #define PAT_ENV_PATH2CFG			"MMPAT_PATH_TO_CFG"


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmodplug</Name>
        <Homepage>http://modplug-xmms.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>Library for playing MOD-like music files</Summary>
        <Description>libmodplug is a library based on the mod rendering code from ModPlug, a popular windows mod player written by Olivier Lapicque.</Description>
        <Archive sha1sum="771ee75bb8bfcfe95eae434ed1f3b2c5b63b2cb3" type="targz">http://sourceforge.net/projects/modplug-xmms/files/libmodplug/0.8.8.5/libmodplug-0.8.8.5.tar.gz</Archive>
        <Patches>
            <Patch level="1">libmodplug-0.8.4-timidity-patches.patch</Patch>
        </Patches>
        <BuildDependencies>
            <Dependency>libgcc</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libmodplug</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
   </Package>

    <Package>
        <Name>libmodplug-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">libmodplug</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-17</Date>
            <Version>0.8.8.5</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>0.8.8.5</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>0.8.8.5</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>libmodplug</Name>
        MOD-like müzik dosyalarını çalmak için bir kütüphane
        Librairie pour jouer les fichiers son de type MOD.
    </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
import os

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

def build():
    autotools.make()

def install():
    autotools.install()


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmpcdec</Name>
        <Homepage>http://www.musepack.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        Portable Musepack decoder library
        <Description>Musepack is an audio compression format with a strong emphasis on high quality. It's not lossless, but it is designed for transparency, so that you won't be able to hear differences between the original wave file and the much smaller MPC file. It is based on the MPEG-1 Layer-2 / MP2 algorithms, but has rapidly developed and vastly improved and is now at an advanced stage in which it contains heavily optimized and patentless code.</Description>
        <Archive sha1sum="32139ff5cb43a18f7c99637da76703c63a55485a" type="tarbz2">http://files.musepack.net/source/libmpcdec-1.2.6.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>libmpcdec</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-02-18</Date>
            <Version>1.2.6</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.2.6</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>1.2.6</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>libmpcdec</Name>
        Musepack SV7 kodlama kitaplığı
        <Description xml:lang="tr">libmpcdec, taşınabilir bir Musepack kodlama kitaplığıdır.</Description>
        <Description xml:lang="fr">Librairie de décodage portable Musepack.</Description>
    </Source>

    <Package>
        <Name>libmpcdec-devel</Name>
        libmpcdec 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 pisitools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import get

def setup():
    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
                          -DCMAKE_INSTALL_PREFIX=/usr \
                          -DBUILD_WITH_QT4=OFF")

def build():
    cmaketools.make()

def install():
    cmaketools.install()

    pisitools.dodoc("AUTHORS", "LICENSE", "README*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmygpo-qt</Name>
        <Homepage>https://github.com/ase23/libmygpo-qt</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Qt Library that wraps the gpodder.net Web API
        <Description>libmygpo-qt is a Qt Library that wraps the gpodder.net Web API.</Description>
        <Archive sha1sum="3fb15358408da2ece836c1e8759013b107e26943" type="targz">https://github.com/gpodder/libmygpo-qt/archive/1.0.9.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>libqjson-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libmygpo-qt</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>qt5-base</Dependency>
            <Dependency>libqjson</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="1">
            <Date>2017-01-04</Date>
            <Version>1.0.9</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>libmygpo-qt</Name>
        gpodder.net Web API'sine ara yazılım sunan bir Qt kitaplığı
        <Description xml:lang="tr">libmygpo-qt, gpodder.net Web API'sine ara yazılım sunan bir Qt kitaplığıdır.</Description>
    </Source>

    <Package>
        <Name>libmygpo-qt-devel</Name>
        libmygpo-qt 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 pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import get

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

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libogg</Name>
        <Homepage>http://www.vorbis.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        The Ogg media file format library
        <Description>libogg is a library for manipulating Ogg bitstream file formats. libogg supports both making Ogg bitstreams and getting packets from Ogg bitstreams.</Description>
        <Archive sha1sum="5e525ec6a4135066932935c01d2c309ea5009f8d" type="tarxz">http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz</Archive>
    </Source>

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

    <Package>
        <Name>libogg-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">libogg</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="doc">/usr/share/doc/libogg/*html</Path>
            <Path fileType="doc">/usr/share/doc/libogg/*png</Path>
            <Path fileType="doc">/usr/share/doc/libogg/ogg</Path>
        </Files>
    </Package>

    <Package>
        <Name>libogg-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for libogg
        <BuildType>emul32</BuildType>
        <BuildDependencies>

        </BuildDependencies>
        <RuntimeDependencies>

            <Dependency release="current">libogg</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-06</Date>
            <Version>1.3.2</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.3.2</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.3.2</Version>
            <Comment>Version bump</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-20</Date>
            <Version>1.3.1</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>libogg</Name>
        Ogg dosya biçimi kütüphanesi
        <Description xml:lang="tr">libogg Ogg biçimli dosyalara erişmek için kullanılan bir kütüphanedir. Hem Ogg biçimli dosya oluşturmak için hem de Ogg dosyalarından paket ayıklamak için kullanılabilir.</Description>
        La librairie pour fichiers au format média Ogg.
    </Source>

    <Package>
        <Name>libogg-32bit</Name>
        libogg için 32-bit paylaşımlı kitaplıklar
    </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 libtools
from pisi.actionsapi import get

def setup():
    autotools.configure("--with-pic \
                         --enable-sndfile \
                         --disable-static \
                         --enable-shared \
                         --disable-fftw \
                         --disable-dependency-tracking")

    # Remove RPATH
    pisitools.dosed("libtool", "^hardcode_libdir_flag_spec=.*", "hardcode_libdir_flag_spec=\"\"")
    pisitools.dosed("libtool", "^runpath_var=LD_RUN_PATH", "runpath_var=DIE_RPATH_DIE")

def build():
    autotools.make()

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

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


code:
Index: libsamplerate-0.1.3/examples/Makefile.am
===================================================================
--- libsamplerate-0.1.3.orig/examples/Makefile.am
+++ libsamplerate-0.1.3/examples/Makefile.am
@@ -3,7 +3,7 @@

 bin_PROGRAMS = sndfile-resample

-noinst_PROGRAMS = varispeed-play timewarp-file
+EXTRA_PROGRAMS = varispeed-play timewarp-file

 SAMPLERATEDIR =../src
 INCLUDES = -I$(srcdir)/$(SAMPLERATEDIR) @OS_SPECIFIC_INCLUDES@
Index: libsamplerate-0.1.3/tests/Makefile.am
===================================================================
--- libsamplerate-0.1.3.orig/tests/Makefile.am
+++ libsamplerate-0.1.3/tests/Makefile.am
@@ -1,4 +1,4 @@
-noinst_PROGRAMS = misc_test termination_test simple_test callback_test \
+EXTRA_PROGRAMS = misc_test termination_test simple_test callback_test \
 					reset_test multi_channel_test snr_bw_test \
 					float_short_test varispeed_test callback_hang_test \
 					src-evaluate throughput_test
@@ -55,7 +55,7 @@ throughput_test_LDADD  = $(SAMPLRATEDIR)

 #===============================================================================

-check: $(noinst_PROGRAMS)
+check: $(EXTRA_PROGRAMS)
 	date
 	uname -a
 	./misc_test


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libsamplerate</Name>
        <Homepage>http://www.mega-nerd.com/SRC/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio
        <Description>Secret Rabbit Code is a sample rate converter for audio. It is capable of arbitrary and time varying conversions. It can downsample by a factor of 12 and upsample by the same factor. The ratio of input and output sample rates can be a real number. The conversion ratio can also vary with time for speeding up and slowing down effects.</Description>
        <Archive sha1sum="ed60f957a4ff87aa15cbb1f3dbd886fa7e5e9566" type="targz">http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsndfile-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">dontbuild-tests-examples.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libsamplerate</Name>
        <RuntimeDependencies>
            <Dependency>libsndfile</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libsamplerate-devel</Name>
        Development files for libsamplerate
        <RuntimeDependencies>
            <Dependency release="current">libsamplerate</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-06</Date>
            <Version>0.1.9</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>0.1.8</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>0.1.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>libsamplerate</Name>
        libsamplerate ses dosyaları için basit bir örnekleme oranı dönüştürücü
        Secret Rabbit Code (alias libsamplerate) est un convertisseur audio de taux de Sample (Sample Rate Converter).
        <Description xml:lang="tr">libsamplerate (Seceret Rabbit Code) ses dosyaları için basit bir örnekleme oranı dönüştürücüsüdür. Zaman ya da tercih edilen başka bir yapıya bağlı olarak 12 kata kadar dönüşüm yapabilir. Örnekleme oranı değiştirebildiği gibi hızlandırma ve yavaşlatma filtreleri de uygulayabilir.</Description>
    </Source>

    <Package>
        <Name>libsamplerate-devel</Name>
        libsamplerate için geliştirme dosyaları
        <Description xml:lang="tr">libsamplerate için geliştirme dosyaları</Description>
    </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 shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import libtools
from pisi.actionsapi import get

def setup():
    options = "--disable-static \
               --disable-sqlite \
               --enable-flac \
               --enable-alsa \
               --enable-largefile \
               --disable-gcc-pipe \
               --disable-jack \
               --disable-octave \
               --disable-gcc-werror \
               --disable-dependency-tracking"

    pisitools.dosed("examples/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS")
    pisitools.dosed("tests/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS")

    shelltools.unlink("M4/libtool.m4")

    for i in shelltools.ls("M4/lt*.m4"):
        shelltools.unlink(i)

    autotools.autoreconf("-fi -I M4")
    autotools.configure(options)

    pisitools.dosed("doc/Makefile", "^htmldocdir.*", "htmldocdir = /usr/share/doc/%s/html" % get.srcNAME())

def build():
    autotools.make()

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

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


code:
Index: libsndfile-1.0.17/configure.ac
===================================================================
--- libsndfile-1.0.17.orig/configure.ac
+++ libsndfile-1.0.17/configure.ac
@@ -268,6 +268,7 @@ else
 	fi

 AC_DEFINE_UNQUOTED([HAVE_SQLITE3],$HAVE_SQLITE3,[Set to 1 if you have libsqlite3.])
+AM_CONDITIONAL(HAVE_SQLITE3, [test "x$ac_cv_sqlite3" = "xyes"])

 #====================================================================================
 # Determine if the processor can do clipping on float to int conversions.
Index: libsndfile-1.0.17/regtest/Makefile.am
===================================================================
--- libsndfile-1.0.17.orig/regtest/Makefile.am
+++ libsndfile-1.0.17/regtest/Makefile.am
@@ -1,6 +1,8 @@
 ## Process this file with automake to produce Makefile.in

+if HAVE_SQLITE3
 bin_PROGRAMS = sndfile-regtest
+endif

 noinst_HEADERS = regtest.h


code:
This one fails on amd64; vorbis is lossy anyway so just increase the tolerance
for now.

Index: libsndfile-1.0.18/tests/floating_point_test.tpl
===================================================================
--- libsndfile-1.0.18.orig/tests/floating_point_test.tpl
+++ libsndfile-1.0.18/tests/floating_point_test.tpl
@@ -111,7 +111,7 @@ main (int argc, char *argv [])
 	float_scaled_test	("flac_16.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_16, -87.0) ;
 	float_scaled_test	("flac_24.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_24, -138.0) ;

-	float_scaled_test	("vorbis.oga", allow_exit, SF_FALSE, SF_FORMAT_OGG | SF_FORMAT_VORBIS, -31.0) ;
+	float_scaled_test	("vorbis.oga", allow_exit, SF_FALSE, SF_FORMAT_OGG | SF_FORMAT_VORBIS, -21.0) ;
 #endif

 	float_scaled_test	("replace_float.raw", allow_exit, SF_TRUE, SF_ENDIAN_LITTLE | SF_FORMAT_RAW | SF_FORMAT_FLOAT, -163.0) ;
@@ -163,7 +163,7 @@ main (int argc, char *argv [])
 	double_scaled_test	("flac_16.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_16, -87.0) ;
 	double_scaled_test	("flac_24.flac", allow_exit, SF_FALSE, SF_FORMAT_FLAC | SF_FORMAT_PCM_24, -138.0) ;

-	double_scaled_test	("vorbis.oga", allow_exit, SF_FALSE, SF_FORMAT_OGG | SF_FORMAT_VORBIS, -29.0) ;
+	double_scaled_test	("vorbis.oga", allow_exit, SF_FALSE, SF_FORMAT_OGG | SF_FORMAT_VORBIS, -19.0) ;
 #endif

 	double_scaled_test	("replace_double.raw", allow_exit, SF_TRUE, SF_FORMAT_RAW | SF_FORMAT_DOUBLE, -300.0) ;


code:
diff -Nur libsndfile-1.0.20-old/Makefile.am libsndfile-1.0.20/Makefile.am
--- libsndfile-1.0.20-old/Makefile.am	2009-06-01 15:18:00.043146693 +0300
+++ libsndfile-1.0.20/Makefile.am	2009-06-01 15:18:12.023269283 +0300
@@ -1,6 +1,7 @@
 ## Process this file with automake to produce Makefile.in

 DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-werror
+ACLOCAL_AMFLAGS = -I M4

 if BUILD_OCTAVE_MOD
 octave_dir = Octave


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libsndfile</Name>
        <Homepage>http://www.mega-nerd.com/libsndfile/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        A C library for reading and writing files containing sampled sound
        <Description>Libsndfile is a C library for reading and writing files containing sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format) through one standard library interface.</Description>
        <Archive sha1sum="e112d4937352d1722b06911b00c79e9bce15095c" type="targz">http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.27.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>flac-devel</Dependency>
            <Dependency>libogg-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">libsndfile-1.0.18-less_strict_tests.patch</Patch>
            <Patch level="1">libsndfile-1.0.17-regtests-need-sqlite.patch</Patch>

        </Patches>
    </Source>

    <Package>
        <Name>libsndfile</Name>
        <RuntimeDependencies>
            <Dependency>flac</Dependency>
            <Dependency>libogg</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>libvorbis</Dependency>
        </RuntimeDependencies>
        <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>
            <Path fileType="data">/usr/share/octave</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>libsndfile-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for libsndfile
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>flac-32bit</Dependency>
            <Dependency>alsa-lib-32bit</Dependency>
            <Dependency>libogg-32bit</Dependency>
            <Dependency>libvorbis-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>flac-32bit</Dependency>
            <Dependency>alsa-lib-32bit</Dependency>
            <Dependency>libogg-32bit</Dependency>
            <Dependency>libvorbis-32bit</Dependency>
            <Dependency release="current">libsndfile</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-06</Date>
            <Version>1.0.27</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.0.25</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>1.0.25</Version>
            <Comment>Release bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-25</Date>
            <Version>1.0.25</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>libsndfile</Name>
        Örneklenmiş ses verileri içeren dosyalar yazmak ve okumak için C dili kütüphanesi.
        <Description xml:lang="tr">Libsndfile, standart bir kütüphane arayüzü vasıtası ile (MS Windows WAV ve Apple/SGI AIFF biçimi gibi)örneklenmiş ses içeren dosyalar yazmak ve okumak için bir C dili kütüphanesidir.</Description>
        <Description xml:lang="fr">Libsndfile est une librairie C pour lire et écrire des fichiers contenant des échantillons sonores (tels que les fichiers aux formats MS Windows WAV et Apple/SGI AIFF) à travers une seule interface de librairie standard.</Description>
        <Description xml:lang="es">Libsndfile es una librería C de lectura y escritura para archivos de sonido (como MS Windows WAV y el formato Apple/SGI AIFF) con una interfaz estándar de libería.</Description>
    </Source>

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

    <Package>
        <Name>libsndfile-32bit</Name>
        libsndfile için 32-bit paylaşımlı kitaplıklar
    </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

def setup():
    autotools.configure("--enable-shared \
                         --disable-static \
                         --enable-nls \
                         --enable-threads")

def build():
    autotools.make()

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

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


code:
diff -Nur libvisual-0.4.0-old/libvisual/lv_cpu.c libvisual-0.4.0/libvisual/lv_cpu.c
--- libvisual-0.4.0-old/libvisual/lv_cpu.c	2008-06-16 04:58:57.000000000 +0300
+++ libvisual-0.4.0/libvisual/lv_cpu.c	2008-06-16 04:59:32.000000000 +0300
@@ -76,7 +76,7 @@

 /* The sigill handlers */
 #if defined(VISUAL_ARCH_X86) //x86 (linux katmai handler check thing)
-#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC)
+#if defined(VISUAL_OS_LINUX) && defined(_POSIX_SOURCE)
 static void sigill_handler_sse( int signal, struct sigcontext sc )
 {
 	/* Both the "xorps %%xmm0,%%xmm0" and "divps %xmm0,%%xmm1"
@@ -109,7 +109,7 @@
 	}
 }
 #endif
-#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE && X86_FXSR_MAGIC */
+#endif /* VISUAL_OS_LINUX && _POSIX_SOURCE */

 #if defined(VISUAL_OS_WIN32)
 LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep)
@@ -143,6 +143,7 @@

 static void check_os_altivec_support( void )
 {
+  return;
 #if defined(VISUAL_OS_DARWIN)
 	int sels[2] = {CTL_HW, HW_VECTORUNIT};
 	int has_vu = 0;


code:
diff -ru libvisual-0.4.0.orig/libvisual/lv_cache.c libvisual-0.4.0/libvisual/lv_cache.c
--- libvisual-0.4.0.orig/libvisual/lv_cache.c	2009-03-07 17:17:38.000000000 +0000
+++ libvisual-0.4.0/libvisual/lv_cache.c	2009-03-07 17:25:26.000000000 +0000
@@ -32,7 +32,7 @@
 static int cache_dtor (VisObject *object);
 static int cache_remove_list_entry (VisCache *cache, VisListEntry **le);

-static inline void handle_request_reset (VisCache *cache, VisListEntry *le);
+static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le);

 static int cache_dtor (VisObject *object)
 {
@@ -74,7 +74,7 @@
 }

-static inline void handle_request_reset (VisCache *cache, VisListEntry *le)
+static lv_inline void handle_request_reset (VisCache *cache, VisListEntry *le)
 {
 	VisCacheEntry *centry;

diff -ru libvisual-0.4.0.orig/libvisual/lv_defines.h libvisual-0.4.0/libvisual/lv_defines.h
--- libvisual-0.4.0.orig/libvisual/lv_defines.h	2009-03-07 17:17:38.000000000 +0000
+++ libvisual-0.4.0/libvisual/lv_defines.h	2009-03-07 17:24:17.000000000 +0000
@@ -63,13 +63,13 @@

 /* Compiler specific optimalization macros */
 #if __GNUC__ >= 3
-# define inline			inline __attribute__ ((always_inline))
+# define lv_inline		inline __attribute__ ((always_inline))
 # define __malloc		__attribute__ ((malloc))
 # define __packed		__attribute__ ((packed))
 # define VIS_LIKELY(x)		__builtin_expect (!!(x), 1)
 # define VIS_UNLIKELY(x)	__builtin_expect (!!(x), 0)
 #else
-# define inline			/* no inline */
+# define lv_inline		/* no inline */
 # define __malloc		/* no malloc */
 # define __packed		/* no packed */
 # define VIS_LIKELY(x)		(x)
diff -ru libvisual-0.4.0.orig/libvisual/lv_time.h libvisual-0.4.0/libvisual/lv_time.h
--- libvisual-0.4.0.orig/libvisual/lv_time.h	2009-03-07 17:17:38.000000000 +0000
+++ libvisual-0.4.0/libvisual/lv_time.h	2009-03-07 17:25:15.000000000 +0000
@@ -101,7 +101,7 @@
  *
  * @return Nothing.
  */
-static inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
+static lv_inline void visual_timer_tsc_get (uint32_t *lo, uint32_t *hi)
 {
 #if defined(VISUAL_ARCH_X86) || defined(VISUAL_ARCH_X86_64)
 	__asm __volatile
@@ -115,7 +115,7 @@
 }

 /* FIXME use uint64_t here, make sure type exists */
-static inline unsigned long long visual_timer_tsc_get_returned ()
+static lv_inline unsigned long long visual_timer_tsc_get_returned ()
 {
 	uint32_t lo, hi;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libvisual</Name>
        <Homepage>http://libvisual.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Abstraction library for audio visualisation plugins
        <Description>libvisual is an abstraction library that comes between applications and audio visualisation plugins.</Description>
        <Archive sha1sum="54beb3d3b7ce0dbec8e82015f732803b97d51c30" type="tarbz2">mirrors://sourceforge/libvisual/libvisual-0.4.0.tar.bz2</Archive>
        <Patches>
            <Patch level="1">disable_altivec.patch</Patch>
            <Patch level="1">libvisual-0.4.0-inlinedefineconflict.patch</Patch>
        </Patches>
        <BuildDependencies>

        </BuildDependencies>
    </Source>

    <Package>
        <Name>libvisual</Name>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

    <Package>
        <Name>libvisual-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for libvisual
        <BuildType>emul32</BuildType>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
        <RuntimeDependencies>
            <Dependency release="current">libvisual</Dependency>
        </RuntimeDependencies>
    </Package>

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

            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-18</Date>
            <Version>0.4.0</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>0.4.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>0.4.0</Version>
            <Comment>Release bump</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-20</Date>
            <Version>0.4.0</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>libvisual</Name>
        Ses canlandırma eklentileri için kütüphane
        <Description xml:lang="tr">libvisual, uygulamalar ve ses canlandırma eklentileri arasında yer alan bir soyutlama kütüphanesidir.</Description>
        <Description xml:lang="fr">Libvisual est une librairie d'abstraction venant entre les applications et les plugins (greffons) de visualisation audio.</Description>
        <Description xml:lang="es">Libvisual es una librería de abstracción que actúa entre aplicaciones y plugins con funciones audiovisuales.</Description>
    </Source>

    <Package>
        <Name>libvisual-devel</Name>
        libvisual 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 get

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

def build():
    autotools.make()

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

    pisitools.removeDir("/usr/share/doc")

    pisitools.dodoc("AUTHORS", "README", "todo.txt", "doc/*.txt")
    pisitools.dohtml("doc/*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libvorbis</Name>
        <Homepage>http://www.vorbis.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        The Vorbis general audio compression codec
        <Description>libvorbis is a fully open, non-proprietary, patent- and royalty-free, general-purpose compressed audio format for audio and music at fixed variable bitrates from 16 to 128 kbps/channel.</Description>
        <Archive sha1sum="7b4cdd4a73fadfed457ae40984cb0cc91146b300" type="tarxz">http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>libogg-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libvorbis</Name>
        <RuntimeDependencies>
            <Dependency>libogg</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/libvorbis/AUTHORS</Path>
            <Path fileType="doc">/usr/share/doc/libvorbis/README</Path>
        </Files>
    </Package>

    <Package>
        <Name>libvorbis-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">libvorbis</Dependency>
            <Dependency>libogg-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
            <Path fileType="doc">/usr/share/doc/libvorbis</Path>
        </Files>
    </Package>

    <Package>
        <Name>libvorbis-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for libvorbis
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libogg-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">libvorbis</Dependency>
            <Dependency>libogg-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-06</Date>
            <Version>1.3.5</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.3.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>1.3.4</Version>
            <Comment>Release bump</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-20</Date>
            <Version>1.3.4</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>libvorbis</Name>
        Vorbis genel ses sıkıştırma kodlaması
        <Description xml:lang="tr">libvorbis tamamen açık, sahipsiz, genel amaçlı sıkıştırılmış ses biçimidir.</Description>
        Librairie de formatage de fichier son Ogg Vorbis libre.
    </Source>

    <Package>
        <Name>libvorbis-32bit</Name>
        libvorbis için 32-bit paylaşımlı kitaplıklar
    </Package>
</PISI>


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

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

#This package using ltdl. .la files should be deleted only for plugins
KeepSpecial = ["libtool"]

def setup():
    cpu = "x86-64" if get.ARCH() == "x86_64" else "sse"

    pisitools.dosed("configure", "-faltivec")
    options = '--with-audio="alsa oss" \
               --with-cpu=%s \
               --with-optimization=2 \
               --enable-network=yes \
               --disable-ltdl-install' % cpu

    if get.buildTYPE() == "emul32":
        options += " --with-cpu=i586"
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())

    autotools.configure(options)

def build():
    autotools.make()

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

    if get.buildTYPE() == "emul32": return

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

    pisitools.remove("/usr/lib/libmpg123.la")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mpg123</Name>
        <Homepage>http://www.mpg123.de/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <License>LGPLv2</License>
        <IsA>app:console</IsA>
        Console MP3 player
        <Description>mpg123 is a fast and free console MP3 player. It does not require high system resources, it can even run in a 100MHz computer.</Description>
        <Archive sha1sum="799b9fe2beb5ae1c1769b10d011c0904f8e5273e" type="tarbz2">mirrors://sourceforge/mpg123/mpg123-1.23.8.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>alsa-lib-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>mpg123</Name>
        <RuntimeDependencies>
            <Dependency>alsa-lib</Dependency>
            <Dependency>libtool-ltdl</Dependency>
        </RuntimeDependencies>
        <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>mpg123-devel</Name>
        Development files for mpg123
        <RuntimeDependencies>
            <Dependency release="current">mpg123</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="library">/usr/lib32/pkgconfig</Path>
        </Files>
    </Package>

    <Package>
        <Name>mpg123-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for mpg123
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>alsa-lib-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">mpg123</Dependency>

        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-16</Date>
            <Version>1.23.8</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.22.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-13</Date>
            <Version>1.22.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>mpg123</Name>
        Gerçek zamanlı bir mp3 oynatıcı
        <Description xml:lang="tr">mpg123 düşük konfigürasyonlu sistemlerde de rahatlıkla çalışabilen hızlı bir mp3 oynatıcısıdır.</Description>
    </Source>

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

    <Package>
        <Name>mpg123-32bit</Name>
        mpg123 için 32-bit paylaşımlı kitaplıklar
    </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 build():
    shelltools.system("./build.sh \
                       -with-pthreads \
                       -enable-canvas \
                       -enable-system-cairo \
                       -enable-gio \
                       -with-system-zlib \
                       -enable-ffmpeg \
                       -prefix=/usr")

def install():
    shelltools.makedirs("%s/usr/share/" % get.installDIR())
    shelltools.copytree("compiled/dist", "%s/usr/share/nightingale" % get.installDIR())

    pisitools.insinto("/usr/share/pixmaps/", "app/branding/nightingale-512.png", "nightingale.png")
    pisitools.dosym("/usr/share/nightingale/nightingale-bin", "/usr/bin/nightingale")

    pisitools.dodoc("*.txt", "LICENSE", "README")


code:
[Desktop Entry]
Encoding=UTF-8
Version=1.12.2432
Name=Nightingale
GenericName=Nightingale Media Player
Comment=Nightingale Media Player
Icon=/usr/share/pixmaps/nightingale.xpm
Exec=/usr/bin/nightingale
Categories=Audio;Music;Player;AudioVideo
Type=Application
Terminal=false
X-KDE-StartupNotify=true
MultipleArgs=false


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>nightingale</Name>
        <Homepage>http://getnightingale.com/</Homepage>
        <Packager>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <Icon>nightingale</Icon>
        <IsA>app:gui</IsA>
        <PartOf>multimedia</PartOf>
        <Summary>A free and powerfull music player</Summary>
        <Description>Nightingale is a free and powerfull Open-source customizable music player.</Description>
        <Archive sha1sum="b276da7076d1961a9ca391df4df11eefcd6f4af2" type="targz">http://github.com/nightingale-media-player/nightingale-hacking/tarball/nightingale-1.12.1</Archive>
        <BuildDependencies>
            <Dependency>atk-devel</Dependency>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
            <Dependency>cairo-devel</Dependency>
            <Dependency>pango-devel</Dependency>
            <Dependency>libIDL-devel</Dependency>
            <Dependency>taglib-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>gstreamer-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>gdk-pixbuf-devel</Dependency>
            <Dependency>libXrender-devel</Dependency>
            <Dependency>gst-plugins-base-devel</Dependency>
            <Dependency>dbus-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>libnotify-devel</Dependency>
            <Dependency>zip</Dependency>
            <Dependency>unzip</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>dbus-glib-devel</Dependency>
         </BuildDependencies>
    </Source>

    <Package>
        <Name>nightingale</Name>
        <RuntimeDependencies>
            <Dependency>atk</Dependency>
            <Dependency>gtk2</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>cairo</Dependency>
            <Dependency>pango</Dependency>
            <Dependency>libIDL</Dependency>
            <Dependency>taglib</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>alsa-lib</Dependency>
            <Dependency>gstreamer</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>gdk-pixbuf</Dependency>
            <Dependency>libXrender</Dependency>
            <Dependency>gst-plugins-base</Dependency>
            <Dependency>dbus</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>freetype</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/applications</Path>
            <Path fileType="data">/usr/share/nightingale</Path>
            <Path fileType="data">/usr/share/pixmaps</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
	<AdditionalFiles>
            <AdditionalFile target="/usr/share/applications/nightingale.desktop" permission="0644" owner="root">nightingale.desktop</AdditionalFile>
            <AdditionalFile target="/usr/share/pixmaps/nightingale.xpm" permission="0644" owner="root">nightingale.xpm</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-02-18</Date>
            <Version>1.12.1</Version>
            <Comment>Rebuild.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-09-06</Date>
            <Version>1.12.1</Version>
            <Comment>First Release.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>nightingale</Name>
        Özgür ve güçlü bir müzik çalar
        Nightingale Media Player
        <Description xml:lang="tr">Nightingale, özgür ve güçlü , açık kaynak kodlu, özelleştirilebilir bir müzik çalardır.</Description>
        <Description xml:lang="en">Nightingale is a community based fork of the Songbird Media player distributed under the GNU GPL and portions (XULRunner and Mozilla libs) licensed under the Mozilla MPL/BSD license..</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 cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get

WorkDir = "openal-soft-%s" % get.srcVERSION()

def setup():
    options = "-DALSA=1 \
               -DPULSEAUDIO=1 \
               -DOSS=1 \
               -DEXAMPLES=OFF"

    if get.buildTYPE() == "emul32":
        options += " -DCMAKE_INSTALL_PREFIX=/emul32 \
                     -DLIB_SUFFIX=32"
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())

    cmaketools.configure(options)

def build():
    cmaketools.make()

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

    # is there any "libdir" prefix for cmake ?
    if get.buildTYPE() == "emul32":
        from distutils.dir_util import copy_tree
        copy_tree("%s/emul32/lib32/" % get.installDIR(), "%s/usr/lib32" % get.installDIR())
        pisitools.removeDir("/emul32")
        pisitools.dosed("%s/usr/lib32/pkgconfig/openal.pc" % get.installDIR(), "emul32", "usr")
        return

    pisitools.dodoc("COPYING", "alsoftrc.sample")


code:
--- OpenAL32/Include/alu.h.orig
+++ OpenAL32/Include/alu.h
@@ -224,6 +224,29 @@
     return a0*mu*mu2 + a1*mu2 + a2*mu + a3;
 }

+#if defined(_FPU_GETCW) && defined(_FPU_SETCW)
+ #ifndef _FPU_EXTENDED
+  #define _FPU_EXTENDED	0
+ #endif
+ #ifndef _FPU_DOUBLE
+  #define _FPU_DOUBLE	0
+ #endif
+ #ifndef _FPU_SINGLE
+  #define _FPU_SINGLE	0
+ #endif
+ #ifndef _FPU_RC_NEAREST
+  #define _FPU_RC_NEAREST	0
+ #endif
+ #ifndef _FPU_RC_DOWN
+  #define _FPU_RC_DOWN	0
+ #endif
+ #ifndef _FPU_RC_UP
+  #define _FPU_RC_UP	0
+ #endif
+ #ifndef _FPU_RC_ZERO
+  #define _FPU_RC_ZERO	0
+ #endif
+#endif

 static __inline int SetMixerFPUMode(void)
 {


code:
diff -Nur openal-soft-1.13-old//CMakeLists.txt openal-soft-1.13/CMakeLists.txt
--- openal-soft-1.13-old//CMakeLists.txt	2011-04-15 10:39:56.860000093 +0300
+++ openal-soft-1.13/CMakeLists.txt	2011-04-15 11:30:47.593000620 +0300
@@ -246,10 +246,10 @@
         MESSAGE(FATAL_ERROR "No sleep function found!")
     ENDIF()

-    CHECK_C_COMPILER_FLAG(-pthread HAVE_PTHREAD)
+    CHECK_C_COMPILER_FLAG(-lpthread HAVE_PTHREAD)
     IF(HAVE_PTHREAD)
-        ADD_DEFINITIONS(-pthread)
-        SET(EXTRA_LIBS ${EXTRA_LIBS} -pthread)
+        ADD_DEFINITIONS(-lpthread)
+        SET(EXTRA_LIBS ${EXTRA_LIBS} -lpthread)
     ENDIF()

     # We need pthreads outside of Windows


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>openal</Name>
        <Homepage>http://kcat.strangesoft.net/openal.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <IsA>library</IsA>
        Open Audio Library is a vendor-neutral API for interactive spatialized audio
        <Description>OpenAL is a cross-platform 3D audio API appropriate for use with gaming applications and many other types of audio applications. The basic OpenAL objects are a Listener, a Source, and a Buffer.</Description>
        <Archive sha1sum="5d6151b544caaf53a15b798a495308e421044b0d" type="tarbz2">http://kcat.strangesoft.net/openal-releases/openal-soft-1.17.2.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>pulseaudio-libs-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
        <Patches>

            <Patch level="0">no-fpuextended.patch</Patch>

        </Patches>
    </Source>

    <Package>
        <Name>openal</Name>
        <RuntimeDependencies>
            <Dependency>alsa-lib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/openal</Path>
            <Path fileType="data">/usr/share/openal</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>openal-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for openal
        <BuildType>emul32</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">openal</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-18</Date>
            <Version>1.17.2</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.15.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>1.15.1</Version>
            <Comment>Release bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-25</Date>
            <Version>1.15.1</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>openal</Name>
        Açık ses kütüphanesi
        <Description xml:lang="tr">OpenAL, oyun uygulamaları ve diğer birçok audio uygulama tipleriyle kullanılmaya tahsisli bir üç boyutlu audio API(Uygulama Programlama Arayüzü) çapraz platformudur.</Description>
        <Description xml:lang="fr">OpenAL est une API audio 3D multi-plateforme utilisable pour les jeux et beaucoup d'autre types d'application audio. Les objets de base d'OpenAL sont le Listener (auditeur), a Source (source), et le Buffer (tampon).</Description>
    </Source>

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

    <Package>
        <Name>openal-32bit</Name>
        openal için 32-bit paylaşımlı kitaplıklar
    </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():
    pisitools.dosed("Makefile", "(cat pogo.py) \| \$\(CONFIGURE_IN\)( > pogo;)", r"\1\2")

def build():
    autotools.make()

def install():
    autotools.install()
    pisitools.dodoc("NEWS.md", "README.md")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>pogo</Name>
        <Homepage>https://launchpad.net/pogo</Homepage>
        <Packager>
            <Name>Pisi Linux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:gui</IsA>
        <Summary>Probably the simplest and fastest audio player for Linux.</Summary>
        <Description>Pogo's elementary-inspired design uses the screen-space very efficiently. It is especially well-suited for people who organize their music by albums on the harddrive. The main interface components are a directory tree and a playlist that groups albums in an innovative way.Supported file formats include Ogg Vorbis, MP3, FLAC, Musepack, Wavpack, and MPEG-4 AAC. Pogo is a fork of Decibel Audio Player.</Description>
        <Archive sha1sum="9c78cf102e23b8817fa8811c1e612bf495b2a587" type="targz">https://github.com/jendrikseipp/pogo/archive/v0.9.tar.gz</Archive>
    </Source>

    <Package>
        <Name>pogo</Name>
        <RuntimeDependencies>
            <Dependency>python</Dependency>
            <Dependency>python-gtk</Dependency>
            <Dependency>python-mutagen</Dependency>
            <Dependency>python-imaging</Dependency>
            <Dependency>gst-python</Dependency>
            <Dependency>notify-python</Dependency>
            <Dependency>gst-plugins-base</Dependency>
            <Dependency>gst-plugins-good</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-18</Date>
            <Version>0.9</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-08-06</Date>
            <Version>0.8.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-16</Date>
            <Version>0.8.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-12-22</Date>
            <Version>0.8.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>pogo</Name>
        <Summary xml:lang="en">Probably the simplest and fastest audio player for Linux.</Summary>
        <Description xml:lang="en">Pogo's elementary-inspired design uses the screen-space very efficiently. It is especially well-suited for people who organize their music by albums on the harddrive. The main interface components are a directory tree and a playlist that groups albums in an innovative way.Supported file formats include Ogg Vorbis, MP3, FLAC, Musepack, Wavpack, and MPEG-4 AAC. Pogo is a fork of Decibel Audio Player.</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
from pisi.actionsapi import get

WorkDir = "portaudio"

def setup():
    autotools.configure("--disable-static --prefix=/usr")

def build():
    autotools.make()

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

    pisitools.dodoc("LICENSE.txt", "README.txt")


code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">

<PISI>
    <Source>
        <Name>portaudio</Name>
        <Homepage>http://www.portaudio.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        Portable audio library
        <Description>PortAudio is a free, cross platform, open-source, audio I/O library.</Description>
        <Archive type="targz" sha1sum="56c596bba820d90df7d057d8f6a0ec6bf9ab82e8">http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz</Archive>
        <BuildDependencies>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>jack-audio-connection-kit-devel</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>portaudio</Name>
        <RuntimeDependencies>
            <Dependency>alsa-lib</Dependency>
            <Dependency>jack-audio-connection-kit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-02-18</Date>
            <Version>190600.20161030</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>19.20140130</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-21</Date>
            <Version>19.20140130</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>portaudio</Name>
        Ses kütüphanesi
        <Description xml:lang="tr">Birden çok platformda kullanılabilinen açıkkodlu ses kütüphanesi</Description>
        <Description xml:lang="fr">Une API audio multi-plateforme libre.</Description>
    </Source>

    <Package>
        <Name>portaudio-devel</Name>
        portaudio 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 shelltools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get

shelltools.export("JAVAC","/usr/lib/jvm/java-7-openjdk/bin/javac")
shelltools.export("JAVA_HOME","/usr/lib/jvm/java-7-openjdk")

def setup():
    cmaketools.configure("-DCMAKE_SKIP_BUILD_RPATH=1 \
                          -DLIB_INSTALL_DIR=/usr/lib \
                          -DCMAKE_BUILD_TYPE=Release \
                          -DCMAKE_CACHEFILE_DIR=%s/build \
                          -DINCLUDE_INSTALL_DIR=/usr/include \
                          -DVERSION=%s" % (get.curDIR(), get.srcVERSION()))

def build():
    autotools.make()
    shelltools.system("./build-pyportmidi")

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

    pisitools.insinto("/usr/include", "pm_common/pmutil.h")
    shelltools.chmod("%s/usr/include/pmutil.h" % get.installDIR(), mode=0644)

    # Fix missing symlink for libporttime.so (FS#21528).
    pisitools.dosym("/usr/lib/libportmidi_s.a", "/usr/lib/libportmidi.a")
    pisitools.dosym("/usr/lib/libportmidi.so", "/usr/lib/libporttime.so")
    pisitools.dosym("/usr/lib/libportmidi.a", "/usr/lib/libporttime.a")

    # Install test applications
    for app in ["latency", "midithread", "midithru", "mm", "qtest", "sysex", "test"]:
        pisitools.insinto("/usr/bin", "build/Release/%s" % app, "portmidi-%s" % app)

    # Build and Install python module
    pisitools.dodir("/usr/lib/%s/site-packages/pyportmidi" % get.curPYTHON())
    pisitools.dolib("pm_python/pyportmidi/_pyportmidi.so", "/usr/lib/%s/site-packages/pyportmidi" % get.curPYTHON())
    pisitools.insinto("/usr/lib/%s/site-packages/pyportmidi" % get.curPYTHON(), "pm_python/pyportmidi/*.py")

    pisitools.dodoc("CHANGELOG.txt", "license.txt", "README.txt")


code:
#!/bin/bash

PYTHON_VER=$(python -c "from sys import version; print (version[:3])")
PYTHON_INC=$(python -c "from distutils.sysconfig import get_python_inc; print get_python_inc()")

pushd pm_python/pyportmidi

${CC} ${CFLAGS} -pthread -fPIC -c -o _pyportmidi.o -I../../pm_common -I../../porttime -I$PYTHON_INC _pyportmidi.c
${CC} -shared -o _pyportmidi.so _pyportmidi.o -lportmidi -lpython$PYTHON_VER -L../../build/Release
popd


code:
Index: portmidi/pm_common/CMakeLists.txt
===================================================================
--- portmidi.orig/pm_common/CMakeLists.txt
+++ portmidi/pm_common/CMakeLists.txt
@@ -120,8 +120,8 @@ set_target_properties(pmjni PROPERTIES E
 # install the libraries (Linux and Mac OS X command line)
 if(UNIX)
   INSTALL(TARGETS portmidi-static pmjni
-    LIBRARY DESTINATION /usr/local/lib
-    ARCHIVE DESTINATION /usr/local/lib)
+    LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+    ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
 # .h files installed by pm_dylib/CMakeLists.txt, so don't need them here
 #  INSTALL(FILES portmidi.h ../porttime/porttime.h
 #    DESTINATION /usr/local/include)
Index: portmidi/pm_dylib/CMakeLists.txt
===================================================================
--- portmidi.orig/pm_dylib/CMakeLists.txt
+++ portmidi/pm_dylib/CMakeLists.txt
@@ -59,7 +59,7 @@ if(UNIX)

     set(JAVAVM_LIB "${FRAMEWORK_PATH}/JavaVM.framework")
     set(JAVA_INCLUDE_PATHS ${JAVAVM_LIB}/Headers)
-    set(INSTALL_NAME_DIR "/usr/local/lib")
+    set(INSTALL_NAME_DIR ${LIB_INSTALL_DIR})
     message(STATUS "SYSROOT: " ${CMAKE_OSX_SYSROOT})
   else(APPLE)
     # LINUX settings...
@@ -75,11 +75,7 @@ if(UNIX)
     # JAVA_INCLUDE_PATH2; if no, then we need to make both JAVA_INCLUDE_PATH
     # and JAVA_INCLUDE_PATH2 set by user (will need clear documentation
     # because JAVA_INCLUDE_PATH2 is pretty obscure)
-    set(JAVA_INCLUDE_PATH  ${JAVA_INCLUDE_PATH-UNKNOWN}
-        CACHE STRING "where to find Java SDK include directory")
-    set(JAVA_INCLUDE_PATHS ${JAVA_INCLUDE_PATH} ${JAVA_INCLUDE_PATH}/linux)
-    # libjvm.so is found relative to JAVA_INCLUDE_PATH:
-    set(JAVAVM_LIB ${JAVA_INCLUDE_PATH}/../jre/lib/i386/client/libjvm.so)
+    set(JAVAVM_LIB ${JAVA_JVM_LIBRARY})

     set(LINUXSRC pmlinuxalsa pmlinux finddefault)
     prepend_path(LIBSRC ../pm_linux/ ${LINUXSRC})
@@ -114,14 +110,14 @@ prepend_path(SHARED_PATHS ../pm_common/
 list(APPEND LIBSRC ${SHARED_PATHS})

 add_library(portmidi-dynamic SHARED ${LIBSRC})
-set_target_properties(portmidi-dynamic PROPERTIES OUTPUT_NAME "portmidi")
+set_target_properties(portmidi-dynamic PROPERTIES LINK_FLAGS "-L${CMAKE_CACHEFILE_DIR}/Release" SOVERSION 0 VERSION 0.${VERSION} OUTPUT_NAME "portmidi")
 target_link_libraries(portmidi-dynamic ${PM_NEEDED_LIBS})

 # install the libraries (Linux and Mac OS X command line)
 if(UNIX)
   INSTALL(TARGETS portmidi-dynamic
-    LIBRARY DESTINATION /usr/local/lib
-    ARCHIVE DESTINATION /usr/local/lib)
+    LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+    ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
   INSTALL(FILES ../pm_common/portmidi.h ../porttime/porttime.h
-    DESTINATION /usr/local/include)
+    DESTINATION ${INCLUDE_INSTALL_DIR})
 endif(UNIX)
Index: portmidi/pm_java/CMakeLists.txt
===================================================================
--- portmidi.orig/pm_java/CMakeLists.txt
+++ portmidi/pm_java/CMakeLists.txt
@@ -41,7 +41,7 @@ if(UNIX)
     INSTALL(FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults.jar
       DESTINATION /usr/share/java)
     INSTALL(PROGRAMS ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/pmdefaults
-      DESTINATION /usr/local/bin)
+      DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
   endif(APPLE)
 endif(UNIX)
 # In windows, use pm_java/make.bat
Index: portmidi/pm_test/CMakeLists.txt
===================================================================
--- portmidi.orig/pm_test/CMakeLists.txt
+++ portmidi/pm_test/CMakeLists.txt
@@ -12,7 +12,7 @@ endif(WIN32)

 macro(make_a_test name)
   add_executable(${name} ${name}.c)
-  target_link_libraries(${name} portmidi-static ${PM_NEEDED_LIBS})
+  target_link_libraries(${name} portmidi-dynamic)
   add_dependencies(${name} portmidi-static)
 endmacro(make_a_test)

Index: portmidi/CMakeLists.txt
===================================================================
--- portmidi.orig/CMakeLists.txt
+++ portmidi/CMakeLists.txt
@@ -71,7 +71,3 @@ add_subdirectory(pm_common)
 add_subdirectory(pm_test)

 add_subdirectory(pm_dylib)
-
-# Cannot figure out how to make an xcode Java application with CMake
-add_subdirectory(pm_java)
-


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>portmidi</Name>
        <Homepage>http://portmedia.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Real-time MIDI I/O library
        <Description>PortMedia is a set of simple clean APIs and cross-platform library implementations for music and other media. PortMidi sub-project provides a real-time MIDI input/output library. This package contains the PortMidi libraries.</Description>
        <Archive sha1sum="f45bf4e247c0d7617deacd6a65d23d9fddae6117" type="zip">mirrors://sourceforge/portmedia/portmidi-src-217.zip</Archive>
        <AdditionalFiles>
            <AdditionalFile target="build-pyportmidi" permission="0755">build-pyportmidi</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>python-devel</Dependency>
            <Dependency>jdk7-openjdk</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">portmidi-cmake.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>portmidi</Name>
        <RuntimeDependencies>
            <Dependency>alsa-lib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

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

    <History>
        <Update release="2">
            <Date>2017-02-18</Date>
            <Version>217</Version>
            <Comment>Rebuild.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-11-21</Date>
            <Version>217</Version>
            <Comment>First Release</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>portmidi</Name>
        Gerçek zamanlı MIDI G/Ç kitaplığı
        <Description xml:lang="tr">portmidi, PortMedia projesinin gerçek zamanlı MIDI girdi/çıktı kitaplığıdır.</Description>
    </Source>

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

    <Package>
        <Name>python-portmidi</Name>
        portmidi için python bağlayıcısı
    </Package>
</PISI>