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 get
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools

amd_version = "2.3.1"
amd_version_major = "2"
btf_version = "1.2.0"
btf_version_major = "1"
camd_version = "2.3.1"
camd_version_major = "2"
ccolamd_version = "2.8.0"
ccolamd_version_major = "2"
cholmod_version = "2.0.1"
cholmod_version_major = "2"
colamd_version = "2.8.0"
colamd_version_major = "2"
csparse_version = "3.1.1"
csparse_version_major = "3"
klu_version = "1.2.1"
klu_version_major = "1"
ldl_version = "2.1.0"
ldl_version_major = "2"
umfpack_version = "5.6.1"
umfpack_version_major = "5"
spqr_version = "1.3.1"
spqr_version_major = "1"
rbio_version = "2.1.1"
rbio_version_major = "2"
SuiteSparse_config_ver = "4.2.0"
SuiteSparse_config_major = "4"

def build():
    shelltools.export("CFLAGS","%s -fPIC -O3" % get.CFLAGS())

    for d in ("AMD", "BTF", "CAMD", "CCOLAMD", "CHOLMOD", "COLAMD", "CSparse", "KLU", "LDL", "UMFPACK", "SPQR", "RBio"):
        shelltools.makedirs("Doc/%s" % d)
    shelltools.makedirs("Include")
    shelltools.makedirs("Lib")

    shelltools.cd("SuiteSparse_config")
    autotools.make()
    shelltools.system("ar x libsuitesparseconfig.a")
    shelltools.cd("../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libsuitesparseconfig.so.%s -o \
                       libsuitesparseconfig.so.%s ../SuiteSparse_config/*.o" % (SuiteSparse_config_major, SuiteSparse_config_ver))
    shelltools.sym("libsuitesparseconfig.so.%s" % SuiteSparse_config_ver, "libsuitesparseconfig.so.%s" % SuiteSparse_config_major)
    shelltools.sym("libsuitesparseconfig.so.%s" % SuiteSparse_config_ver, "libsuitesparseconfig.so")
    shelltools.copy("../SuiteSparse_config/*.a", ".")
    shelltools.cd("../SuiteSparse_config")
    shelltools.copy("*.h", "../Include")

    shelltools.cd("../AMD/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libamd.so.%s -o \
                       libamd.so.%s ../AMD/Lib/*.o -lm -lrt" % (amd_version_major, amd_version))
    shelltools.sym("libamd.so.%s" % amd_version, "libamd.so.%s" % amd_version_major)
    shelltools.sym("libamd.so.%s" % amd_version, "libamd.so")
    shelltools.copy("../AMD/Lib/*.a", ".")
    shelltools.cd("../AMD")
    shelltools.copy("Include/*.h", "../Include")
    for d in ("README.txt", "Doc/License", "Doc/ChangeLog", "Doc/*.pdf"):
        shelltools.copy(d, "../Doc/AMD")

    shelltools.cd("../BTF/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libbtf.so.%s -o \
                       libbtf.so.%s ../BTF/Lib/*.o" % (btf_version_major, btf_version))
    shelltools.sym("libbtf.so.%s" % btf_version, "libbtf.so.%s" % btf_version_major)
    shelltools.sym("libbtf.so.%s" % btf_version, "libbtf.so")
    shelltools.copy("../BTF/Lib/*.a", ".")
    shelltools.cd("../BTF")
    shelltools.copy("Include/*.h", "../Include")
    for d in ("README.txt", "Doc/*"):
        shelltools.copy(d, "../Doc/BTF")

    shelltools.cd("../CAMD/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libcamd.so.%s -o \
                       libcamd.so.%s ../CAMD/Lib/*.o -lm" % (camd_version_major, camd_version))
    shelltools.sym("libcamd.so.%s" % camd_version, "libcamd.so.%s" % camd_version_major)
    shelltools.sym("libcamd.so.%s" % camd_version, "libcamd.so")
    shelltools.copy("../CAMD/Lib/*.a", ".")
    shelltools.cd("../CAMD")
    shelltools.copy("Include/*.h", "../Include")
    for d in ("README.txt", "Doc/ChangeLog", "Doc/License", "Doc/*.pdf"):
        shelltools.copy(d, "../Doc/CAMD")

    shelltools.cd("../CCOLAMD/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libccolamd.so.%s -o \
                       libccolamd.so.%s ../CCOLAMD/Lib/*.o -lm" % (ccolamd_version_major, ccolamd_version))
    shelltools.sym("libccolamd.so.%s" % ccolamd_version, "libccolamd.so.%s" % ccolamd_version_major)
    shelltools.sym("libccolamd.so.%s" % ccolamd_version, "libccolamd.so")
    shelltools.copy("../CCOLAMD/Lib/*.a", ".")
    shelltools.cd("../CCOLAMD")
    shelltools.copy("Include/*.h", "../Include")
    for d in ("README.txt", "Doc/*"):
        shelltools.copy(d, "../Doc/CCOLAMD")

    shelltools.cd("../COLAMD/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libcolamd.so.%s -o \
                       libcolamd.so.%s ../COLAMD/Lib/*.o -lm" % (colamd_version_major, colamd_version))
    shelltools.sym("libcolamd.so.%s" % colamd_version, "libcolamd.so.%s" % colamd_version_major)
    shelltools.sym("libcolamd.so.%s" % colamd_version, "libcolamd.so")
    shelltools.copy("../COLAMD/Lib/*.a", ".")
    shelltools.cd("../COLAMD")
    shelltools.copy("Include/*.h", "../Include")
    for d in ("README.txt", "Doc/*"):
        shelltools.copy(d, "../Doc/COLAMD")

    shelltools.cd("../CHOLMOD/Lib")
    autotools.make("-I/usr/include/metis")
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libcholmod.so.%s -o \
                       libcholmod.so.%s ../CHOLMOD/Lib/*.o \
                       -L/usr/lib/atlas -llapack libamd.so.%s \
                       libcamd.so.%s libcolamd.so.%s \
                       libccolamd.so.%s \
                       libsuitesparseconfig.so.%s \
                       -lm" % (cholmod_version_major,
                               cholmod_version,
                               amd_version_major,
                               camd_version_major, colamd_version_major,
                               ccolamd_version_major,
                               SuiteSparse_config_major))
    shelltools.sym("libcholmod.so.%s" % cholmod_version, "libcholmod.so.%s" % cholmod_version_major)
    shelltools.sym("libcholmod.so.%s" % cholmod_version, "libcholmod.so")
    shelltools.copy("../CHOLMOD/Lib/*.a", ".")
    shelltools.cd("../CHOLMOD")
    shelltools.copy("Include/*.h", "../Include")
    shelltools.copy("README.txt", "../Doc/CHOLMOD")
    shelltools.copy("Doc/*.pdf", "../Doc/CHOLMOD")
    shelltools.copy("Cholesky/License.txt", "../Doc/CHOLMOD/Cholesky_License.txt")
    shelltools.copy("Core/License.txt", "../Doc/CHOLMOD/Core_License.txt")
    shelltools.copy("MatrixOps/License.txt", "../Doc/CHOLMOD/MatrixOps_License.txt")
    shelltools.copy("Partition/License.txt", "../Doc/CHOLMOD/Partition_License.txt")
    shelltools.copy("Supernodal/License.txt", "../Doc/CHOLMOD/Supernodal_License.txt")

    shelltools.cd("../CSparse/Include")
    shelltools.copy("cs.h", "../../Include")
    shelltools.cd("../Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libcsparse.so.%s -o \
                       libcsparse.so.%s ../CSparse/Lib/*.o -lm" % (csparse_version_major, csparse_version))
    shelltools.sym("libcsparse.so.%s" % csparse_version, "libcsparse.so.%s" % csparse_version_major)
    shelltools.sym("libcsparse.so.%s" % csparse_version, "libcsparse.so")
    shelltools.copy("../CSparse/Lib/*.a", ".")
    shelltools.cd("../CSparse")
    shelltools.copy("Doc/*", "../Doc/CSparse")

    shelltools.cd("../KLU/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libklu.so.%s -o \
                       libklu.so.%s ../KLU/Lib/*.o \
                       libamd.so.%s libcolamd.so.%s \
                       libbtf.so.%s libcholmod.so.%s \
                       libsuitesparseconfig.so.%s \
                       " % (klu_version_major,
                            klu_version,
                            amd_version_major, colamd_version_major,
                            btf_version_major, cholmod_version_major,
                            SuiteSparse_config_major))
    shelltools.sym("libklu.so.%s" % klu_version, "libklu.so.%s" % klu_version_major)
    shelltools.sym("libklu.so.%s" % klu_version, "libklu.so")
    shelltools.copy("../KLU/Lib/*.a", ".")
    shelltools.cd("../KLU")
    shelltools.copy("Include/*.h", "../Include")
    for d in "README.txt Doc/lesser.txt".split(" "):
        shelltools.copy(d, "../Doc/KLU")

    shelltools.cd("../LDL/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libldl.so.%s -o \
                       libldl.so.%s ../LDL/Lib/*.o" % (ldl_version_major, ldl_version))
    shelltools.sym("libldl.so.%s" % ldl_version, "libldl.so.%s" % ldl_version_major)
    shelltools.sym("libldl.so.%s" % ldl_version, "libldl.so")
    shelltools.copy("../LDL/Lib/*.a", ".")
    shelltools.cd("../LDL")
    shelltools.copy("Include/*.h", "../Include")
    for d in "README.txt Doc/ChangeLog Doc/lesser.txt Doc/*.pdf".split(" "):
        shelltools.copy(d, "../Doc/LDL")

    shelltools.cd("../UMFPACK/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,libumfpack.so.%s -o \
                       libumfpack.so.%s ../UMFPACK/Lib/*.o \
                       -L/usr/lib/atlas -llapack libamd.so.%s \
                       libcholmod.so.%s \
                       libsuitesparseconfig.so.%s \
                       -lm" % (umfpack_version_major,
                               umfpack_version,
                               amd_version_major,
                               cholmod_version_major,
                               SuiteSparse_config_major))
    shelltools.sym("libumfpack.so.%s" % umfpack_version, "libumfpack.so.%s" % umfpack_version_major)
    shelltools.sym("libumfpack.so.%s" % umfpack_version, "libumfpack.so")
    shelltools.copy("../UMFPACK/Lib/*.a", ".")
    shelltools.cd("../UMFPACK")
    shelltools.copy("Include/*.h", "../Include")
    for d in "README.txt Doc/License Doc/ChangeLog Doc/gpl.txt Doc/*.pdf".split(" "):
        shelltools.copy(d, "../Doc/UMFPACK")

    shelltools.cd("../SPQR/Lib")
    autotools.make('CXXFLAS="%s -DNPARTITION -fPIC -O3"' % get.CXXFLAGS())
    shelltools.cd("../../Lib")
    shelltools.system("g++ -shared -Wl,-soname,libspqr.so.%s -o \
                       libspqr.so.%s ../SPQR/Lib/*.o \
                       -L/usr/lib/atlas -L/usr/lib -llapack \
                       libcholmod.so.%s \
                       libsuitesparseconfig.so.%s \
                       -lm" % (spqr_version_major,
                               spqr_version,
                               cholmod_version_major,
                               SuiteSparse_config_major))
    shelltools.sym("libspqr.so.%s" % spqr_version, "libspqr.so.%s" % spqr_version_major)
    shelltools.sym("libspqr.so.%s" % spqr_version, "libspqr.so")
    shelltools.copy("../SPQR/Lib/*.a", ".")
    shelltools.cd("../SPQR")
    shelltools.copy("Include/*.h*", "../Include")
    shelltools.copy("README.txt", "README_SPQR.txt")
    shelltools.copy("README_SPQR.txt", "../Doc/SPQR")
    shelltools.copy("Doc/*", "../Doc/SPQR")

    shelltools.cd("../RBio/Lib")
    autotools.make()
    shelltools.cd("../../Lib")
    shelltools.system("gcc -shared -Wl,-soname,librbio.so.%s -o \
                       librbio.so.%s ../RBio/Lib/*.o \
                       libsuitesparseconfig.so.%s" % (rbio_version_major, rbio_version, SuiteSparse_config_major))
    shelltools.sym("librbio.so.%s" % rbio_version, "librbio.so.%s" % rbio_version_major)
    shelltools.sym("librbio.so.%s" % rbio_version, "librbio.so")
    shelltools.copy("../RBio/Lib/*.a", ".")
    shelltools.cd("../RBio")
    shelltools.copy("Include/*.h", "../Include")
    for d in "README.txt Doc/ChangeLog Doc/License.txt".split(" "):
        shelltools.copy(d, "../Doc/RBio")

def install():
    pisitools.insinto("/usr/include/%s" % get.srcNAME().lower(), "Include/*.h")
    pisitools.dodoc("README.txt")
    shelltools.copy("Doc/*", "%s/usr/share/doc/%s" % (get.installDIR(), get.srcNAME()))
    shelltools.cd("Lib")
    for l in shelltools.ls("*.so*"):
        pisitools.insinto("/usr/lib", l)
    for l in shelltools.ls("*.a"):
        pisitools.insinto("/usr/lib", l)


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>SuiteSparse</Name>
        <Homepage>http://www.cise.ufl.edu/research/sparse</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Sparse matrix library
        <Description>SuiteSparse is a single archive that contains sparse matrix libraries.</Description>
        <Archive sha1sum="13f5d8caa8df92a4d704426781365e55c09baf01" type="targz">http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.4.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>lapack-devel</Dependency>
            <Dependency>blas-devel</Dependency>
            <Dependency>libgcc</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-04-24</Date>
            <Version>4.4.4</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>4.4.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-11</Date>
            <Version>4.4.4</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>SuiteSparse</Name>
        Sparse matrix kütüphanesi
        <Description xml:lang="tr">Sparse matrix kütüphanesi.</Description>
        <Description xml:lang="fr">Librairie de matrices Sparse.</Description>
    </Source>

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


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

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

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

def build():
    autotools.make()

def check():
    autotools.make("check")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>cln</Name>
        <Homepage>http://www.ginac.de/CLN/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A class library (C++) for numbers
        <Description>cln is a library for efficient computations with all kinds of numbers in arbitrary precision.</Description>
        <Archive sha1sum="76f73071236ead72ba5c9ee892f29ca24e557b8c" type="tarbz2">http://www.ginac.de/CLN/cln-1.3.4.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>gmp-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>cln</Name>
        <RuntimeDependencies>
            <Dependency>gmp</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>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-02-28</Date>
            <Version>1.3.4</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.3.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-29</Date>
            <Version>1.3.4</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>cln</Name>
        Sayılar için bir C++ sınıf kütüphanesi
        <Description xml:lang="tr">cln, her türlü hassaslıktaki sayılarla hızlı hesaplamalar yapmak için tasarlanmış bir kütüphanedir.</Description>
        CLN, une librairie de classes (C++) pour les nombres.
    </Source>

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


code:
<PISI>
    <Name>science.mathematics</Name>
</PISI>


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

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

lib_version=get.srcVERSION()[0] + "." + get.srcVERSION()[2] + "." + get.srcVERSION()[3]

def setup():
    # FIXME: shelltools.echo() appends to the end of the file by default so clear them first
    shelltools.unlink('conf-cc')
    shelltools.unlink('conf-ld')
    shelltools.unlink('conf-home')

    shelltools.echo('conf-cc', "%s %s -malign-double -fPIC -DPIC" % (get.CC(), get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", "").replace("-fomit-frame-pointer", "")))
    shelltools.echo('conf-ld', "%s %s" % (get.CC(), get.LDFLAGS()))
    shelltools.echo('conf-home', "%s/usr" % get.installDIR())

def build():
    autotools.make('LIBDJBFFT="libdjbfft.so.%s" LIBPERMS="0755"' % lib_version)

def install():
    pisitools.dolib("libdjbfft.so.%s" % lib_version)
    pisitools.dosym("/usr/lib/libdjbfft.so.%s" % lib_version,"/usr/lib/libdjbfft.so")
    pisitools.dosym("/usr/lib/libdjbfft.so.%s" % lib_version,"/usr/lib/libdjbfft.so.0")

    for header in ["fftc4.h", "complex4.h", "real4.h"]:
        pisitools.insinto("/usr/include", header)

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


code:
--- djbfft-0.76/Makefile.orig	1999-09-30 22:25:58.000000000 +0200
+++ djbfft-0.76/Makefile	2004-01-17 17:21:37.236669242 +0100
@@ -2,6 +2,9 @@

 SHELL=/bin/sh

+LIBPERMS=0644
+LIBDJBFFT=djbfft.a
+
 default: it

 4c0.c: \
@@ -569,8 +572,8 @@
 	./compile 8v5.c

 accuracy: \
-load accuracy.o djbfft.a math.lib
-	./load accuracy djbfft.a  `cat math.lib`
+load accuracy.o $(LIBDJBFFT) math.lib
+	./load accuracy $(LIBDJBFFT)  `cat math.lib`

 accuracy.o: \
 compile accuracy.c fftc4.h complex4.h real4.h fftc8.h complex8.h \
@@ -578,8 +581,8 @@
 	./compile accuracy.c

 accuracy2: \
-load accuracy2.o djbfft.a math.lib
-	./load accuracy2 djbfft.a  `cat math.lib`
+load accuracy2.o $(LIBDJBFFT) math.lib
+	./load accuracy2 $(LIBDJBFFT)  `cat math.lib`

 accuracy2.o: \
 compile accuracy2.c fftc4.h complex4.h real4.h fftc8.h complex8.h \
@@ -649,7 +652,7 @@
 	) > compilebase
 	chmod 755 compilebase

-djbfft.a: \
+$(LIBDJBFFT): \
 makelib 8sc.o 8u5.o 8u4.o 8u3.o 8u2.o 8u1.o 8u0.o 8mc.o 8c0.o 8c1.o \
 8c2.o 8c3.o 8c4.o 8c5.o 8d0.o 8d1.o 8d2.o 8d3.o 8d4.o 8d5.o 8v5.o \
 8v4.o 8v3.o 8v2.o 8v1.o 8v0.o 8mr.o 8r0.o 8r1.o 8r2.o 8r3.o 8r4.o \
@@ -657,7 +660,7 @@
 4c1.o 4c2.o 4c3.o 4c4.o 4c5.o 4d0.o 4d1.o 4d2.o 4d3.o 4d4.o 4d5.o \
 4v5.o 4v4.o 4v3.o 4v2.o 4v1.o 4v0.o 4mr.o 4r0.o 4r1.o 4r2.o 4r3.o \
 4r4.o 4r5.o 4sr.o fftfreq.o
-	./makelib djbfft.a 8sc.o 8u5.o 8u4.o 8u3.o 8u2.o 8u1.o \
+	./makelib $(LIBDJBFFT) 8sc.o 8u5.o 8u4.o 8u3.o 8u2.o 8u1.o \
 	8u0.o 8mc.o 8c0.o 8c1.o 8c2.o 8c3.o 8c4.o 8c5.o 8d0.o 8d1.o \
 	8d2.o 8d3.o 8d4.o 8d5.o 8v5.o 8v4.o 8v3.o 8v2.o 8v1.o 8v0.o \
 	8mr.o 8r0.o 8r1.o 8r2.o 8r3.o 8r4.o 8r5.o 8sr.o 4sc.o 4u5.o \
@@ -692,7 +695,7 @@

 hier.o: \
 compile hier.c auto_home.h
-	./compile hier.c
+	./compile -DLIBDJBFFT=\"$(LIBDJBFFT)\" -DLIBPERMS=$(LIBPERMS) hier.c

 install: \
 load install.o hier.o auto_home.o strerr.a substdio.a open.a error.a \
@@ -731,7 +734,9 @@
 	( cat warn-auto.sh; \
 	echo 'main="$$1"; shift'; \
 	echo 'rm -f "$$main"'; \
-	echo 'ar cr "$$main" $${1+"$$@"}'; \
+	echo 'if [ "$${main##*.}" = "a" ]'; \
+	echo 'then'; \
+	echo '  ar cr "$$main" $${1+"$$@"}'; \
 	case "`cat systype`" in \
 	sunos-5.*) ;; \
 	unix_sv*) ;; \
@@ -740,8 +745,11 @@
 	dgux-*) ;; \
 	hp-ux-*) ;; \
 	sco*) ;; \
-	*) echo 'ranlib "$$main"' ;; \
-	esac \
+	*) echo '  ranlib "$$main"' ;; \
+	esac; \
+	echo 'else'; \
+	echo '  exec `head -1 conf-ld` -shared -o "$$main" $${1+"$$@"}'; \
+	echo 'fi'; \
 	) > makelib
 	chmod 755 makelib

@@ -758,15 +766,15 @@
 	./compile open_trunc.c

 prog: \
-djbfft.a accuracy accuracy2 speed speed.out
+$(LIBDJBFFT) accuracy accuracy2 speed speed.out

 setup: \
 it install
 	./install

 speed: \
-load speed.o djbfft.a math.lib
-	./load speed djbfft.a  `cat math.lib`
+load speed.o $(LIBDJBFFT) math.lib
+	./load speed $(LIBDJBFFT)  `cat math.lib`

 speed.o: \
 compile speed.c fftr4.h real4.h fftr8.h real8.h fftc4.h complex4.h \
@@ -775,7 +783,7 @@

 speed.out: \
 speed
-	./speed > speed.out
+	LD_LIBRARY_PATH=".:$$LD_LIBRARY_PATH" ./speed > speed.out

 str.a: \
 makelib byte_copy.o byte_cr.o str_len.o
--- djbfft-0.76/hier.c.orig	1999-09-30 22:25:58.000000000 +0200
+++ djbfft-0.76/hier.c	2004-01-17 16:39:21.312774411 +0100
@@ -2,12 +2,12 @@

 void hier()
 {
-  h(auto_home,-1,-1,02755);
+  h(auto_home,-1,-1,0755);

-  d(auto_home,"lib",-1,-1,02755);
-  c(auto_home,"lib","djbfft.a",-1,-1,0644);
+  d(auto_home,"lib",-1,-1,0755);
+  c(auto_home,"lib",LIBDJBFFT,-1,-1,LIBPERMS);

-  d(auto_home,"include",-1,-1,02755);
+  d(auto_home,"include",-1,-1,0755);
   c(auto_home,"include","real4.h",-1,-1,0644);
   c(auto_home,"include","real8.h",-1,-1,0644);
   c(auto_home,"include","complex4.h",-1,-1,0644);


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>djbfft</Name>
        <Homepage>http://cr.yp.to/djbfft.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>public-domain</License>
        <IsA>library</IsA>
        Fast float library
        <Description>An extremely fast library for floating-point convolution.</Description>
        <Archive sha1sum="df9d258a75183c10592d937ee2d2befc01a8a0f6" type="targz">http://cr.yp.to/djbfft/djbfft-0.76.tar.gz</Archive>
        <Patches>
            <Patch level="1">gcc3.patch</Patch>
            <Patch level="1">shared.patch</Patch>
            <Patch>headers.patch</Patch>
        </Patches>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-03-01</Date>
            <Version>0.76</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>0.76</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.76</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>djbfft</Name>
        Hızlı küsürlü sayı kitaplığı
        <Description xml:lang="tr">djbfft çok hızlı küsürlü sayı bükülme kitaplığıdır.</Description>
    </Source>

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

WorkDir="fftw-%s-pl1" % get.srcVERSION()

def setup():
    autotools.autoreconf("-fi")

    shelltools.copytree("../fftw-%s-pl1" % get.srcVERSION(), "../fftw-%s-double" % get.srcVERSION())
    shelltools.copytree("../fftw-%s-pl1" % get.srcVERSION(), "../fftw-%s-long-double" % get.srcVERSION())
    shelltools.copytree("../fftw-%s-pl1" % get.srcVERSION(), "../fftw-%s-quad" % get.srcVERSION())

    autotools.configure("--enable-sse \
                         --enable-shared \
                         --disable-static \
                         --disable-dependency-tracking \
                         --enable-threads \
                         --enable-fortran \
                         --enable-single")

    shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
    autotools.configure("--enable-quad-precision \
                         --enable-shared \
                         --disable-static \
                         --disable-dependency-tracking \
                         --enable-fortran \
                         --enable-threads")

    # The only difference here is that there is no --enable-float
    shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    autotools.configure("--enable-sse2 \
                         --enable-shared \
                         --disable-static \
                         --enable-fortran \
                         --disable-dependency-tracking \
                         --enable-threads")

    # The only difference here is --enable-long-double
    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.configure("--enable-shared \
                         --disable-static \
                         --disable-dependency-tracking \
                         --enable-threads \
                         --enable-fortran \
                         --enable-long-double")

#def check():
    #autotools.make("check")

    #shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    #autotools.make("check")

    #shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    #autotools.make("check")

    #shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
    #autotools.make("check")

def build():
    autotools.make()

    shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    autotools.make()

    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.make()

    shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
    autotools.make()

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

    shelltools.cd("../fftw-%s-double" % get.srcVERSION())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../fftw-%s-long-double" % get.srcVERSION())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../fftw-%s-quad" % get.srcVERSION())
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    shelltools.cd("../fftw-%s-pl1" % get.srcVERSION())

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>fftw3</Name>
        <Homepage>http://www.fftw.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A library for computing the discrete Fourier transform (DFT)
        <Description>fftw3 is a C subroutine library for computing the discrete Fourier transform (DFT) in one or more dimensions, of arbitrary input size, and of both real and complex data (as well as of even/odd data, i.e. the discrete cosine/sine transforms or DCT/DST).</Description>
        <Archive sha1sum="b7730928b6b420733a6fd08c18616bf8ae4f625d" type="targz">ftp://ftp.fftw.org/pub/fftw/fftw-3.3.6-pl1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libgfortran</Dependency>
            <Dependency>libquadmath</Dependency>
            <Dependency>gettext</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>fftw3</Name>
        <RuntimeDependencies>
            <Dependency>libquadmath</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="info">/usr/share/info</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-02-17</Date>
            <Version>3.3.6</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.3.4</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>3.3.4</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>fftw3</Name>
        Ayrık Fourier dönüşümü hesaplamak için bir kütüphane
        <Description xml:lang="tr">fftw3, ayrık Fourier dönüşümü hesaplamak için kullanılabilecek bir C kütüphanesidir.</Description>
        <Description xml:lang="fr">FFTW v3 est une librairie sous-routine C pour le calcul discret de transformation de Fourier (DFT) dans une ou plusieurs dimensions, pour une entrée de taille arbitraire, aussi bien pour des données réeles ou complexes (ainsi que les données paires/impaires, i.e. la transformation discrète cosinus/sinus ou DCT/DST).</Description>
        <Description xml:lang="es">FFTW v3 es una librería con subrutinas C para computar la transformación Fourier discreta (DFT) en una o más dimensiones, con longitud de entrada arbitraria, para datos reales y complejos (y también de datos par/impar, i.e. transformación discreta coseno/seno DCT/DST).</Description>
    </Source>

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


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

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

def setup():
    shelltools.export("CFLAGS","%s -fwrapv" % get.CFLAGS())

    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static")

def build():
    autotools.make()

def install():
    autotools.install()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gsl</Name>
        <Homepage>http://www.gnu.org/software/gsl/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <IsA>library</IsA>
        GNU scientific library
        <Description>The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers.</Description>
        <Archive sha1sum="7aa27dd7e5d6e3d4e4dc8b2daec18a6e68615fb9" type="targz">https://ftp.gnu.org/gnu/gsl/gsl-2.3.tar.gz</Archive>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-02-16</Date>
            <Version>2.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.16</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-30</Date>
            <Version>1.16</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>gsl</Name>
        GNU bilimsel kütüphane
        <Description xml:lang="tr">C ve C++ programcıları tarafından kullanılan nümerik kütüphane</Description>
        <Description xml:lang="fr">La librairie scientifique GNU (GSL) est une librairie numérique pour programmes C et C++.</Description>
        <Description xml:lang="es">GNU Scientific Library (GSL) es una libería numérica para programadores C y C++.</Description>
    </Source>

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

def setup():
    shelltools.copy("INSTALL/make.inc.gfortran", "make.inc")

    if get.ARCH() == "x86_64":
        pisitools.dosed("make.inc", "-O2", "%s -fPIC -m64 -funroll-all-loops" % get.CFLAGS())
        pisitools.dosed("make.inc", "NOOPT    =", "NOOPT    =-m64 -fPIC ")
    else:
        pisitools.dosed("make.inc", "-O2", "%s -fPIC -funroll-all-loops" % get.CFLAGS())

    shelltools.makedirs("build")
    shelltools.cd("build")
    options = "-DCMAKE_INSTALL_LIBDIR=lib \
               -DBUILD_SHARED_LIBS=ON \
               -DBUILD_TESTING=OFF"

    if get.buildTYPE() == "static":
        options = "-DCMAKE_INSTALL_LIBDIR=lib \
                   -DBUILD_SHARED_LIBS=OFF \
                   -DBUILD_TESTING=OFF"

    cmaketools.configure(options, sourceDir="..")

def build():
    shelltools.cd("build")
    cmaketools.make()

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

    shelltools.cd("../")
    pisitools.dodoc("LICENSE", "README.md")


code:
diff -Nuar lapack-3.2.1.orig/BLAS/SRC/Makefile lapack-3.2.1/BLAS/SRC/Makefile
--- lapack-3.2.1.orig/BLAS/SRC/Makefile	2010-08-16 13:40:39.106209859 +0300
+++ lapack-3.2.1/BLAS/SRC/Makefile	2010-08-16 13:46:46.288212746 +0300
@@ -163,6 +163,12 @@

 FRC:
 	@FRC=$(FRC)
+shared:
+	rm -f *.o
+	ar x ../../blas_LINUX.a
+	$(CC) $(CFLAGS) -fPIC $(LDFLAGS) *.o -lgfortran -lc -lm -shared -Wl,-soname,libblas.so.3 -o libblas.so.3.2.1
+	ln -s libblas.so.3.2.1 libblas.so.3
+	ln -s libblas.so.3.2.1 libblas.so

 clean:
 	rm -f *.o
diff -Nuar lapack-3.2.1.orig/Makefile lapack-3.2.1/Makefile
--- lapack-3.2.1.orig/Makefile	2010-08-16 13:40:39.130213129 +0300
+++ lapack-3.2.1/Makefile	2010-08-16 13:44:58.463216507 +0300
@@ -8,8 +8,7 @@

 all: lapack_install lib lapack_testing blas_testing

-lib: lapacklib tmglib
-#lib: blaslib variants lapacklib tmglib
+lib: blaslib variants lapacklib tmglib

 clean: cleanlib cleantesting cleanblas_testing

@@ -18,10 +17,10 @@
 	  ./testdlamch; ./testsecond; ./testdsecnd; ./testversion )

 blaslib:
-	( cd BLAS/SRC; $(MAKE) )
+	( cd BLAS/SRC; $(MAKE); $(MAKE) shared )

 lapacklib:	lapack_install
-	( cd SRC; $(MAKE) )
+	( cd SRC; $(MAKE); $(MAKE) shared )

 variants:
 	( cd SRC/VARIANTS ; $(MAKE))
diff -Nuar lapack-3.2.1.orig/SRC/Makefile lapack-3.2.1/SRC/Makefile
--- lapack-3.2.1.orig/SRC/Makefile	2010-08-16 13:40:39.165210958 +0300
+++ lapack-3.2.1/SRC/Makefile	2010-08-16 13:53:41.417213085 +0300
@@ -408,6 +408,13 @@
 FRC:
 	@FRC=$(FRC)

+shared:
+	rm -rf *.o
+	ar x ../lapack_LINUX.a
+	$(CC) $(CFLAGS) -fPIC $(LDFLAGS) *.o -L../BLAS/SRC -lblas -lgfortran -lc -lm -shared -Wl,-soname,liblapack.so.3 -o liblapack.so.3.2.1
+	ln -s liblapack.so.3.2.1 liblapack.so.3
+	ln -s liblapack.so.3.2.1 liblapack.so
+
 clean:
 	rm -f *.o


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lapack</Name>
        <Homepage>http://www.netlib.org/lapack</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        Linear Algebra PACKage
        <Description>LAPACK is a standard library for numerical linear algebra.  LAPACK provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems.</Description>
        <Archive sha1sum="55ac9d6be510883c5442c8aca967722cdf58fb29" type="targz">http://www.netlib.org/lapack/lapack-3.8.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libgfortran</Dependency>
            <Dependency>cmake</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>blas</Name>
        Basic Linear Algebra Subprograms
        <Description>Blas is a standard library which provides a number of basic algorithms for numerical algebra.</Description>
        <RuntimeDependencies>
            <Dependency>libgfortran</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libblas.so*</Path>
        </Files>
    </Package>

    <Package>
        <Name>blas-devel</Name>
        Development files for blas
        <BuildType>static</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">blas</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libblas.a</Path>
            <Path fileType="library">/usr/lib/pkgconfig/blas.pc</Path>
        </Files>
    </Package>

    <Package>
        <Name>lapack</Name>
        <RuntimeDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>libgfortran</Dependency>
            <Dependency version="current">blas</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="library">/usr/lib/liblapack.so*</Path>
        </Files>
    </Package>

    <Package>
        <Name>lapack-devel</Name>
        Development files for lapack
        <BuildType>static</BuildType>
        <RuntimeDependencies>
            <Dependency release="current">lapack</Dependency>
            <Dependency release="current">blas-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/cmake</Path>
            <Path fileType="library">/usr/lib/liblapack.a</Path>
            <Path fileType="library">/usr/lib/pkgconfig/lapack.pc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-02-01</Date>
            <Version>3.8.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvari@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-04-15</Date>
            <Version>3.7.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.5.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-12-23</Date>
            <Version>3.5.0</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>lapack</Name>
        Doğrusal cebir paketi
        <Description xml:lang="tr">LAPACK, nümerik doğrusal cebir için yazılmış standart bir kütüphanedir. Eşanlı doğrusal denklemler sistemini, doğrusal denklemler sistemindeki en küçük kareler tekniğini, özdeğer ve tekil değer problemlerini çözmek için pekçok yordamlar içerir.</Description>
    </Source>

    <Package>
        <Name>blas</Name>
        Temel lineer cebir yordamları
    </Package>

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

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


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

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

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

def build():
    autotools.make()

def check():
    autotools.make("check")

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


code:
diff -Naur libqalculate-0.9.6.old/po/POTFILES.in libqalculate-0.9.6/po/POTFILES.in
--- libqalculate-0.9.6.old/po/POTFILES.in	2005-06-01 14:13:50.000000000 -0400
+++ libqalculate-0.9.6/po/POTFILES.in	2007-07-08 20:21:17.000000000 -0400
@@ -1,6 +1,7 @@
 # List of source files containing translatable strings.
 [encoding: UTF-8]
 src/qalc.cc
+src/defs2doc.cc
 libqalculate/BuiltinFunctions.cc
 libqalculate/Calculator.cc
 libqalculate/DataSet.cc
@@ -12,3 +13,10 @@
 libqalculate/Unit.cc
 libqalculate/Variable.cc
 libqalculate/util.cc
+data/currencies.xml.in
+data/datasets.xml.in
+data/elements.xml.in
+data/functions.xml.in
+data/planets.xml.in
+data/units.xml.in
+data/variables.xml.in


code:
diff -Naur libqalculate-0.9.6/libqalculate/Number.cc libqalculate-0.9.6.new/libqalculate/Number.cc
--- libqalculate-0.9.6/libqalculate/Number.cc	2007-05-18 04:03:22.000000000 -0400
+++ libqalculate-0.9.6.new/libqalculate/Number.cc	2008-04-01 10:46:53.000000000 -0400
@@ -15,6 +15,7 @@
 #include "Calculator.h"

 #include <sstream>
+#include <climits>
 #include "util.h"

 #define REAL_PRECISION_FLOAT_RE(x)		cln::cl_float(cln::realpart(x), cln::float_format(PRECISION + 1))


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libqalculate</Name>
        <Homepage>http://qalculate.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Multi-purpose calculator library
        <Description>libqalculate underpins the Qalculate! multi-purpose desktop calculator for GNU/Linux.</Description>
        <Archive sha1sum="b8fbfe49860da8fdd2b6f71e078cab7ce01e1dd7" type="targz">https://github.com/Qalculate/libqalculate/releases/download/v0.9.10/libqalculate-0.9.10.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cln-devel</Dependency>
            <Dependency>gmp-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>glib2-devel</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency>intltool</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">libqalculate-0.9.6-check-fix.patch</Patch>
            <Patch level="1">libqalculate-0.9.6-gcc4.3.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libqalculate</Name>
        <RuntimeDependencies>
            <Dependency>cln</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>glib2</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>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="data">/usr/share/qalculate</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>0.9.10</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.9.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-14</Date>
            <Version>0.9.7</Version>
            <Comment>First release</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libqalculate</Name>
        Genel amaçlı hesap makinesi kütüphanesi
        <Description xml:lang="tr">libqalculate, Qalculate! hesap makinesi tarafından ihtiyaç duyulan genel amaçlı bir kütüphanedir.</Description>
        Qalculate ! est une calculatrice de bureau multi-usage pour GNU/Linux.
    </Source>

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

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

def build():
    autotools.make()

def install():
    autotools.install()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libspiro</Name>
        <Homepage>http://libspiro.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Library to simplify the drawing of beautiful curves
        <Description>libspiro is a library that will take an array of spiro control points and convert them into a series of bezier splines which can then be used in the myriad of ways the world has come to use beziers.</Description>
        <Archive sha1sum="3991232d290e50c05c8e804040ed23482421e2c7" type="targz">https://github.com/fontforge/libspiro/releases/download/0.5.20150702/libspiro-0.5.20150702.tar.gz</Archive>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-09-20</Date>
            <Version>0.5.20150702</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>20071029</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-14</Date>
            <Version>20071029</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>libspiro</Name>
        Eğri çizimi kütüphanesi
        <Description xml:lang="tr">libspiro, verilen kontrol noktalarını bezier eğrilerine çeviren bir kütüphanedir.</Description>
    </Source>

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


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

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

def setup():
    shelltools.export("CPPFLAGS", "-DNDEBUG -fPIC")
    shelltools.export("CFLAGS", "-g -Wall -Wconversion")
    shelltools.export("FC", "gfortran")
    shelltools.export("F90", "gfortran")
    shelltools.export("FFLAGS", "-fPIC %s" % get.CFLAGS())
    shelltools.export("FCFLAGS", "-fPIC %s" % get.CFLAGS())
    shelltools.export("F90FLAGS", "-fPIC %s" % get.CFLAGS())

    autotools.configure("--enable-shared \
                         --enable-netcdf-4 \
                         --enable-dap-netcdf \
                         --disable-static \
                        ")

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

def build():
    autotools.make()

def check():
    autotools.make("-j1 check")

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

    #pisitools.dodoc("README")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>netcdf</Name>
        <Homepage>http://my.unidata.ucar.edu/content/software/netcdf/index.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>UCAR-Unidata</License>
        <IsA>library</IsA>
        Scientific library and interface for array oriented data access
        <Description>netcdf (network common data form) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.</Description>
        <Archive sha1sum="5642daf99f780fcfed4893c6bba36ee0c0710ec2" type="targz">ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.4.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>hdf5-devel</Dependency>
            <Dependency>curl-devel</Dependency>
            <Dependency>libgfortran</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>netcdf</Name>
        <RuntimeDependencies>
            <Dependency>hdf5</Dependency>
            <Dependency>curl</Dependency>
            <Dependency>libgfortran</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="info">/usr/share/info</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="4">
            <Date>2017-08-16</Date>
            <Version>4.4.1</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-04-16</Date>
            <Version>4.4.1</Version>
            <Comment>Rebuild with new toolchain.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>4.4.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-25</Date>
            <Version>4.4.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>netcdf</Name>
        Dizi (array) odaklı veri erişimi için arayüz ve bilimsel kütüphane
        Librairie scientifique et interface pour l'accès aux données orientées tableaux.
    </Source>

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

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

def setup():
    #autotools.autoreconf("-vfi")
    #libtools.libtoolize("--force --copy")

    # May have trouble with cpu flags
    autotools.configure("--with-x \
                         --enable-libxmi \
                         --enable-libplotter \
                         --enable-ps-fonts-in-pcl \
                         --enable-static=no")

    # fix rpath handling
    shelltools.system("sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool")
    shelltools.system("sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool")

def build():
    autotools.make()

def install():
    autotools.install("datadir=%s/usr/share" % get.installDIR())

    # these files are too generic named and they conflict with other packages like cel
    for f in shelltools.ls("%s/usr/bin" % get.installDIR()):
        pisitools.rename("/usr/bin/%s" % f, "plotutils-%s" % f)

    pisitools.dodoc("AUTHORS", "COMPAT", "ChangeLog", "KNOWN_BUGS", "NEWS", "ONEWS", "PROBLEMS", "README", "THANKS", "TODO")

    # FIXME: we are not installing the ps fonts now, we should check if it breaks ghostscript and printers
    # read INSTALL.fonts for more info


code:
diff -up plotutils-2.6/libplot/z_write.c.png15 plotutils-2.6/libplot/z_write.c
--- plotutils-2.6/libplot/z_write.c.png15	2008-07-15 20:54:10.000000000 -0400
+++ plotutils-2.6/libplot/z_write.c	2012-03-22 13:26:48.251676137 -0400
@@ -164,7 +164,11 @@ _pl_z_maybe_output_image (S___(Plotter *
     }

   /* cleanup after libpng errors (error handler does a longjmp) */
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+  if (setjmp (png_jmpbuf(png_ptr)))
+#else
   if (setjmp (png_ptr->jmpbuf))
+#endif
     {
       png_destroy_write_struct (&png_ptr, (png_info **)NULL);
       return -1;
@@ -444,7 +448,11 @@ _our_error_fn_stdio (png_struct *png_ptr
 #endif
     }

+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+  longjmp (png_jmpbuf(png_ptr), 1);
+#else
   longjmp (png_ptr->jmpbuf, 1);
+#endif
 }

 static void
@@ -515,7 +523,11 @@ _our_error_fn_stream (png_struct *png_pt
 #endif
     }

+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4
+  longjmp (png_jmpbuf(png_ptr), 1);
+#else
   longjmp (png_ptr->jmpbuf, 1);
+#endif
 }

 static void


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>plotutils</Name>
        <Homepage>http://www.gnu.org/software/plotutils/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        2D vector graphics library
        <Description>PlotUtils is a powerful C/C++ function library for exporting 2D vector graphics.</Description>
        <Archive sha1sum="7921301d9dfe8991e3df2829bd733df6b2a70838" type="targz">ftp://ftp.heanet.ie/pub/gnu/plotutils/plotutils-2.6.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libXaw-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>libXt-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">plotutils-2.6-png15.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>plotutils</Name>
        <RuntimeDependencies>
            <Dependency>libSM</Dependency>
            <Dependency>libICE</Dependency>
            <Dependency>libXmu</Dependency>
            <Dependency>libXaw</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>libXt</Dependency>
            <Dependency>libX11</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>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/libplot</Path>
            <Path fileType="data">/usr/share/ode</Path>
            <Path fileType="data">/usr/share/pic2plot</Path>
            <Path fileType="data">/usr/share/tek2plot</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-05-16</Date>
            <Version>2.6</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.6</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-14</Date>
            <Version>2.6</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>plotutils</Name>
        2B vektörel grafik araçları
        <Description xml:lang="tr">2B vektörel grafik üretmeye yarayan C/C++ kütüphanesi ve araçlar</Description>
    </Source>

    <Package>
        <Name>plotutils-devel</Name>
        plotutils 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 = "cfitsio"

def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--enable-reentrant")

def build():
    autotools.make("shared")

    for t in ("fpack", "funpack", "imcopy", "fitscopy"):
        autotools.make(t)

    pisitools.dosed("cfitsio.pc", "\\$\\{prefix\\}/include", "${prefix}/include/%s" % get.srcNAME())

def check():
    autotools.make("testprog")

def install():
    for t in ("fpack", "funpack", "imcopy", "fitscopy"):
        pisitools.dobin(t)

    autotools.rawInstall("DESTDIR=%s LIBDIR=lib INCLUDEDIR=include/%s" % (get.installDIR(), get.srcNAME()))

    pisitools.remove("/usr/lib/*.a")

    pisitools.domove("/usr/lib/libcfitsio.so", "/usr/lib", "libcfitsio.so.0.0")
    pisitools.dosym("libcfitsio.so.0.0", "/usr/lib/libcfitsio.so.0")
    pisitools.dosym("libcfitsio.so.0.0", "/usr/lib/libcfitsio.so")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>cfitsio</Name>
        <Homepage>http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        C and Fortran library for manipulating FITS files
        <Description>CFITSIO provides simple high-level routines for reading and writing FITS files that insulate the programmer from the internal complexities of the FITS format.</Description>
        <Archive sha1sum="48bd6389dcff3228508eec70384f2cae3a88ff32" type="targz">http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio3370.tar.gz</Archive>
    </Source>

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

    <Package>
        <Name>cfitsio-devel</Name>
        Development files for cfitsio
        <RuntimeDependencies>
            <Dependency release="current">cfitsio</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-15</Date>
            <Version>3.370</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.370</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-18</Date>
            <Version>3.370</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>cfitsio</Name>
        FITS dosyalarını düzenleyebilmek için gerekli C ve Fortran kütüphanesi
        <Description xml:lang="tr">CFITSIO, FITS dosyalarını okumak/yazmak için programcıyı FITS formatının kendi karmaşıklığından soyutlayan yüksek seviyede fonksiyonlar sağlar.</Description>
    </Source>

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


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

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

def setup():
    autotools.configure("--prefix=/usr \
                         --mandir=/usr/share/man \
                         --enable-optimization \
                         --enable-javascript-api \
                         --enable-threadsafe \
                         --enable-exceptions \
                         --enable-man \
                         --with-mesa \
                         --disable-debug \
                         --enable-shared \
                         --enable-html \
                         --disable-maintainer-mode \
                         --disable-dependency-tracking \
                         --enable-system-expat")

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

def build():
    autotools.make()

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

    pisitools.dodoc("AUTHORS", "NEWS", "README*", "RELNOTES", "THANKS")

    # remove conflict man file with openssl
    pisitools.remove("/usr/share/man/man3/threads.3")
    # remove conflict man file with libftdi-devel
    pisitools.remove("/usr/share/man/man3/deprecated.3")


code:
diff -uNr Coin-2.4.6.orig/man/man3/Makefile.am Coin-2.4.6/man/man3/Makefile.am
--- Coin-2.4.6.orig/man/man3/Makefile.am	2007-04-10 11:24:07.000000000 +0200
+++ Coin-2.4.6/man/man3/Makefile.am	2007-04-14 06:27:29.000000000 +0200
@@ -8,6 +8,7 @@
 	"$(sim_ac_doxygen_exe)" docs/coin.doxygen )

 filelist.txt: SoDB.3
+	rm -f *_.3
 	ls *.3 >filelist.txt

diff -uNr Coin-2.4.6.orig/man/man3/Makefile.in Coin-2.4.6/man/man3/Makefile.in
--- Coin-2.4.6.orig/man/man3/Makefile.in	2007-04-10 11:24:07.000000000 +0200
+++ Coin-2.4.6/man/man3/Makefile.in	2007-04-14 06:27:30.000000000 +0200
@@ -421,6 +421,7 @@
 	"$(sim_ac_doxygen_exe)" docs/coin.doxygen )

 filelist.txt: SoDB.3
+	rm -f *_.3
 	ls *.3 >filelist.txt

 @BUILD_MANPAGES_TRUE@all-local: filelist.txt


code:
diff -uNr Coin-2.4.6.orig/src/glue/openal_wrapper.c Coin-2.4.6/src/glue/openal_wrapper.c
--- Coin-2.4.6.orig/src/glue/openal_wrapper.c	2007-04-10 11:23:51.000000000 +0200
+++ Coin-2.4.6/src/glue/openal_wrapper.c	2007-04-14 06:31:09.000000000 +0200
@@ -107,7 +107,7 @@
       int idx;
       const char * possiblelibnames[] = {
         NULL, /* is set below */
-        "openal", "openal32", "libopenal.so",
+	@LIBOPENAL_SONAME@,
         NULL
       };


code:
diff -Naur Coin-2.5.0.gcc-4.7.0/include/Inventor/system/inttypes.h.in Coin-2.5.0.inttypes/include/Inventor/system/inttypes.h.in
--- Coin-2.5.0.gcc-4.7.0/include/Inventor/system/inttypes.h.in	2007-10-01 03:23:30.000000000 +0200
+++ Coin-2.5.0.inttypes/include/Inventor/system/inttypes.h.in	2012-01-11 10:21:14.784355818 +0100
@@ -32,146 +32,12 @@
     int32_t uint32_t
     int64_t uint64_t
     intptr_t uintptr_t
-
-  (The 64-bit types are not guaranteed to be present, check for
-  HAVE_INT64_T and HAVE_UINT64_T.)
 */

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

-/* Block of defines set up by the configure script. Protected with the
-   #ifndef wrapper in case config.h was already included -- so we
-   don't confuse the compiler to think we redefine already #define'd
-   constants. */
-#ifndef COIN_CONFIGURE_BUILD /* (start wrapper) */
-
-/*
-  This file was autogenerated by our configuration process
-  specifically for this build configuration:
-*/
-#undef COIN_CONFIGURE_BUILD
-#undef COIN_CONFIGURE_HOST
-#undef COIN_CONFIGURE_TARGET
-/*
-  The bit-type definitions may also be dependent on the compiler,
-  compiler version and C library.
-
-  So note that the bit-type definitions below might not match on other
-  systems. Be extremely careful if you for whatever reason is
-  installing this as a cross-platform header file (i.e.: you
-  shouldn't).
-*/
-
-/* FIXME: isn't it likely that the HAVE_*_H defines below could crash
-   with defines in application code in a project using Autoconf
-   configure?  20010711 mortene. */
-
-/* The <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-/* The <stdint.h> header file. */
-#undef HAVE_STDINT_H
-/* The <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-/* The <stddef.h> header file. */
-#undef HAVE_STDDEF_H
-
-
-/* If the system defines any of the types "on it's own", the
-   respective #define will be set below. */
-#undef HAVE_INT8_T
-#undef HAVE_UINT8_T
-#undef HAVE_INT16_T
-#undef HAVE_UINT16_T
-#undef HAVE_INT32_T
-#undef HAVE_UINT32_T
-#undef HAVE_INT64_T
-#undef HAVE_UINT64_T
-#undef HAVE_INTPTR_T
-#undef HAVE_UINTPTR_T
-
-/* The type which the configure script found to match the given
-   bitwidth. */
-#undef COIN_INT8_T
-#undef COIN_UINT8_T
-#undef COIN_INT16_T
-#undef COIN_UINT16_T
-#undef COIN_INT32_T
-#undef COIN_UINT32_T
-#undef COIN_INT64_T
-#undef COIN_UINT64_T
-#undef COIN_INTPTR_T
-#undef COIN_UINTPTR_T
-
-#endif /* (end wrapper) ! COIN_CONFIGURE_BUILD */
-
-
-/* The header files should be listed in the same order as they are in
-   the SIM_AC_DEFINE_BYTESIZE_TYPES detection macro. This is the same
-   order as the one Autoconf (currently upcoming 2.51) is using for its
-   standard includes.  20010711 larsa */
-#ifdef HAVE_INTTYPES_H
 #include <inttypes.h>
-#else
-#ifdef HAVE_STDINT_H
-#include <stdint.h>
-#endif /* HAVE_STDINT_H */
-#endif
-#ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
-#endif /* HAVE_SYS_TYPES_H */
-#ifdef HAVE_STDDEF_H
 #include <stddef.h>
-#endif /* HAVE_STDDEF_H */
-
-
-#if !defined(HAVE_INT8_T) && defined(COIN_INT8_T)
-typedef COIN_INT8_T int8_t;
-#define HAVE_INT8_T 1
-#endif /* !HAVE_INT8_T && COIN_INT8_T */
-
-#if !defined(HAVE_UINT8_T) && defined(COIN_UINT8_T)
-typedef COIN_UINT8_T uint8_t;
-#define HAVE_UINT8_T 1
-#endif /* !HAVE_UINT8_T && COIN_UINT8_T */
-
-#if !defined(HAVE_INT16_T) && defined(COIN_INT16_T)
-typedef COIN_INT16_T int16_t;
-#define HAVE_INT16_T 1
-#endif /* !HAVE_INT16_T && COIN_INT16_T */
-
-#if !defined(HAVE_UINT16_T) && defined(COIN_UINT16_T)
-typedef COIN_UINT16_T uint16_t;
-#define HAVE_UINT16_T 1
-#endif /* !HAVE_UINT16_T && COIN_UINT16_T */
-
-#if !defined(HAVE_INT32_T) && defined(COIN_INT32_T)
-typedef COIN_INT32_T int32_t;
-#define HAVE_INT32_T 1
-#endif /* !HAVE_INT32_T && COIN_INT32_T */
-
-#if !defined(HAVE_UINT32_T) && defined(COIN_UINT32_T)
-typedef COIN_UINT32_T uint32_t;
-#define HAVE_UINT32_T 1
-#endif /* !HAVE_UINT32_T && COIN_UINT32_T */
-
-#if !defined(HAVE_INT64_T) && defined(COIN_INT64_T)
-typedef COIN_INT64_T int64_t;
-#define HAVE_INT64_T 1
-#endif /* !HAVE_INT64_T && COIN_INT64_T */
-
-#if !defined(HAVE_UINT64_T) && defined(COIN_UINT64_T)
-typedef COIN_UINT64_T uint64_t;
-#define HAVE_UINT64_T 1
-#endif /* !HAVE_UINT64_T && COIN_UINT64_T */
-
-#if !defined(HAVE_INTPTR_T) && defined(COIN_INTPTR_T)
-typedef COIN_INTPTR_T intptr_t;
-#define HAVE_INTPTR_T 1
-#endif /* !HAVE_INTPTR_T && COIN_INTPTR_T */
-
-#if !defined(HAVE_UINTPTR_T) && defined(COIN_UINTPTR_T)
-typedef COIN_UINTPTR_T uintptr_t;
-#define HAVE_UINTPTR_T 1
-#endif /* !HAVE_UINTPTR_T && COIN_UINTPTR_T */

 #endif /* !COIN_INTTYPES_H */


code:
diff -Nuar Coin-3.1.3.orig/src/fonts/freetype.cpp Coin-3.1.3/src/fonts/freetype.cpp
--- Coin-3.1.3.orig/src/fonts/freetype.cpp	2010-03-02 15:20:09.000000000 +0200
+++ Coin-3.1.3/src/fonts/freetype.cpp	2013-08-25 00:38:16.678172194 +0300
@@ -32,6 +32,8 @@

    20050613 mortene. */

+#include <cstdlib>
+#include <cmath>
 #include "fonts/freetype.h"

 #ifdef HAVE_CONFIG_H


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>coin</Name>
        <Homepage>http://www.coin3d.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        Coin3D is a high-level 3D graphics toolkit.
        <Description>Is a high-level 3D graphics toolkit, fully compatible with SGI Open Inventor 2.1.</Description>
        <Archive sha1sum="8e9f05628461963623686d3ec53102214e233dd1" type="targz">https://bitbucket.org/Coin3D/coin/downloads/Coin-3.1.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libXext-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
            <Dependency>libSM-devel</Dependency>
            <Dependency>libICE-devel</Dependency>
            <Dependency>doxygen</Dependency>
            <Dependency>libglade-devel</Dependency>
        </BuildDependencies>
         <Patches>
            <Patch>clang-name-lookup.diff</Patch>
            <Patch level="1">fix_gcc_4_8_1.patch</Patch>
            <Patch level="1">Coin-2.5.0-inttypes.patch</Patch>
            <Patch level="1">Coin-2.4.6-man3.diff</Patch>
         </Patches>
    </Source>

    <Package>
        <Name>coin</Name>
        <RuntimeDependencies>
            <Dependency>libXext</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>libSM</Dependency>
            <Dependency>libICE</Dependency>
            <Dependency>libglade</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share/Coin</Path>
        </Files>
    </Package>

    <Package>
        <Name>coin-devel</Name>
        Development files for coin
        <RuntimeDependencies>
            <Dependency version="current">coin</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>

    <Package>
        <Name>coin-docs</Name>
        Documents for Coin
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-15</Date>
            <Version>3.1.3</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.1.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-06-14</Date>
            <Version>3.1.3</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>coin</Name>
        3D Üst düzey grafiksel araç takımı
        <Description xml:lang="tr">coin,SGI Open Inventor 2.1 ile tam uyumlu grafiksel 3D araç takımı</Description>
    </Source>

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

    <Package>
       <Name>coin-docs</Name>
       coin belgeleri
    </Package>
</PISI>


code:
<PISI>
    <Name>science.misc</Name>
</PISI>


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

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

def setup():
    shelltools.makedirs("build")
    shelltools.cd("build")
    cmaketools.configure("-DCMAKE_BUILD_TYPE=Release", sourceDir="..")

def build():
    shelltools.cd("build")
    cmaketools.make()

def install():
    shelltools.cd("build")
    cmaketools.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>eigen3</Name>
        <Homepage>http://eigen.tuxfamily.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2-with-exceptions</License>
        <IsA>library</IsA>
        <Summary>Lightweight C++ template library for linear algebra</Summary>
        <Description>eigen3 is a lightweight C++ template library for vector and matrix math, a.k.a. linear algebra.</Description>
        <Archive sha1sum="b676f3f58549104e4f233e1b21354d8be435d8fd" type="tarbz2">http://bitbucket.org/eigen/eigen/get/3.3.3.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>freeglut-devel</Dependency>
            <Dependency>fftw3-devel</Dependency>
            <Dependency>gmp-devel</Dependency>
            <Dependency>mpfr-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>eigen3</Name>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="doc">/usr/share</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-05-17</Date>
            <Version>3.3.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>3.2.5</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-07-23</Date>
            <Version>3.2.5</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>eigen3</Name>
        <Summary xml:lang="tr">Lineer cebir için hafif bir C++ şablon kitaplığı</Summary>
        <Description xml:lang="tr">Eigen3, lineer cebir için kullanılan hafif bir C++ şablon kitaplığıdır.</Description>
    </Source>
</PISI>


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

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

def setup():
    autotools.configure("--prefix=/usr \
                         --enable-cxx \
                         --enable-hl \
                         --enable-threadsafe \
                         --enable-fortran \
                         --enable-build-mode=production \
                         --enable-linux-lfs \
                         --enable-unsupported \
                         --disable-static \
                         --disable-parallel \
                         --disable-sharedlib-rpath \
                         --disable-dependency-tracking \
                         --docdir=/usr/share/doc/hdf5/ \
                         --with-pthread=/usr/lib/ \
                         --with-pic")

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

def build():
    autotools.make()

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

    pisitools.dodoc("ACKNOWLEDGMENTS", "COPYING", "README*", "release_docs/HISTORY-*", "release_docs/RELEASE.txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>hdf5</Name>
        <Homepage>http://www.hdfgroup.org/HDF5/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <License>NCSA-HDF</License>
        <IsA>library</IsA>
        NCSA Hierarchical Data Format (HDF) Software Library and Utilities
        <Description>HDF5 is a general purpose library and file format for storing scientific data.</Description>
        <Archive sha1sum="2f34251186fa9e59887d8f094bc0bc90187d0aa4" type="tarbz2">https://support.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.10.0-patch1.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>time</Dependency>
            <Dependency>libgfortran</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>net-tools</Dependency>
        </BuildDependencies>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-04-15</Date>
            <Version>1.10.0</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-10</Date>
            <Version>1.8.17</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-02</Date>
            <Version>1.8.16</Version>
            <Comment>Version Bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>hdf5</Name>
        NCSA hiyerarşik veri biçimi (Hierarchical Data Format - HDF) kütüphanesi ve araçları.
        <Description xml:lang="tr">HDF5, bilimsel verileri saklamak için kullanılan bir dosya biçimi tanımını ve bu dosyaları kullanmak için gerekli kütüphane ve araçları sağlar.</Description>
        <Description xml:lang="fr">HDF5 est une librairie généraliste ainsi qu'un format de fichier pour stocker des informations scientifiques.</Description>
        <Description xml:lang="es">HDF5 es una librería de uso general y un formato de archivos para almacenar datos científicos</Description>
    </Source>

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


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

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

def setup():
    shelltools.system("./bootstrap")
    autotools.configure("--disable-static")

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

def build():
    autotools.make()

def check():
    autotools.make("check")

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

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


code:
diff -up ilmbase-1.0.3/IlmBase.pc.in.pkgconfig ilmbase-1.0.3/IlmBase.pc.in
--- ilmbase-1.0.3/IlmBase.pc.in.pkgconfig	2012-07-17 18:27:25.000000000 -0500
+++ ilmbase-1.0.3/IlmBase.pc.in	2012-09-08 11:11:15.913468312 -0500
@@ -9,3 +9,4 @@ Description: Base math and exception lib
 Version: @ILMBASE_VERSION@
 Libs: -L${libdir} -lImath -lHalf -lIex -lIexMath -lIlmThread @PTHREAD_LIBS@
 Cflags: @PTHREAD_CFLAGS@ -I${OpenEXR_includedir}
+Requires.private: gl glu


code:
diff -up ilmbase-2.0.1/IlmThread/Makefile.am.no_undefined ilmbase-2.0.1/IlmThread/Makefile.am
--- ilmbase-2.0.1/IlmThread/Makefile.am.no_undefined	2013-06-18 14:51:38.000000000 -0500
+++ ilmbase-2.0.1/IlmThread/Makefile.am	2013-08-28 21:04:25.793391766 -0500
@@ -14,7 +14,7 @@ libIlmThread_la_LDFLAGS = -version-info
 if LIB_SUFFIX_EXISTS
 libIlmThread_la_LDFLAGS += -release @LIB_SUFFIX@
 endif
-libIlmThread_la_LIBADD = ../Iex/libIex.la
+libIlmThread_la_LIBADD = ../Iex/libIex.la $(PTHREAD_LIBS)

 libIlmThreadincludedir = $(includedir)/OpenEXR

diff -up ilmbase-2.0.1/IlmThread/Makefile.in.no_undefined ilmbase-2.0.1/IlmThread/Makefile.in
--- ilmbase-2.0.1/IlmThread/Makefile.in.no_undefined	2013-06-18 14:55:24.000000000 -0500
+++ ilmbase-2.0.1/IlmThread/Makefile.in	2013-08-28 21:04:55.395049371 -0500
@@ -253,7 +253,7 @@ libIlmThread_la_SOURCES = IlmThreadPool.

 libIlmThread_la_LDFLAGS = -version-info @LIBTOOL_VERSION@ \
 	-no-undefined $(am__append_1)
-libIlmThread_la_LIBADD = ../Iex/libIex.la
+libIlmThread_la_LIBADD = ../Iex/libIex.la $(PTHREAD_LIBS)
 libIlmThreadincludedir = $(includedir)/OpenEXR
 libIlmThreadinclude_HEADERS = IlmThreadPool.h IlmThread.h \
 			      IlmThreadSemaphore.h IlmThreadMutex.h \


code:
--- IexMath/IexMathFpu.cpp.orig	2012-07-26 20:51:55.000000000 +0200
+++ IexMath/IexMathFpu.cpp	2012-10-04 15:30:47.000000000 +0200
@@ -27,8 +27,7 @@
 #endif

-#ifdef HAVE_UCONTEXT_H
-
+#if defined(HAVE_UCONTEXT_H) && (defined(x86_64) || defined(i386_))

 #include <ucontext.h>
 #include <signal.h>


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ilmbase</Name>
        <Homepage>http://www.openexr.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        Several utility libraries from ILM (Industrial  Light & Magic) used by OpenEXR
        <Description>IlmBase are a set of utility libraries released by ILM, and used in their OpenEXR implementation. Included in this package you can find; libHalf (a class named Half for manipulating "half" values (16-bit floating point format) as if they were a built-in C++ data type), libIlmThread (a thread abstraction library on top of pthreads), libImath (a math library with support for matrices, 2d and 3d transformations, solvers for linear/quadratic/cubic equations and more), libIex (an exception handling library).</Description>
        <Archive sha1sum="70d864bc704f276942cb10479f2cb98646ce6ad4" type="targz">http://download.savannah.nongnu.org/releases/openexr/ilmbase-2.2.0.tar.gz</Archive>
        <Patches>
            <Patch level="1">ilmbase-2.0.1-no_undefined.patch</Patch>

            <Patch level="1">ilmbase-1.0.3-pkgconfig.patch</Patch>
        </Patches>
    </Source>

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

    <Package>
        <Name>ilmbase-devel</Name>
        Development files for ilmbase
        <RuntimeDependencies>
            <Dependency release="current">ilmbase</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-02</Date>
            <Version>2.2.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@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>2014-05-25</Date>
            <Version>2.0.1</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>ilmbase</Name>
        ILM (Industrial Light & Magic) şirketinden OpenEXR tarafından kullanılan çeşitli araç ve kitaplıklar
        <Description xml:lang="tr">IlmBase, ILM tarafından yayınlanan ve onların OpenEXR gerçeklemelerinde kullandıkları kitaplıkları içerir. Bu pakette; libHalf ("yarım" değerleri (16-bit kayan noktalı sayı biçimi) C++ dilinin kendi tipleriymiş gibi kullanan Half sınıfı), libIlmThread (pthread üerine yazılmış bir soyutlama kitaplığı), libImath (matris, 2 ve 3 boyutlu dönüşümler, lineer, ikinci ve üçüncü dereceden denklem çözücü destekli matematik kitaplığı), libIex (istisna işleme kitaplığı) kitaplıklarını bulabilirsiniz.</Description>
    </Source>

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

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

#WorkDir = "libindi-%s" % get.srcVERSION()

def setup():
    cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
                          -DCMAKE_INSTALL_LIBDIR=lib \
                          -DBUILD_ROOT=%s" % get.installDIR())

def build():
    cmaketools.make()

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

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