code:
diff -Npur libspnav-0.2.2.orig/Makefile.in libspnav-0.2.2/Makefile.in
--- libspnav-0.2.2.orig/Makefile.in	2012-01-31 22:34:01.448356249 +0100
+++ libspnav-0.2.2/Makefile.in	2012-01-31 22:39:20.229350669 +0100
@@ -7,7 +7,8 @@ lib_so = $(soname).1

 CC = gcc
 AR = ar
-CFLAGS = $(opt) $(dbg) -std=c89 -fpic -pedantic -Wall -fno-strict-aliasing -I.
+CFLAGS = $(opt) -fpic -I.
+LDFLAGS = $(ldopt) -shared -Wl,-soname,$(soname)

 .PHONY: all
 all: $(lib_a) $(lib_so)
@@ -16,7 +17,7 @@ $(lib_a): $(obj)
 	$(AR) rcs $@ $(obj)

 $(lib_so): $(obj)
-	$(CC) -shared -Wl,-soname,$(soname) -o $@ $(obj)
+	$(CC) $(LDFLAGS) -o $@ $(obj)

 %.o: $(srcdir)/%.c
 	$(CC) $(CFLAGS) -c $< -o $@
diff -Npur libspnav-0.2.2.orig/configure libspnav-0.2.2/configure
--- libspnav-0.2.2.orig/configure	2012-01-31 22:34:01.448356249 +0100
+++ libspnav-0.2.2/configure	2012-01-31 22:34:39.703355615 +0100
@@ -4,6 +4,7 @@ echo 'configuring spacenav library...'

 PREFIX=/usr/local
 OPT=yes
+LDOPT=yes
 DBG=yes
 X11=yes

@@ -26,6 +27,11 @@ for arg; do
 	--disable-opt)
 		OPT=no;;

+	--enable-ldopt)
+		LDOPT=yes;;
+	--disable-ldopt)
+		LDOPT=no;;
+
 	--enable-debug)
 		DBG=yes;;
 	--disable-debug)
@@ -44,6 +50,8 @@ for arg; do
 		echo '  --disable-x11: disable X11 communication mode'
 		echo '  --enable-opt: enable speed optimizations (default)'
 		echo '  --disable-opt: disable speed optimizations'
+		echo '  --enable-ldopt: enable link optimizations (default)'
+		echo '  --disable-ldopt: disable link optimizations'
 		echo '  --enable-debug: include debugging symbols (default)'
 		echo '  --disable-debug: do not include debugging symbols'
 		echo 'all invalid options are silently ignored'
@@ -54,6 +62,7 @@ done

 echo "  prefix: $PREFIX"
 echo "  optimize for speed: $OPT"
+echo "  optimize link: $LDOPT"
 echo "  include debugging symbols: $DBG"
 echo "  x11 communication method: $X11"
 echo ""
@@ -74,7 +83,11 @@ if [ "$DBG" = 'yes' ]; then
 fi

 if [ "$OPT" = 'yes' ]; then
-	echo 'opt = -O3' >>Makefile
+	echo "opt = ${CFLAGS:--O3}" >>Makefile
+fi
+
+if [ "$LDOPT" = 'yes' ]; then
+	echo "ldopt = ${LDFLAGS}" >>Makefile
 fi

 if [ "$X11" = 'yes' ]; then


code:
diff -Npur libspnav-0.2.2.orig/Makefile.in libspnav-0.2.2/Makefile.in
--- libspnav-0.2.2.orig/Makefile.in	2012-01-31 22:40:36.619349333 +0100
+++ libspnav-0.2.2/Makefile.in	2012-01-31 22:41:52.554347975 +0100
@@ -11,7 +11,7 @@ CFLAGS = $(opt) -I.
 LDFLAGS = $(ldopt) -shared -Wl,-soname,$(soname)

 .PHONY: all
-all: $(lib_a) $(lib_so)
+all: $(lib_so)

 $(lib_a): $(obj)
 	$(AR) rcs $@ $(obj)
@@ -31,10 +31,10 @@ distclean:
 	rm -f $(obj) $(lib_a) $(lib_so) Makefile

 .PHONY: install
-install: $(lib_a) $(lib_so)
-	cp $(lib_a) $(PREFIX)/$(libdir)/$(lib_a)
-	cp $(lib_so) $(PREFIX)/$(libdir)/$(lib_so)
-	for h in $(hdr); do cp -p $(srcdir)/$$h $(PREFIX)/include/; done
+install: $(lib_so)
+	mkdir -p $(DESTDIR)$(PREFIX)/$(libdir) $(DESTDIR)$(PREFIX)/include
+	cp $(lib_so) $(DESTDIR)$(PREFIX)/$(libdir)/$(lib_so)
+	for h in $(hdr); do cp -p $(srcdir)/$$h $(DESTDIR)$(PREFIX)/include/; done

 .PHONY: uninstall
 uninstall:

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libspnav</Name>
        <Homepage>http://spacenav.sourceforge.net</Homepage>
        <Packager>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        Open source alternative to 3DConnextion drivers
        <Description>The spacenav project provides a free compatible alternative, to the proprietary 3Dconnexion device driver and SDK, for their 6dof space navigation input devices. It provides both a replacement free user-space driver, and a replacement SDK library.</Description>
        <Archive sha1sum="e308344cc2c86bb3f01cca308261a35aaa8c6318" type="targz">http://downloads.sourceforge.net/spacenav/libspnav-0.2.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libX11-devel</Dependency>
        </BuildDependencies>
        <Patches>

          <Patch>Makefile.patch</Patch>
        </Patches>
    </Source>

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

    <Package>
        <Name>libspnav-devel</Name>
        Development files for libspnav
        <RuntimeDependencies>
            <Dependency release="current">libspnav</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/libspnav.so</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-08</Date>
            <Version>0.2.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.2.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-09-16</Date>
            <Version>0.2.3</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libspnav</Name>
        Open source alternative to 3DConnextion drivers
        <Description xml:lang="en">The spacenav project provides a free compatible alternative, to the proprietary 3Dconnexion device driver and SDK, for their 6dof space navigation input devices. It provides both a replacement free user-space driver, and a replacement SDK library.</Description>
    </Source>

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

WorkDir = "ZenLib/Project/GNU/Library"

def setup():
    libtools.libtoolize("--automake")
    autotools.aclocal()
    autotools.automake("-afc")
    autotools.autoconf()
    autotools.configure("--disable-static --enable-shared")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dosed("libzen.pc", "^(Version:).*", r"\1 %s" % get.srcVERSION())
    pisitools.dosed("libzen.pc", "^Libs_Static.*$")
    pisitools.dodir("/usr/lib/pkgconfig")
    pisitools.insinto("/usr/lib/pkgconfig", "libzen.pc")
    shelltools.cd("../../../")
    pisitools.dodoc("*.txt")
    shelltools.cd("Source/ZenLib")
    pisitools.dodir("/usr/include/ZenLib")
    pisitools.insinto("/usr/include/ZenLib", "*.h")
    for it in ["HTTP_Client", "Format/Html", "Format/Http"]:
        pisitools.dodir("/usr/include/ZenLib/%s" % it)
        pisitools.insinto("/usr/include/ZenLib/%s" % it, "%s/*.h" % it)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libzen</Name>
        <Homepage>http://sourceforge.net/projects/zenlib/</Homepage>
        <Packager>
            <Name>Pisi Linux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>ZLIB</License>
        <License>as-is</License>
        <IsA>app:console</IsA>
        <Summary>Small C++ derivate class to have a simpler life.</Summary>
        <Description>shared library for libmediainfo and mediainfo</Description>
        <Archive sha1sum="4aaed2222ad7286ac7b8eff66e1439b9df8c0c29" type="tarbz2">https://mediaarea.net/download/source/libzen/0.4.35/libzen_0.4.35.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>libzen</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>

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

    <Package>
        <Name>libzen-devel</Name>
        <RuntimeDependencies>
            <Dependency release="current">libzen</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/libzen-config</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="library">/usr/lib/libzen.so</Path>
            <Path fileType="header">/usr/include/ZenLib</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-08</Date>
            <Version>0.4.35</Version>
            <Comment>Version bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-11-24</Date>
            <Version>0.4.31</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>libzen_0</Name>
        <Summary xml:lang="en">Small C++ derivate class to have a simpler life.</Summary>
        <Description xml:lang="en">shared library for libmediainfo and mediainfo</Description>
    </Source>
</PISI>


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

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

WorkDir = "MediaInfo"

def setup():
    for it in ["Project/GNU/CLI", "../GUI"]:
        configure_args = " --with-wxwidgets --with-wx-gui" if it.endswith('GUI') else ""
        shelltools.cd(it)
        libtools.libtoolize("--automake")
        autotools.aclocal()
        autotools.automake("-afc")
        autotools.autoconf()
        autotools.configure("--disable-static%s" % configure_args)

def build():
    for it in ["Project/GNU/CLI", "../GUI"]:
        shelltools.cd(it)
        autotools.make("-j1")

def install():
    pisitools.dodoc("*.txt")
    pisitools.dohtml("*.html")
    pisitools.insinto("/usr/share/pixmaps", "Source/Resource/Image/MediaInfo.png", "mediainfo.png")
    pisitools.insinto("/usr/share/icons/hicolor/128x128/apps/", "Source/Resource/Image/MediaInfo.png", "mediainfo.png")
    for it in ["Project/GNU/CLI", "../GUI"]:
        shelltools.cd(it)
        autotools.install()
        if it.endswith('GUI'): pisitools.insinto("/usr/share/applications", "mediainfo-gui.kde4.desktop")


code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Mediainfo
GenericName=Mediainfo
GenericName[de]=Mediainfo
Comment=Supplies technical and tag information about a video or audio file
Comment[de]=Infotool für Mediadateien (Auflösung, Codec, ...)
Comment[fr]=fournit des informations techniques et les tags à propos de vos fichiers video et audio
Comment[pl]=Informacje techniczne o plikach multimedialnych.
Icon=mediainfo.png
Exec=mediainfo-gui %f
Categories=AudioVideo;AudioVideoEditing;
Type=Application
Terminal=false
MultipleArgs=false


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mediainfo</Name>
        <Homepage>http://mediaarea.net/en/MediaInfo</Homepage>
        <Packager>
            <Name>Pisi Linux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv3</License>
        <IsA>app:gui</IsA>
        <Summary>MediaInfo supplies technical and tag information about mediafiles</Summary>
        <Description>MediaInfo supplies technical and tag information about a video or audio file. It is free software (free of charge and free access to source code: GPL or LGPL licence)</Description>
        <Archive sha1sum="6e629a168e6a66ce7ec34a84f5e20aa9244ace4c" type="tarbz2">https://mediaarea.net/download/source/mediainfo/0.7.94/mediainfo_0.7.94.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>libtool</Dependency>
            <Dependency>autoconf</Dependency>
            <Dependency>automake</Dependency>
            <Dependency>libzen-devel</Dependency>
            <Dependency>libzen-devel</Dependency>
            <Dependency>libmediainfo-devel</Dependency>
            <Dependency>wxGTK-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>mediainfo</Name>
        <RuntimeDependencies>
            <Dependency>wxGTK</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libzen</Dependency>
            <Dependency>libmediainfo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin/</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc/</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/mediainfo.desktop">mediainfo.desktop</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-09</Date>
            <Version>0.7.94</Version>
            <Comment>Version bump.</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-12-02</Date>
            <Version>0.7.90</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-12-20</Date>
            <Version>0.7.65</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>mediainfo</Name>
        <Summary xml:lang="en">MediaInfo supplies technical and tag information about mediafiles</Summary>
        <Description xml:lang="en">MediaInfo supplies technical and tag information about a video or audio file. It is free software (free of charge and free access to source code: GPL or LGPL licence)</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 get

def setup():
    cmaketools.configure()

def build():
    cmaketools.make()

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

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


code:
Submitted By:            Armin K. <krejzi at email dot com>
Date:                    2012-09-01
Initial Package Version: 5.0.1
Upstream Status:         Fixed upstream
Origin:                  Upstream
Description:             Fixes out-of-source-tree build.

diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 3e11469..000d4aa 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,4 +1,7 @@
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../include)
+INCLUDE_DIRECTORIES(
+	${CMAKE_CURRENT_SOURCE_DIR}/../include
+	${CMAKE_CURRENT_BINARY_DIR}/../include
+)
 LINK_LIBRARIES(musicbrainz5 ${NEON_LIBRARIES})

 ADD_EXECUTABLE(cdlookup cdlookup.cc)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2ee102f..89ab63c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,5 +1,10 @@
 SET(CMAKE_INCLUDE_CURRENT_DIR ON)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../include ${NEON_INCLUDE_DIR})
+INCLUDE_DIRECTORIES(
+	${CMAKE_CURRENT_SOURCE_DIR}/..
+	${CMAKE_CURRENT_SOURCE_DIR}/../include
+	${CMAKE_CURRENT_BINARY_DIR}/../include
+	${NEON_INCLUDE_DIR}
+)

 SET(_sources Alias.cc Annotation.cc Artist.cc ArtistCredit.cc Attribute.cc CDStub.cc Collection.cc
 	Disc.cc Entity.cc FreeDBDisc.cc HTTPFetch.cc ISRC.cc Label.cc LabelInfo.cc Lifespan.cc List.cc
@@ -13,7 +18,7 @@ ADD_EXECUTABLE(make-c-interface make-c-interface.cc xmlParser.cpp)
 ADD_CUSTOM_COMMAND(
 	OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/mb5_c.cc ${CMAKE_CURRENT_BINARY_DIR}/mb5_c.h ${CMAKE_CURRENT_BINARY_DIR}/../include/musicbrainz5/mb5_c.h
 	COMMAND make-c-interface ${CMAKE_CURRENT_SOURCE_DIR} cinterface.xml ${CMAKE_CURRENT_BINARY_DIR} mb5_c.cc mb5_c.h
-	COMMAND ${CMAKE_COMMAND} -E copy_if_different 	${CMAKE_CURRENT_BINARY_DIR}/mb5_c.h ${CMAKE_CURRENT_BINARY_DIR}/../include/musicbrainz5
+	COMMAND ${CMAKE_COMMAND} -E copy_if_different 	${CMAKE_CURRENT_BINARY_DIR}/mb5_c.h ${CMAKE_CURRENT_BINARY_DIR}/../include/musicbrainz5/mb5_c.h
 	DEPENDS make-c-interface cinterface.xml *.inc
 )

diff --git a/src/make-c-interface.cc b/src/make-c-interface.cc
index 652a65b..70dd6d7 100644
--- a/src/make-c-interface.cc
+++ b/src/make-c-interface.cc
@@ -33,7 +33,7 @@

 #include "musicbrainz5/xmlParser.h"

-void ProcessBoilerplate(const XMLNode& Node, std::ofstream& Source, std::ofstream& Include);
+void ProcessBoilerplate(const XMLNode& Node, std::ofstream& Source, std::ofstream& Include, const std::string& Path);
 void ProcessHeader(const XMLNode& Node, std::ofstream& Source, std::ofstream& Include);
 void ProcessEntity(const XMLNode& Node, std::ofstream& Source, std::ofstream& Include);
 void ProcessClass(const XMLNode& Node, std::ofstream& Source, std::ofstream& Include);
@@ -80,7 +80,7 @@ int main(int argc, const char *argv[])
 				std::string Name=Node.getName();

 				if ("boilerplate"==Name)
-					ProcessBoilerplate(Node,Source,Include);
+					ProcessBoilerplate(Node,Source,Include,argv[1]);
 				else if ("header"==Name)
 					ProcessHeader(Node,Source,Include);
 				else if ("declare"==Name)
@@ -156,13 +156,13 @@ void ProcessHeader(const XMLNode& /*Node*/, std::ofstream& Source, std::ofstream
 	Include << os.str() << std::endl;
 }

-void ProcessBoilerplate(const XMLNode& Node, std::ofstream& Source, std::ofstream& Include)
+void ProcessBoilerplate(const XMLNode& Node, std::ofstream& Source, std::ofstream& Include, const std::string& Path)
 {
 	std::ofstream *File=GetFile(Node,Source,Include);

 	if (Node.isAttributeSet("file"))
 	{
-		std::string FileName=Node.getAttribute("file");
+		std::string FileName=Path+"/"+Node.getAttribute("file");
 		std::ifstream InFile(FileName.c_str());
 		if (InFile.is_open())
 			*File << InFile.rdbuf() << std::endl;
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 645f8ae..8a0b38b 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,4 +1,7 @@
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../include)
+INCLUDE_DIRECTORIES(
+	${CMAKE_CURRENT_SOURCE_DIR}/../include
+	${CMAKE_CURRENT_BINARY_DIR}/../include
+)
 LINK_LIBRARIES(musicbrainz5 ${NEON_LIBRARIES})
 ADD_EXECUTABLE(mbtest mbtest.cc)
 ADD_EXECUTABLE(ctest ctest.c)
--
1.7.10

From b5d4f4ea32068e296326438c747faf665c311ddd Mon Sep 17 00:00:00 2001
From: Andy Hawkins <andy@gently.org.uk>
Date: Thu, 14 Jun 2012 09:12:27 +0000
Subject: [PATCH] Fix install when building out of tree

---
 CMakeLists.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 16870b4..958461c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,7 +32,7 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.cmake ${CMAKE_CURRENT_SOURCE
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_SOURCE_DIR}/config.h)

 FILE(GLOB headers ${CMAKE_CURRENT_SOURCE_DIR}/include/musicbrainz5/*.h)
-INSTALL(FILES ${headers} include/musicbrainz5/mb5_c.h DESTINATION ${INCLUDE_INSTALL_DIR}/musicbrainz5)
+INSTALL(FILES ${headers} ${CMAKE_CURRENT_BINARY_DIR}/include/musicbrainz5/mb5_c.h DESTINATION ${INCLUDE_INSTALL_DIR}/musicbrainz5)
 INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libmusicbrainz5.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)

 ADD_SUBDIRECTORY(src)
--
1.7.10


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>musicbrainz5</Name>
        <Homepage>http://www.musicbrainz.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Client library to access metadata of mp3/vorbis/CD media
        <Description>MusicBrainz is a project that aims to create an open content music encyclopedia. It is an online database of information about recorded music. MusicBrainz client library captures information about artists, the album title, track titles,the length of each track and many more.</Description>
        <Archive sha1sum="1576b474c777bb9c4ff906853ef1d3bb14915f50" type="targz">ftp://ftp.parrot.org/.1/blfs/svn/l/libmusicbrainz-5.1.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>neon-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>

    </Source>

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

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

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


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>musicbrainz5</Name>
        Mp3/Ogg Vorbis/Audio-Cd gibi ses dosyalarınızın etiketlerine erişiminizi sağlayan istemci kütüphanesidir.
        <Description xml:lang="tr">MusicBrainz açık içerikli müzik ansiklopedisi oluşturmayı amaçlayan bir projedir. Kayıtlı albüm ve müzik parçaları hakkında çevrim içi veri tabanı sağlar. MusicBrainz kütüphanesi sanatçı, albüm, çalınan parça ve daha birçok konuda veri toplar.</Description>
        <Description xml:lang="fr">MusicBrainz est un projet tentant de créer une encyclopédie de musique au contenu ouvert. C'est une base de données en ligne contenant des informations concernant les musiques enregistrées. La librairie client MusicBrainz capture les informations concernant les artistes, le nom de l'album, les titres des chansons, leur longueur et beaucoup d'autres données encore.</Description>
        <Description xml:lang="es">MusicBrainz es un proyecto con la finalidad de crear una enciclopedia de contenido abierto sobre música. Es una base de datos de información en línea sobre grabaciones de música. La libreía de cliente MusicBrainz captura información de artista, título de album, título de las músicas, longitudes de cada música, y mucho más.</Description>
    </Source>

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


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

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

def setup():
    pisitools.flags.add("-pthread -I/usr/include/OpenEXR -I/usr/include/libdrm")
    pisitools.ldflags.add("-lImath -lHalf -lIex -lIexMath -lIlmThread -lpthread")
    shelltools.system("./bootstrap")
    autotools.configure("--enable-shared \
                         --disable-static")

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

def build():
    autotools.make()

def install():
    # documents and examples go to "/usr/share/OpenEXR" without these parameters
    docdir = "/usr/share/doc/%s" % get.srcNAME()
    examplesdir = "%s/examples" % docdir
    autotools.rawInstall("DESTDIR=%s docdir=%s examplesdir=%s" % (get.installDIR(), docdir, examplesdir))

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>openexr</Name>
        <Homepage>http://www.openexr.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        A high dynamic-range (HDR) image file format library
        <Description>OpenEXR is a high dynamic-range (HDR) image file format  for use in computer imaging applications. OpenEXR's features include: Higher dynamic range and color precision than existing 8- and 10-bit image file formats; support for 16-bit floating-point, 32-bit floating-point, and 32-bit integer pixels; multiple lossless image compression algorithms; extensibility.</Description>
        <Archive sha1sum="d09a68c4443b7a12a0484c073adaef348b44cb92" type="targz">http://download.savannah.nongnu.org/releases/openexr/openexr-2.2.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency versionFrom="2.2.0">ilmbase-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>openexr</Name>
        <RuntimeDependencies>
            <Dependency versionFrom="2.2.0">ilmbase</Dependency>
	    <Dependency>libgcc</Dependency>
            <Dependency>openexr-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
        </Files>
    </Package>

    <Package>
        <Name>openexr-libs</Name>
        OpenEXR runtime libraries
        <RuntimeDependencies>
            <Dependency>ilmbase</Dependency>
	    <Dependency>zlib</Dependency>
	    <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/lib*</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>openexr-docs</Name>
        OpenEXR example files
        <Files>
            <Path fileType="doc">/usr/share/doc/openexr/examples</Path>
        </Files>
    </Package>

    <Package>
        <Name>openexr-devel</Name>
        Development files for openexr
        <RuntimeDependencies>
            <Dependency release="current">openexr</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>ilmbase-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
        </Files>
    </Package>

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


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>openexr</Name>
        <Description xml:lang="tr">OpenEXR, bilgisayar görüntüleme uygulamalarında kullanılan yüksek dinamik görüntü erimidir. OpenEXR özellikleri şunları içerir: Mevcut 8 ve 10 bitlik görüntü dosya formatlarından daha yüksek dinamik görüntü erişimi, 16 ya da 32 bit piksel desteği ve kayıpsız görüntü sıkıştırma algoritması</Description>
        <Description xml:lang="fr">OpenEXR est un formation de fichier d'image à haut rang dynamique (HDR - High Dynamic Range) utilisable pour les applications d'imagerie sur ordinateur. OpenEXR inclus notamment : Un rang dynamique plus grand que les formats d'image existants de 8 et 10 bit; le support pour pixel de 16 bit à virgule flottante, 32 bit à virgule flottante et d'entiers à 32 bit; de nombreux algorithmes de compression d'image sans perte, le fait d'être extensible.</Description>
        <Description xml:lang="es">OpenEXR es un formato de archivo de imagen de alto fango dinámico (HDR) para uso en aplicaciones de computación de imágenes. OpenEXR contiene facilidades: rango dinámico y precisión de colores más alto que formatos existentes de 8- y 10-bit; soporta para punto flotante 16-bit, punto flotante 32-bit, y entero 32-bit pixels; algoritmos de compresión múltiple sin pérdida; extensible.</Description>
    </Source>

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

    <Package>
        <Name>openexr-libs</Name>
        OpenEXR çalışma zamanı kitaplıkları
    </Package>

    <Package>
        <Name>openexr-docs</Name>
        OpenEXR örnek dosyalar
    </Package>
</PISI>


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

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

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

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

def build():
    autotools.make()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>orc</Name>
        <Homepage>http://code.entropywave.com/projects/orc/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <License>BSD-2</License>
        <IsA>app:console</IsA>
        The Oil Runtime Compiler
        <Description>Optimized Inner Loop Runtime Compiler</Description>
        <Archive sha1sum="8a735b48051facb35b2b2cc57e8e2014a1e25c8a" type="tarxz">https://gstreamer.freedesktop.org/src/orc/orc-0.4.26.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>valgrind</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>orc</Name>
        <Files>
            <Path fileType="executable">/usr/bin/</Path>
            <Path fileType="library">/usr/lib/</Path>
            <Path fileType="data">/usr/share/</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>orc-devel</Name>
        orc için geliştirme dosyaları
        <RuntimeDependencies>
            <Dependency release="current">orc</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>

    <History>
        <Update release="4">
            <Date>2017-01-24</Date>
            <Version>0.4.26</Version>
            <Comment>Version bump</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-12</Date>
            <Version>0.4.25</Version>
            <Comment>Version bump</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>0.4.19</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.19</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>ocr</Name>
        The Oil Runtime Compiler
        <Description xml:lang="en">Optimized Inner Loop Runtime Compiler</Description>
    </Source>

    <Package>
        <Name>orc-devel</Name>
	orc 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 build():
    autotools.make()

def install():
    pisitools.dobin("regionset", "/usr/bin")
    pisitools.dodoc("COPYING", "README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>regionset</Name>
        <Homepage>http://linvdr.org/projects/</Homepage>
        <Packager>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        <Summary>regionset - adjusts and shows the region code of DVD drives</Summary>
        <Description>regionset allows you to check and set the region code of DVD drives.</Description>
        <Archive sha1sum="2c9f15841dd6299ade22a173be12705a95232f89" type="targz">http://linvdr.org/download/regionset/regionset-0.2.tar.gz</Archive>
    </Source>

    <Package>
        <Name>regionset</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
	    <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-04-09</Date>
            <Version>0.2</Version>
            <Comment>Release bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-11-24</Date>
            <Version>0.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>regionset</Name>
        <Summary xml:lang="en">regionset - adjusts and shows the region code of DVD drives</Summary>
        <Description xml:lang="en">regionset allows you to check and set the region code of DVD drives.</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 = "SDL_image-%s" % get.srcVERSION()

def setup():
    options = "--disable-dependency-tracking \
               --disable-static \
               --enable-gif \
               --enable-jpg \
               --enable-tif \
               --enable-png \
               --enable-pnm \
               --enable-bmp \
               --enable-xcf \
               --enable-xpm \
               --enable-tga \
               --enable-lbm \
               --enable-pcx \
               --disable-jpg-shared \
               --disable-png-shared \
               --disable-tif-shared"

    if get.buildTYPE() == "emul32":
        options += " --includedir=/usr/include \
                     --libdir=/usr/lib32"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    for i in ["NEWS", "AUTHORS", "ChangeLog"]:
        shelltools.touch(i)

    autotools.autoreconf("-vfi")
    autotools.configure(options)

def build():
    autotools.make()

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

    if get.buildTYPE() != "emul32":
        pisitools.dobin(".libs/showimage")

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


code:
--- IMG_gif.c
+++ IMG_gif.c
@@ -418,6 +418,9 @@
     static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp;
     register int i;

+    if (input_code_size > MAX_LWZ_BITS)
+        return -1;
+
     if (flag) {
 	set_code_size = input_code_size;
 	code_size = set_code_size + 1;


code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sdl-image</Name>
        <Homepage>http://www.libsdl.org/projects/SDL_image/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        SDL image file loading library
        <Description>SDL_image is an image file loader for SDL.</Description>
        <Archive sha1sum="5e3e393d4e366638048bbb10d6a269ea3f4e4cf2" type="targz">http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>gif-overflow.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>sdl-image</Name>
        <RuntimeDependencies>
            <Dependency>libsdl</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libjpeg-turbo</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>sdl-image-devel</Name>
        Development files for sdl-image
        <RuntimeDependencies>
            <Dependency release="current">sdl-image</Dependency>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</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>sdl-image-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for sdl-image
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libsdl-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
            <Dependency>tiff-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">sdl-image</Dependency>
            <Dependency>libsdl-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
            <Dependency>tiff-32bit</Dependency>
	    <Dependency>zlib-32bit</Dependency>

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

    <History>
        <Update release="3">
            <Date>2017-03-01</Date>
            <Version>1.2.12</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2.12</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-31</Date>
            <Version>1.2.12</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>sdl-image</Name>
        SDL resim yükleme kitaplığı
        Librairie SDL de chargement de fichier d'image.
        <Description xml:lang="tr">SDL_image, SDL için resim yükleme kitaplığıdır.</Description>
    </Source>

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

    <Package>
        <Name>sdl-image-32bit</Name>
        sdl-image 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

WorkDir = "SDL_mixer-%s" % get.srcVERSION()

def setup():
    pisitools.dosed("timidity/config.h", "/usr/local/lib/timidity", "/usr/share/timidity")

    options = "--disable-dependency-tracking \
               --disable-static \
               --enable-music-midi \
               --enable-music-timidity-midi \
               --enable-music-mod \
               --enable-music-mp3 \
               --enable-music-ogg"

    if get.buildTYPE() == "emul32":
        options += " --includedir=/usr/include \
                     --libdir=/usr/lib32"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)

def build():
    autotools.make()

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

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


code:
diff -Nur SDL_mixer-1.2.11-old//Makefile.in SDL_mixer-1.2.11/Makefile.in
--- SDL_mixer-1.2.11-old//Makefile.in	2011-08-25 01:09:55.007000503 +0300
+++ SDL_mixer-1.2.11/Makefile.in	2011-08-25 01:11:19.172000277 +0300
@@ -72,13 +72,13 @@
 @PLAYMUS_DEPENDS@

 $(objects)/$(TARGET): $(OBJECTS) $(VERSION_OBJECTS)
-	$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
+	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)

 $(objects)/playwave$(EXE): $(objects)/playwave.lo $(objects)/$(TARGET)
-	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
+	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(objects)/playwave.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)

 $(objects)/playmus$(EXE): $(objects)/playmus.lo $(objects)/$(TARGET)
-	$(LIBTOOL) --mode=link $(CC) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)
+	$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(objects)/playmus.lo $(SDL_CFLAGS) $(SDL_LIBS) $(objects)/$(TARGET)

 install: all install-hdrs install-lib #install-bin
 install-hdrs:


code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sdl-mixer</Name>
        <Homepage>http://www.libsdl.org/projects/SDL_mixer/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        SDL mixer library
        <Description>SDL_mixer is a SDL library for loading sound files.</Description>
        <Archive sha1sum="a20fa96470ad9e1052f1957b77ffa68fb090b384" type="targz">http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-1.2.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>libmikmod-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
            <Dependency>libogg-devel</Dependency>
            <Dependency>smpeg-devel</Dependency>
            <Dependency>timidity</Dependency>
        </BuildDependencies>
        <Patches>

            <Patch level="1">ldflags.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>sdl-mixer</Name>
        <RuntimeDependencies>
            <Dependency>libsdl</Dependency>
            <Dependency>libmikmod</Dependency>
            <Dependency>libvorbis</Dependency>
            <Dependency>libogg</Dependency>
            <Dependency>smpeg</Dependency>
            <Dependency>timidity</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>sdl-mixer-devel</Name>
        Development files for sdl-mixer
        <RuntimeDependencies>
            <Dependency release="current">sdl-mixer</Dependency>
            <Dependency>libsdl-devel</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>sdl-mixer-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for sdl-mixer
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libsdl-32bit</Dependency>
            <Dependency>libmikmod-32bit</Dependency>
            <Dependency>libvorbis-32bit</Dependency>
            <Dependency>libogg-32bit</Dependency>
            <Dependency>smpeg-32bit</Dependency>

        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">sdl-mixer</Dependency>
            <Dependency>libsdl-32bit</Dependency>
            <Dependency>libmikmod-32bit</Dependency>
            <Dependency>libvorbis-32bit</Dependency>
            <Dependency>libogg-32bit</Dependency>
            <Dependency>smpeg-32bit</Dependency>

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

    <History>
        <Update release="3">
            <Date>2017-03-09</Date>
            <Version>1.2.12</Version>
            <Comment>Rebuild</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2.12</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-21</Date>
            <Version>1.2.12</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>sdl-mixer</Name>
        SDL ses yükleme kitaplığı
        Librairie du mixer SDL.
        <Description xml:lang="tr">SDL_mixer, SDL için bir ses yükleme kitaplığıdır.</Description>
    </Source>

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

    <Package>
        <Name>sdl-mixer-32bit</Name>
        sdl-mixer 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 get

WorkDir = "SDL_net-%s" % get.srcVERSION()

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

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dodoc("CHANGES", "COPYING", "README")


code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sdl-net</Name>
        <Homepage>http://www.libsdl.org/projects/SDL_net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        SDL network library
        <Description>sdl-mixer is a SDL library for network access.</Description>
        <Archive sha1sum="fd393059fef8d9925dc20662baa3b25e02b8405d" type="targz">http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsdl-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>sdl-net</Name>
        <RuntimeDependencies>
            <Dependency>libsdl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>sdl-net-devel</Name>
        Development files for sdl-net
        <RuntimeDependencies>
            <Dependency release="current">sdl-net</Dependency>
            <Dependency>libsdl-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-03-09</Date>
            <Version>1.2.8</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>sdl-net</Name>
        SDL ağ kütüphanesi
        Librairie réseau de SDL.
        <Description xml:lang="tr">sdl-net, SDL için ağ erişim kitaplığıdır.</Description>
    </Source>

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


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

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

WorkDir = "SDL_ttf-2.0.11"

def setup():
    options = "--disable-dependency-tracking \
               --disable-static \
               --with-x"

    if get.buildTYPE() == "emul32":
        #options += " --prefix=/emul32 \
        options += " --includedir=/usr/include \
                     --libdir=/usr/lib32"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)

def build():
    pisitools.dosed("Makefile", "-lz -lbz2", "")

    autotools.make()

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

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


code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sdl-ttf</Name>
        <Homepage>http://www.libsdl.org/projects/SDL_ttf/</Homepage>
        <Packager>
            <Name>Mathias Freire</Name>
            <Email>mathiasfreire45@gmail.com</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        TrueType font support for SDL2
        <Description>SDL_ttf is a TrueType font rendering library that is used with the SDL library, and almost as portable.</Description>
        <Archive sha1sum="0ccf7c70e26b7801d83f4847766e09f09db15cc6" type="targz">http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>libtool</Dependency>
            <Dependency>libICE-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>sdl-ttf</Name>
        <RuntimeDependencies>
            <Dependency>libsdl</Dependency>
            <Dependency>harfbuzz</Dependency>
            <Dependency>freetype</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>sdl-ttf-devel</Name>
        Development files for sdl-ttf
        <RuntimeDependencies>
            <Dependency>libsdl-devel</Dependency>
            <Dependency release="current">sdl-ttf</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>sdl-ttf-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for sdl-ttf
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libsdl-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>

            <Dependency>libpng-32bit</Dependency>
            <Dependency>libsdl-32bit</Dependency>
            <Dependency>harfbuzz-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
            <Dependency release="current">sdl-ttf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-03-09</Date>
            <Version>2.0.11</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-11-24</Date>
            <Version>2.0.14</Version>
            <Comment>Rebuild for Pisi Linux 2.0</Comment>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0.14</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-11</Date>
            <Version>2.0.14</Version>
            <Comment>First release</Comment>
            <Name>Mathias Freire</Name>
            <Email>mathiasfreire45@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>sdl2-ttf</Name>
        SDL2 TTF kitaplığı
        <Description xml:lang="tr">SDL2_ttf, SDL2 ile birlikte kullanılan ve neredeyse onun kadar taşınabilir olan bir TrueType yazı tipi işleme kitaplığıdır.</Description>
        <Description xml:lang="fr">SDL2_ttf est une librairie de rendu de fontes TrueType utilisée avec la librairie SDL2 et quasiment aussi portable qu'elle.</Description>
        <Description xml:lang="es">SDL2_ttf es una librería para render de fuentes TrueType utilizada en conjunto con la librerñia SDL2, y está casi igual de portable.</Description>
    </Source>

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

    <Package>
        <Name>sdl2-ttf-32bit</Name>
        sdl2-ttf 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 setup():

    #autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                        --prefix=/usr")

def build():
    autotools.make()

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

    pisitools.dodoc("COPYING.txt")


code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sdl2-image</Name>
        <Homepage>http://www.libsdl.org/projects/SDL_image/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        SDL image file loading library
        <Description>SDL_image is an image file loader for SDL.</Description>
        <Archive sha1sum="76c5da0a59a77e5160a65a1c8f53bef016bdc373" type="targz">https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libsdl2-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>sdl2-image</Name>
        <RuntimeDependencies>
            <Dependency>libsdl2</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libjpeg-turbo</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>sdl2-image-devel</Name>
        Development files for sdl2-image
        <RuntimeDependencies>
            <Dependency release="current">sdl2-image</Dependency>
            <Dependency>libsdl2-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="2">
            <Date>2017-03-10</Date>
            <Version>2.0.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>sdl2-image</Name>
        SDL2 resim yükleme kitaplığı
        Librairie SDL2 de chargement de fichier d'image.
        <Description xml:lang="tr">SDL2_image, SDL2 için resim yükleme kitaplığıdır.</Description>
    </Source>

    <Package>
        <Name>sdl2-image-devel</Name>
        sdl2-image 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

WorkDir = "SDL2_net-%s" % get.srcVERSION()

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

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    pisitools.dodoc("CHANGES.txt", "COPYING.txt", "README.txt")


code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sdl2-net</Name>
        <Homepage>http://www.libsdl.org/projects/SDL_net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        SDL network library 2.0 series
        <Description>sdl-mixer is a SDL library for network access.</Description>
        <Archive sha1sum="99c17ee2ecf32c8a136163bbaa8f018f7a3e31e9" type="targz">http://www.libsdl.org/projects/SDL_net/release/SDL2_net-2.0.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsdl2-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>sdl2-net</Name>
        <RuntimeDependencies>
            <Dependency>libsdl2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-03-09</Date>
            <Version>2.0.1</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-11</Date>
            <Version>2.0.1</Version>
            <Comment>First release</Comment>
            <Name>Mathias Freire</Name>
            <Email>mathiasfreire45@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>sdl2-net</Name>
        SDL ağ kütüphanesi 2.0 serisi
        Librairie réseau de SDL.
        <Description xml:lang="tr">sdl-net, SDL için ağ erişim kitaplığıdır.</Description>
    </Source>

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


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

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

WorkDir = "SDL2_ttf-%s" % get.srcVERSION()

def setup():
    options = "--disable-dependency-tracking \
               --disable-static \
               --with-x"

    if get.buildTYPE() == "emul32":
        #options += " --prefix=/emul32 \
        options += " --includedir=/usr/include \
                     --libdir=/usr/lib32"

        shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
        shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())

    autotools.configure(options)

def build():
    pisitools.dosed("Makefile", "-lz -lbz2", "")

    autotools.make()

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

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


code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>sdl2-ttf</Name>
        <Homepage>http://www.libsdl.org/projects/SDL_ttf/</Homepage>
        <Packager>
            <Name>Mathias Freire</Name>
            <Email>mathiasfreire45@gmail.com</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        TrueType font support for SDL2
        <Description>SDL2_ttf is a TrueType font rendering library that is used with the SDL library, and almost as portable.</Description>
        <Archive sha1sum="34c5fdc8508c7e14356579477f9ca2b0d6c06ffc" type="targz">http://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libsdl2-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>sdl2-ttf</Name>
        <RuntimeDependencies>
            <Dependency>libsdl2</Dependency>
            <Dependency>harfbuzz</Dependency>
            <Dependency>freetype</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>sdl2-ttf-devel</Name>
        Development files for sdl2-ttf
        <RuntimeDependencies>
            <Dependency>libsdl2-devel</Dependency>
            <Dependency release="current">sdl2-ttf</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>sdl2-ttf-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for sdl2-ttf
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libsdl2-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>

            <Dependency>libpng-32bit</Dependency>
            <Dependency>libsdl2-32bit</Dependency>
            <Dependency>harfbuzz-32bit</Dependency>
            <Dependency>freetype-32bit</Dependency>
            <Dependency release="current">sdl2-ttf</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32/</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-09</Date>
            <Version>2.0.14</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0.14</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-11</Date>
            <Version>2.0.14</Version>
            <Comment>First release</Comment>
            <Name>Mathias Freire</Name>
            <Email>mathiasfreire45@gmail.com</Email>
        </Update>
    </History>
</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 get
from pisi.actionsapi import kde5

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

def setup():
    kde5.configure("-DWITH_KDE=1")

def build():
    kde5.make()

def install():
    kde5.install()

    pisitools.dodoc("AUTHORS", "COPYING.LGPL")


code:
--- taglib-extras-1.0.1/cmake/modules/FindTaglib.cmake	2009-03-13 22:40:24.000000000 +0100
+++ taglib-extras-1.0.1/cmake/modules/FindTaglib.cmake.fix	2015-12-06 21:26:46.873893311 +0100
@@ -29,10 +29,10 @@

   exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --version RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_VERSION)

-  if(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
+  if("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
      message(STATUS "TagLib version not found: version searched :${TAGLIB_MIN_VERSION}, found ${TAGLIB_VERSION}")
      set(TAGLIB_FOUND FALSE)
-  else(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
+  else("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)

      exec_program(${TAGLIBCONFIG_EXECUTABLE} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE TAGLIB_LIBRARIES)

@@ -42,7 +42,7 @@
         set(TAGLIB_FOUND TRUE)
      endif(TAGLIB_LIBRARIES AND TAGLIB_CFLAGS)
      string(REGEX REPLACE " *-I" ";" TAGLIB_INCLUDES "${TAGLIB_CFLAGS}")
-  endif(TAGLIB_VERSION STRLESS "${TAGLIB_MIN_VERSION}")
+  endif("${TAGLIB_MIN_VERSION}" VERSION_GREATER TAGLIB_VERSION)
   mark_as_advanced(TAGLIB_CFLAGS TAGLIB_LIBRARIES TAGLIB_INCLUDES)

 else(TAGLIBCONFIG_EXECUTABLE)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>taglib-extras</Name>
        <Homepage>http://amarok.kde.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2</License>
        <IsA>library</IsA>
        Taglib extras library from Amarok team
        <Description>Taglib-extras delivers support for reading and editing the meta-data of audio formats not supported by taglib, including: asf, mp4v2, rmff, wav.</Description>
        <Archive sha1sum="58af454ec230d494a75abd0aa78016a969f0c9ce" type="targz">http://download.kde.org/stable/taglib-extras/1.0.1/src/taglib-extras-1.0.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>pkgconfig</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>taglib-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">taglib-1.10.patch</Patch>
        </Patches>
    </Source>
    <Package>
        <Name>taglib-extras</Name>
        <RuntimeDependencies>
            <Dependency>taglib</Dependency>
            <Dependency>libgcc</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>taglib-extras-devel</Name>
        Development files for taglib-extras
        <RuntimeDependencies>
            <Dependency release="current">taglib-extras</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/taglib-extras</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-16</Date>
            <Version>1.0.1</Version>
            <Comment>Rebuild for new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.0.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-02</Date>
            <Version>1.0.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>taglib-extras</Name>
        Amarok takımından taglib ekstraları kütüphanesi
        <Description xml:lang="tr">Taglib-extras taglib tarafından desteklenmeyen ses formatlarının (asf, mp4v2, rmff, wav vs.) meta verilerini okumak ve düzenlemek için gerekli desteği verir.</Description>
    </Source>

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

def setup():
    cmaketools.configure("-DBUILD_SHARED_LIBS=ON \
                        -DWITH_MP4=ON \
                        -DWITH_ASF=ON")

def build():
    cmaketools.make()

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

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


code:
diff -ruN taglib-1.4.org/taglib/toolkit/tstring.cpp taglib-1.4/taglib/toolkit/tstring.cpp
--- taglib-1.4.org/taglib/toolkit/tstring.cpp	2005-07-26 06:31:15.000000000 +0900
+++ taglib-1.4/taglib/toolkit/tstring.cpp	2006-05-26 12:02:55.000000000 +0900
@@ -202,12 +202,22 @@
   s.resize(d->data.size());

   if(!unicode) {
-    std::string::iterator targetIt = s.begin();
-    for(wstring::const_iterator it = d->data.begin(); it != d->data.end(); it++) {
-      *targetIt = char(*it);
-      ++targetIt;
+    bool cjk = false;
+    //pre-scan: is there any cjk unicode character? if so, convert the string into utf-8.
+    for(unsigned int i=0; i< d->data.size(); i++){
+      if(d->data[i] > 0xff){
+        cjk = true;
+        break;
+      }
+    }
+    if(!cjk){
+      std::string::iterator targetIt = s.begin();
+      for(wstring::const_iterator it = d->data.begin(); it != d->data.end(); it++) {
+        *targetIt = char(*it);
+        ++targetIt;
+      }
+      return s;
     }
-    return s;
   }

   const int outputBufferSize = d->data.size() * 3 + 1;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>taglib</Name>
        <Homepage>http://developer.kde.org/~wheeler/taglib.html</Homepage>
        <Packager>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A library for reading and editing audio meta data
        <Description>TagLib is a library for reading and editing the meta data of several popular audio formats.</Description>
        <Archive sha1sum="80a30eeae67392f636c9f113c60d778c2995c99e" type="targz">http://taglib.org/releases/taglib-1.11.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
        </BuildDependencies>
    </Source>

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

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

    <History>
        <Update release="4">
            <Date>2017-02-27</Date>
            <Version>1.11.1</Version>
            <Comment>Rebuild for kfilemetadata.</Comment>
            <Name>Stefan Gronewold</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-16</Date>
            <Version>1.11.1</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.9.1</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>1.9.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>taglib</Name>
        Ses dosyalarının etiket bilgilerini okuma ve düzenleme kütüphanesi
        <Description xml:lang="tr">TagLib ses dosyalarının etiket bilgilerini okumak ve işlemek için kullanılan bir kütüphanedir.</Description>
        <Description xml:lang="fr">TagLib est une librairie pour lire et éditer les méta-données de nombreux formats audio populaires.</Description>
    </Source>

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


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


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

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

WorkDir = "ladspa_sdk/src"

def setup():
    pisitools.dosed("makefile", "-Werror", get.CFLAGS())

def build():
    autotools.make('CC="%s" \
                    CXX="%s" \
                    LD="%s" \
                    targets' % (get.CC(), get.CXX(), get.LD()))

def install():
    autotools.install('INSTALL_PLUGINS_DIR="/usr/lib/ladspa" \
                       MKDIR_P="mkdir -p" \
                       DESTDIR="%s"' % get.installDIR())

    shelltools.cd("..")
    pisitools.dohtml("doc/*.html")
    pisitools.dodoc("doc/COPYING","doc/ladspa.h.txt")


code:
Index: makefile
===================================================================
--- makefile.orig
+++ makefile
@@ -38,7 +38,7 @@ MKDIR_P		=	mkdirhier

 ../plugins/%.so:	plugins/%.c ladspa.h
 	$(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c
-	$(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared
+	$(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared -lm

 ../plugins/%.so:	plugins/%.cpp ladspa.h
 	$(CXX) $(CXXFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.cpp


code:
--- plugins/sine.cpp
+++ plugins/sine.cpp
@@ -59,6 +59,15 @@

 /*****************************************************************************/

+LADSPA_Handle instantiateSineOscillator(const LADSPA_Descriptor *, unsigned long SampleRate);
+void connectPortToSineOscillator(LADSPA_Handle Instance, unsigned long Port, LADSPA_Data * DataLocation);
+void activateSineOscillator(void * pvHandle);
+void runSineOscillator_FreqAudio_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
+void runSineOscillator_FreqAudio_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount);
+void runSineOscillator_FreqCtrl_AmpAudio(LADSPA_Handle Instance, unsigned long SampleCount);
+void runSineOscillator_FreqCtrl_AmpCtrl(LADSPA_Handle Instance, unsigned long SampleCount);
+void cleanupSineOscillator(void *pvHandle);
+
 class SineOscillator {
 private:


code:
diff -Nur ladspa_sdk-old/src/makefile ladspa_sdk/src/makefile
--- ladspa_sdk-old/src/makefile	2009-04-25 01:57:34.000000000 +0300
+++ ladspa_sdk/src/makefile	2009-04-25 01:58:09.000000000 +0300
@@ -57,12 +57,12 @@
 	@echo ---------------------------------------------
 	@echo First listen to the white noise input signal:
 	@echo ---------------------------------------------
-	-sndfile-play ../snd/noise.wav
+	@echo Disabled -sndfile-play ../snd/noise.wav
 	@echo -------------------------
 	@echo Compare to plugin output.
 	@echo -------------------------
 	@echo Should be a noise band around 6000Hz, repeated quietly after 1s.
-	-sndfile-play /tmp/test.wav
+	@echo Disabled -sndfile-play /tmp/test.wav
 	@echo Test complete.

 install:	targets


code:
diff -Nur ladspa_sdk-old/src/makefile ladspa_sdk/src/makefile
--- ladspa_sdk-old/src/makefile	2008-04-04 20:13:49.000000000 +0300
+++ ladspa_sdk/src/makefile	2008-04-04 20:14:03.000000000 +0300
@@ -13,10 +13,12 @@
 # GENERAL
 #

+CFLAGS		=	-Wall -Werror -O3
+CXXFLAGS	=	-Wall -Werror -O3
+
 INCLUDES	=	-I.
-LIBRARIES	=	-ldl -lm
-CFLAGS		=	$(INCLUDES) -Wall -Werror -O3 -fPIC
-CXXFLAGS	=	$(CFLAGS)
+DYNAMIC_LD_LIBS =	-ldl
+LIBRARIES	=	$(DYNAMIC_LD_LIBS) -lm
 PLUGINS		=	../plugins/amp.so				\
 			../plugins/delay.so				\
 			../plugins/filter.so				\
@@ -26,7 +28,8 @@
 			../bin/applyplugin 				\
 			../bin/listplugins
 CC		=	cc
-CPP		=	c++
+CXX		=	c++
+MKDIR_P		=	mkdirhier

 ###############################################################################
 #
@@ -34,12 +37,12 @@
 #

 ../plugins/%.so:	plugins/%.c ladspa.h
-	$(CC) $(CFLAGS) -o plugins/$*.o -c plugins/$*.c
-	$(LD) -o ../plugins/$*.so plugins/$*.o -shared
+	$(CC) $(CFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.c
+	$(LD) $(RAW_LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared

 ../plugins/%.so:	plugins/%.cpp ladspa.h
-	$(CPP) $(CXXFLAGS) -o plugins/$*.o -c plugins/$*.cpp
-	$(CPP) -o ../plugins/$*.so plugins/$*.o -shared
+	$(CXX) $(CXXFLAGS) $(INCLUDES) -fPIC -o plugins/$*.o -c plugins/$*.cpp
+	$(CXX) $(LDFLAGS) -o ../plugins/$*.so plugins/$*.o -shared

 ###############################################################################
 #
@@ -59,12 +62,12 @@
 	@echo Test complete.

 install:	targets
-	-mkdirhier $(INSTALL_PLUGINS_DIR)
-	-mkdirhier $(INSTALL_INCLUDE_DIR)
-	-mkdirhier $(INSTALL_BINARY_DIR)
-	cp ../plugins/* $(INSTALL_PLUGINS_DIR)
-	cp ladspa.h $(INSTALL_INCLUDE_DIR)
-	cp ../bin/* $(INSTALL_BINARY_DIR)
+	-$(MKDIR_P) $(DESTDIR)$(INSTALL_PLUGINS_DIR)
+	-$(MKDIR_P) $(DESTDIR)$(INSTALL_INCLUDE_DIR)
+	-$(MKDIR_P) $(DESTDIR)$(INSTALL_BINARY_DIR)
+	cp ../plugins/* $(DESTDIR)$(INSTALL_PLUGINS_DIR)
+	cp ladspa.h $(DESTDIR)$(INSTALL_INCLUDE_DIR)
+	cp ../bin/* $(DESTDIR)$(INSTALL_BINARY_DIR)

 /tmp/test.wav:	targets ../snd/noise.wav
 	../bin/listplugins
@@ -90,19 +93,19 @@
 #

 ../bin/applyplugin:	applyplugin.o load.o default.o
-	$(CC) $(CFLAGS) $(LIBRARIES)					\
+	$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS)				\
 		-o ../bin/applyplugin					\
-		applyplugin.o load.o default.o
+		applyplugin.o load.o default.o $(LIBRARIES)

 ../bin/analyseplugin:	analyseplugin.o load.o default.o
-	$(CC) $(CFLAGS) $(LIBRARIES)					\
+	$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS)				\
 		-o ../bin/analyseplugin 				\
-		analyseplugin.o load.o default.o
+		analyseplugin.o load.o default.o $(LIBRARIES)

 ../bin/listplugins:	listplugins.o search.o
-	$(CC) $(CFLAGS) $(LIBRARIES)					\
+	$(CC) $(CFLAGS) $(INCLUDES) $(LDFLAGS)				\
 		-o ../bin/listplugins	 				\
-		listplugins.o search.o
+		listplugins.o search.o $(LIBRARIES)

 ###############################################################################
 #


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ladspa-sdk</Name>
        <Homepage>http://www.ladspa.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        The Linux Audio Developer's Simple Plugin API
        <Description>The Linux Audio Developer's Simple Plugin API (LADSPA) attempts to give programmers the ability to write simple `plugin' audio processors in C/C++ and link them dynamically against a range of host applications</Description>
        <Archive sha1sum="2b69e28afb62c0d97943124f48ed82de796f83ed" type="targz">http://pkgs.fedoraproject.org/repo/pkgs/ladspa/ladspa_sdk_1.13.tgz/671be3e1021d0722cadc7fb27054628e/ladspa_sdk_1.13.tgz</Archive>
        <Patches>
            <Patch>ladspa-sdk-1.12-gcc4.patch</Patch>
            <Patch level="2">properbuild.patch</Patch>
            <Patch>asneeded.patch</Patch>
            <Patch level="2">notests.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>ladspa-sdk</Name>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="doc">/usr/share/doc/ladspa-sdk</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/env.d/60ladspa">60ladspa</AdditionalFile>
        </AdditionalFiles>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>1.13</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.13</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>1.13</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>ladspa-sdk</Name>
        Ses geliştiricisinin temel eklenti kütüphanesi
        <Description xml:lang="tr">ladspa, Linux üzerinde ses uygulamaları geliştiren programcıların temel ses işleme eklentileri geliştirmelerini ve bu eklentileri bir seri ses uygulaması ile birlikte kullanabilmelerini sağlar.</Description>
        <Description xml:lang="fr">La Linux Audio Developer's Simple Plugin API (LADSPA - L'API de plugin (greffon) simple pour développeurs linux audio) tente de donner aux programmeurs la possibilité d'écrire en C/C++ des processeurs audio simples sous forme de plugin' et les lier dynamiquement à différentes applications hôte.</Description>
        <Description xml:lang="es">El Linux Audio Developer's Simple Plugin API (LADSPA) intenta facilitar a programadores la tarea de escribir procesadores simples de audio en C/C++ y enlazarlos dinámicamente con una gama de aplicaciones host.</Description>
    </Source>

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

def setup():
    cmaketools.configure("-DCMAKE_BUILD_TYPE=release", installPrefix="/usr")

def build():
    cmaketools.make()

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

    pisitools.dodoc("*txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libchromaprint</Name>
        <Homepage>http://acoustid.org/chromaprint</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
	<PartOf>multimedia.plugin</PartOf>
        <IsA>app:console</IsA>
        Chromaprint is the core component of the Acoustid project.
        <Description>Chromaprint is the core component of the Acoustid project. It's a client-side library that implements a custom algorithm for extracting fingerprints from any audio source.</Description>
        <Archive sha1sum="3d90530e643a351f49460f08fcbc163179e9c036" type="targz">https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.4.2.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>boost-devel</Dependency>
            <Dependency>fftw3-devel</Dependency>
            <Dependency>ffmpeg-devel</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libchromaprint</Name>
        <RuntimeDependencies>
            <Dependency>ffmpeg</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/usr/share</Path>
	    <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

    <Package>
        <Name>libchromaprint-devel</Name>
	libchromaprint için geliştirme dosyaları
        <RuntimeDependencies>
            <Dependency releaseTo="current">libchromaprint</Dependency>
        </RuntimeDependencies>
        <Files>
	    <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-03</Date>
            <Version>1.4.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-11-17</Date>
            <Version>1.3.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-12-18</Date>
            <Version>1.2</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libchromaprint</Name>
        Chromaprint is the core component of the Acoustid project.
        <Description xml:lang="en">Chromaprint is the core component of the Acoustid project. It's a client-side library that implements a custom algorithm for extracting fingerprints from any audio source.</Description>
    </Source>

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


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

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

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--enable-shared \
                         --disable-static \
                         --enable-djbfft")

def build():
    autotools.make('CFLAGS="%s"' % get.CFLAGS())

def install():
    autotools.rawInstall('DESTDIR="%s" docdir=/%s/%s/html' % (get.installDIR(), get.docDIR(), get.srcNAME()))

    pisitools.insinto("/usr/include/a52dec", "liba52/a52_internal.h")
    pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "doc/liba52.txt")


code:
diff -Naur a52dec-0.7.4.orig/liba52/Makefile.am a52dec-0.7.4/liba52/Makefile.am
--- a52dec-0.7.4.orig/liba52/Makefile.am	2002-01-27 20:36:48.000000000 -0800
+++ a52dec-0.7.4/liba52/Makefile.am	2004-11-05 01:10:21.317401872 -0800
@@ -1,4 +1,4 @@
-CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@
+AM_CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@

 lib_LTLIBRARIES = liba52.la

diff -Naur a52dec-0.7.4.orig/liba52/configure.incl a52dec-0.7.4/liba52/configure.incl
--- a52dec-0.7.4.orig/liba52/configure.incl	2002-01-27 20:36:48.000000000 -0800
+++ a52dec-0.7.4/liba52/configure.incl	2004-11-05 01:11:38.172672216 -0800
@@ -2,7 +2,7 @@
 AC_SUBST([LIBA52_LIBS])

 dnl avoid -fPIC when possible
-LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
+dnl LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"

 AC_ARG_ENABLE([double],
     [  --enable-double         use double-precision samples])
diff -Naur a52dec-0.7.4.orig/src/Makefile.am a52dec-0.7.4/src/Makefile.am
--- a52dec-0.7.4.orig/src/Makefile.am	2002-06-22 18:51:57.000000000 -0700
+++ a52dec-0.7.4/src/Makefile.am	2004-11-05 01:10:21.320401375 -0800
@@ -1,4 +1,4 @@
-CFLAGS = @A52DEC_CFLAGS@
+AM_CFLAGS = @A52DEC_CFLAGS@

 bin_PROGRAMS = a52dec extract_a52
 a52dec_SOURCES = a52dec.c getopt.c gettimeofday.c


code:
--- liba52/imdct.c	2002-07-28 04:52:07.000000000 +0300
+++ liba52/imdct.c	2007-05-01 17:41:11.000000000 +0300
@@ -418,15 +418,12 @@
     }

 #ifdef LIBA52_DJBFFT
-    if (mm_accel & MM_ACCEL_DJBFFT) {
 	fprintf (stderr, "Using djbfft for IMDCT transform\n");
 	ifft128 = (void (*) (complex_t *)) fftc4_un128;
 	ifft64 = (void (*) (complex_t *)) fftc4_un64;
-    } else
-#endif
-    {
+#else
 	fprintf (stderr, "No accelerated IMDCT transform found\n");
 	ifft128 = ifft128_c;
 	ifft64 = ifft64_c;
-    }
+#endif
 }


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>a52dec</Name>
        <Homepage>http://liba52.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        DVD ATSC A/52 streams decoder library
        <Description>liba52 is a free library for decoding ATSC A/52 streams. The A/52 standard is used in a variety of applications, including digital television and DVD. It is also known as AC-3.</Description>
        <Archive sha1sum="79b33bd8d89dad7436f85b9154ad35667aa37321" type="targz">http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>glibc-devel</Dependency>
            <Dependency>djbfft-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">a52dec-0.7.4-build.patch</Patch>
            <Patch>use-djbfft.patch</Patch>
            <Patch level="1">constant.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>a52dec</Name>
        <RuntimeDependencies>
            <Dependency>djbfft</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>a52dec-devel</Name>
        Development files for a52dec
        <RuntimeDependencies>
            <Dependency release="current">a52dec</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-02-12</Date>
            <Version>0.7.4</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.7.4</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.7.4</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>