code:
?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libspatialite</Name>
        <Homepage>https://www.gaia-gis.it/fossil/libspatialite/index</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MPL-1.0</License>
        <PartOf>science.gis</PartOf>
        <IsA>library</IsA>
        SQLite extension to support spatial data types and operations
        <Description>SpatiaLite is an open source library intended to extend the SQLite core to support fully fledged Spatial SQL capabilities.</Description>
        <Archive sha1sum="ea77fe89055cb5b4fad597b4ac4a4eefb610a867" type="targz">http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.3.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>geos-devel</Dependency>
            <Dependency>libfreexl-devel</Dependency>
            <Dependency>proj-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libspatialite</Name>
        <RuntimeDependencies>
            <Dependency>geos</Dependency>
            <Dependency>libfreexl</Dependency>
            <Dependency>proj</Dependency>
            <Dependency>sqlite</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libxml2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/*</Path>
        </Files>
    </Package>

    <Package>
        <Name>libspatialite-devel</Name>
        Development files for libspatialite
        <RuntimeDependencies>
            <Dependency release="current">libspatialite</Dependency>
            <Dependency>geos-devel</Dependency>
            <Dependency>libfreexl-devel</Dependency>
            <Dependency>proj-devel</Dependency>
            <Dependency>sqlite-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include/*</Path>
            <Path fileType="library">/usr/lib/pkgconfig/*</Path>
            <Path fileType="library">/usr/lib/libspatialite.so</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-04-18</Date>
            <Version>4.3.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-09</Date>
            <Version>4.2.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-01-29</Date>
            <Version>4.2.0</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>libspatialite</Name>
        SQLite extension to support spatial data types and operations
        <Description xml:lang="en">SpatiaLite is an open source library intended to extend the SQLite core to support fully fledged Spatial SQL capabilities.</Description>
    </Source>

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

repo_name: ayhanyalcinsoy/main


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

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

WorkDir = "ogdi-3.2.0"

shelltools.export("TOPDIR", "%s/%s" % (get.workDIR(), WorkDir))

def setup():
    autotools.configure('--with-zlib \
                         --with-projlib="-L/usr/lib -lproj" \
                         --with-expat \
                         --with-binconfigs')

def build():
    shelltools.export("TARGET", "Linux")
    shelltools.export("CFG", "release")
    autotools.make("-j1")

def install():
    pisitools.dolib_so("bin/Linux/*.so")
    pisitools.dosym("/usr/lib/libogdi.so", "/usr/lib/libogdi.so.3")

    for i in ["gltpd", "ogdi_import", "ogdi_info"]:
        pisitools.dobin("bin/Linux/%s" % i)
    pisitools.dobin("ogdi-config")

    pisitools.insinto("/usr/lib/pkgconfig", "ogdi.pc")

    pisitools.insinto("/usr/include", "ogdi/include/*.h")

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


code:
diff --git a/config/generic.mak.in b/config/generic.mak.in
index 1cb74f5..2e9cabe 100644
--- a/config/generic.mak.in
+++ b/config/generic.mak.in
@@ -35,16 +35,16 @@ AR		= ar cr
 # Compilation and linking flags
 #
 SHLIB_CFLAGS	= @C_PIC@
-COMMON_CFLAGS	= $(OPTIMIZATION) @CFLAGS@ @C_WFLAGS@ -DUNIX=1
+COMMON_CFLAGS	= $(OPTIMIZATION) @CFLAGS@ @C_WFLAGS@ -DUNIX=1 @C_PIC@

-SHLIB_LDFLAGS	= -shared
-COMMON_LDFLAGS  = $(OPTIMIZATION)
+SHLIB_LDFLAGS	= -shared -Wl,-soname,$(LIB_PREFIX)$(TOBEGEN).$(SHLIB_EXT).$(OGDI_MAJOR)
+COMMON_LDFLAGS  = $(OPTIMIZATION) $(LDFLAGS)

 RPC_INCLUDES = @RPC_INCLUDES@

 UCB_STATICLIB =

-TCL_INCLUDE = -I/usr/include/tcl8.3
+TCL_INCLUDE = -I${prefix}/include
 TCL_LINKLIB =

 #
diff --git a/config/unix.mak b/config/unix.mak
index e3af578..927b0fc 100644
--- a/config/unix.mak
+++ b/config/unix.mak
@@ -55,7 +55,7 @@ LINK_SW		= -L
 ifeq ($(CFG),debug)
 OPTIMIZATION	= -g
 else
-OPTIMIZATION	= -O
+OPTIMIZATION	=
 endif

 #


code:
Index: ogdi-dfsg/configure
===================================================================
--- ogdi-dfsg.orig/configure
+++ ogdi-dfsg/configure
@@ -3939,7 +3939,7 @@
 fi

-for ac_header in projects.h
+for ac_header in proj_api.h
 do
 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
@@ -4085,8 +4085,8 @@
    { (exit 1); exit 1; }; }
   fi
   if test "$ac_cv_header_projects_h" = no ; then
-    { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&5
-echo "$as_me: error: Unable to find external PROJ.4 projects.h file, give path or use default internal library." >&2;}
+    { { echo "$as_me:$LINENO: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&5
+echo "$as_me: error: Unable to find external PROJ.4 proj_api.h file, give path or use default internal library." >&2;}
    { (exit 1); exit 1; }; }
   fi

@@ -4095,12 +4095,12 @@

 elif test "$with_proj" != "no" -a "$with_proj" != "" ; then

-  if test -r $with_proj/include/projects.h ; then
-    echo "checking for $with_proj/include/projects.h ... found"
+  if test -r $with_proj/include/proj_api.h ; then
+    echo "checking for $with_proj/include/proj_api.h ... found"
     PROJ_INCLUDE=-I$with_proj/include
   else
-    { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/projects.h" >&5
-echo "$as_me: error: Unable to find $with_proj/include/projects.h" >&2;}
+    { { echo "$as_me:$LINENO: error: Unable to find $with_proj/include/proj_api.h" >&5
+echo "$as_me: error: Unable to find $with_proj/include/proj_api.h" >&2;}
    { (exit 1); exit 1; }; }
   fi

Index: ogdi-dfsg/configure.in
===================================================================
--- ogdi-dfsg.orig/configure.in
+++ ogdi-dfsg/configure.in
@@ -81,13 +81,13 @@
 if test "$with_proj" = "yes" ; then

   AC_CHECK_LIB(proj,pj_init,PROJ_SETTING=external,PROJ_SETTING=missing,)
-  AC_CHECK_HEADERS(projects.h)
+  AC_CHECK_HEADERS(proj_api.h)

   if test $PROJ_SETTING = missing ; then
     AC_MSG_ERROR([Unable to find external PROJ.4 library, give path or use default internal library.])
   fi
   if test "$ac_cv_header_projects_h" = no ; then
-    AC_MSG_ERROR([Unable to find external PROJ.4 projects.h file, give path or use default internal library.])
+    AC_MSG_ERROR([Unable to find external PROJ.4 proj_api.h file, give path or use default internal library.])
   fi

   PROJ_SETTING=external
@@ -95,11 +95,11 @@

 elif test "$with_proj" != "no" -a "$with_proj" != "" ; then

-  if test -r $with_proj/include/projects.h ; then
-    echo "checking for $with_proj/include/projects.h ... found"
+  if test -r $with_proj/include/projapi.h ; then
+    echo "checking for $with_proj/include/proj_api.h ... found"
     PROJ_INCLUDE=-I$with_proj/include
   else
-    AC_MSG_ERROR([Unable to find $with_proj/include/projects.h])
+    AC_MSG_ERROR([Unable to find $with_proj/include/proj_api.h])
   fi

   if test -r $with_proj/lib/libproj.so ; then
Index: ogdi-dfsg/ogdi/c-api/client.c
===================================================================
--- ogdi-dfsg.orig/ogdi/c-api/client.c
+++ ogdi-dfsg/ogdi/c-api/client.c
@@ -1576,7 +1576,7 @@
   char *error_message;
   ecs_CtlPoints *cpts;
   ecs_Result *res;
-  PJ *tempproj;
+  projPJ tempproj;

   if (multiblock != 0) {
     res = &cln_dummy_result;
@@ -1598,7 +1598,7 @@
   /* Check if the projection is valid */

   if (strncmp(projection,PROJ_LONGLAT,13) != 0) {
-    tempproj = (PJ *) cln_ProjInit(projection);
+    tempproj = (projPJ) cln_ProjInit(projection);
     if(tempproj == NULL) {
       res = &cln_dummy_result;
       ecs_SetError(res,1,"This projection string is invalid");
@@ -1775,7 +1775,7 @@
   ecs_Result *res;
   register ecs_Client *cln;
   char *server_proj;
-  PJ *oldtarget,*oldsource;
+  projPJ oldtarget,oldsource;
   ecs_Region oldreg;
   int oldisprojequal;
   int oldisTargetLL;
@@ -1874,7 +1874,7 @@

   if (strncmp(projection,PROJ_LONGLAT,13) != 0) {
     cln->isTargetLL = FALSE;
-    cln->target = (PJ *) cln_ProjInit(projection);
+    cln->target = (projPJ) cln_ProjInit(projection);
     if(cln->target == NULL) {
       goto setprojerror;
     }
@@ -1920,7 +1920,7 @@

   if (strncmp(server_proj,PROJ_LONGLAT,13) != 0) {
     cln->isSourceLL = FALSE;
-    cln->source = (PJ *) cln_ProjInit(server_proj);
+    cln->source = (projPJ) cln_ProjInit(server_proj);
     if(cln->source == NULL) {
       goto setprojerror;
     }
@@ -2328,13 +2328,13 @@
  *	char *d: Projection name
  *
  *  OUT
- *	return PJ *: New projection structure. If NULL, the operation
+ *	return projPJ: New projection structure. If NULL, the operation
  *	is a failure.
  *
  *----------------------------------------------------------------------
  */

-PJ *cln_ProjInit(d)
+projPJ cln_ProjInit(d)
      char *d;
 {
   int i,n;
@@ -2343,7 +2343,7 @@
   char *l;
   int longueur;
   char *c;
-  PJ *retour;
+  projPJ retour;

   if ((c = (char *) malloc(strlen(d)+3)) == NULL) {
     return NULL;
@@ -2378,7 +2378,7 @@
     n++;
   }

-  retour = (PJ *) pj_init(n, (char **) tableau);
+  retour = (projPJ) pj_init(n, (char **) tableau);
   free(c);
   free(tableau);

Index: ogdi-dfsg/ogdi/c-api/ecsgeo.c
===================================================================
--- ogdi-dfsg.orig/ogdi/c-api/ecsgeo.c
+++ ogdi-dfsg/ogdi/c-api/ecsgeo.c
@@ -310,7 +310,7 @@
      char *projection;
      double X1,Y1,X2,Y2;
 {
-  PJ *proj;
+  projPJ proj;
   char **argv;
   int argc;
   double lon1,lat1,lon2,lat2;
Index: ogdi-dfsg/ogdi/datum_driver/usa/dtusa.c
===================================================================
--- ogdi-dfsg.orig/ogdi/datum_driver/usa/dtusa.c
+++ ogdi-dfsg/ogdi/datum_driver/usa/dtusa.c
@@ -26,7 +26,12 @@
   ********************************************************************/

 #include "ecs.h"
-#include "projects.h"
+#include "proj_api.h"
+
+/* Definition from Proj.4 */
+projUV nad_cvt(projUV, int, struct CTABLE *);
+struct CTABLE *nad_init(projCtx ctx, char *);
+void nad_free(struct CTABLE *);

 typedef struct {
   struct CTABLE *dtptr;
@@ -124,7 +129,7 @@
     strcat(pathfile,"/");
     strcat(pathfile,table);

-    ptr->dtptr = nad_init(pathfile);
+    ptr->dtptr = nad_init(pj_get_default_ctx(), pathfile);
     if (ptr->dtptr == NULL) {
       ptr->count--;
       return FALSE;
Index: ogdi-dfsg/ogdi/include/ecs_util.h
===================================================================
--- ogdi-dfsg.orig/ogdi/include/ecs_util.h
+++ ogdi-dfsg/ogdi/include/ecs_util.h
@@ -105,12 +105,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>

-#include "projects.h"
-
-/* Ensure we are compatible with PROJ.4.4.x and PROJ.4.3.x */
-#ifndef USE_PROJUV
-#  define projUV UV
-#endif
+#include "proj_api.h"

 #include "ecs.h"

@@ -1054,8 +1049,8 @@
      ecs_Family currentSelectionFamily: Current layer selection type
      char *tclprocname: attribute callback procedure for tcl
      char *target_proj: Projection descriptor
-     PJ *target: target (c interface) projection descriptors
-     PJ *source: source (driver) projection descriptors
+     projPJ target: target (c interface) projection descriptors
+     projPJ source: source (driver) projection descriptors
      ecs_Datum targetdatum: target datum information
      ecs_Datum sourcedatum: source datum information
      void *dthandle: Handle to the datum driver
@@ -1092,8 +1088,8 @@
   ecs_Family currentSelectionFamily; /* Current layer selection type */
   char *tclprocname;      /* attribute callback procedure for tcl */
   char *target_proj;
-  PJ *target;             /* source and target projection descriptors */
-  PJ *source;
+  projPJ target;             /* source and target projection descriptors */
+  projPJ source;
   int isSourceLL;         /* flags to avoid unnecessary computation */
   int isTargetLL;
   int isProjEqual;
@@ -1165,7 +1161,7 @@

 /* Projection conversion functions */

-PJ *cln_ProjInit                     _ANSI_ARGS_((char *d));
+projPJ cln_ProjInit                     _ANSI_ARGS_((char *d));
 int cln_CompareProjections           _ANSI_ARGS_((int ClientID));
 int cln_UpdateMaxRegion              _ANSI_ARGS_((int ClientID, double x, double y, ecs_Region *gr, int sens, int first));
 int cln_ConvRegion                   _ANSI_ARGS_((int ClientID, ecs_Region *gr, int sens));
Index: ogdi-dfsg/contrib/ogdi_import/ogdi_import.c
===================================================================
--- ogdi-dfsg.orig/contrib/ogdi_import/ogdi_import.c
+++ ogdi-dfsg/contrib/ogdi_import/ogdi_import.c
@@ -63,12 +63,7 @@
 #include "ecs.h"
 #include "shapefil.h"
 #include <assert.h>
-#include "projects.h"
-
-#ifndef PJ_VERSION
-#define projPJ PJ*
-#define projUV UV
-#endif
+#include "proj_api.h"

 static int	ClientID = -1;
 static int      bNoDict = FALSE;
Index: ogdi-dfsg/contrib/ogdi_info/ogdi_info.c
===================================================================
--- ogdi-dfsg.orig/contrib/ogdi_info/ogdi_info.c
+++ ogdi-dfsg/contrib/ogdi_info/ogdi_info.c
@@ -63,7 +63,7 @@
  */

 #include "ecs.h"
-#include "projects.h"
+#include "proj_api.h"

 static int	ClientID = -1;
 static int      bNoDict = FALSE;
@@ -214,7 +214,7 @@
 /*                          DumpGlobalRegion()                          */
 /************************************************************************/

-static int DumpGlobalRegion( ecs_Region * region, PJ * proj_defn )
+static int DumpGlobalRegion( ecs_Region * region, projPJ proj_defn )

 {
     ecs_Result	*result;
@@ -398,7 +398,7 @@

 {
     ecs_Result *result;
-    PJ	       *proj_defn = NULL;
+    projPJ     proj_defn = NULL;

 /* -------------------------------------------------------------------- */
 /*      Close old client if there is one active.                        */


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ogdi</Name>
        <Homepage>http://ogdi.sourceforge.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        Open Geographical Datastore Interface, a GIS support library
        <Description>OGDI is an application programming interface (API) that uses a standardized access methods to work in conjunction with GIS software packages (the application) and various geospatial data products.</Description>
        <Archive sha1sum="3bbd25a6a72718519f01e642bf6fd84e0975487d" type="targz">mirrors://sourceforge/ogdi/ogdi-3.2.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>proj-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>expat-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">ogdi-3.1.6-fpic.patch</Patch>

        </Patches>
    </Source>

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

    <Package>
        <Name>ogdi-devel</Name>
        Development files for ogdi
        <RuntimeDependencies>
            <Dependency release="current">ogdi</Dependency>
            <Dependency>proj-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>expat-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-04-15</Date>
            <Version>3.2.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-09</Date>
            <Version>3.2.0_beta2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-31</Date>
            <Version>3.2.0_beta2</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>ogdi</Name>
        Açık coğrafik veri kayıt arayüzü, GIS destek kütüphanesi
        <Description xml:lang="tr">OGDI, GIS yazılım paketleri ve çeşitli mekansal/coğrafik veri ürünleriyle çalışabilecek standart erişim metodları içeren açık bir uygulama geliştirme arayüzüdür.</Description>
    </Source>

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


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

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

def setup():
    autotools.configure()

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

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

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

    pisitools.dodoc("ChangeLog", "CREDITS", "NEWS", "README.postgis", "STYLE", "TODO")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>postgis</Name>
        <Homepage>http://postgis.refractions.net</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <Summary>Adds support for geographic objects to PostgreSQL</Summary>
        <Description>PostGIS adds support for geographic objects to the PostgreSQL object-relational database. In effect, PostGIS "spatially enables" the PostgreSQL server, allowing it to be used as a backend spatial database for geographic information systems (GIS), much like ESRI's SDE or Oracle's Spatial extension.</Description>
        <Archive sha1sum="16138045f43237e8f231c2ca1bd5e72e39c1c61c" type="targz">http://download.osgeo.org/postgis/source/postgis-2.3.6.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>proj-devel</Dependency>
            <Dependency>gdal-devel</Dependency>
            <Dependency>geos-devel</Dependency>
            <Dependency>json-c-devel</Dependency>
            <Dependency>postgresql-lib</Dependency>
            <Dependency>libxslt-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>postgis</Name>
        <RuntimeDependencies>
            <Dependency>proj</Dependency>
            <Dependency>gdal</Dependency>
            <Dependency>geos</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libxml2</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>json-c</Dependency>
            <Dependency>postgresql-lib</Dependency>
            <Dependency>postgresql-server</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="data">/usr/share</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2018-02-16</Date>
            <Version>2.3.6</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-05-30</Date>
            <Version>2.3.2</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.2.1</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>2.2.1</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>postgis</Name>
        <Summary xml:lang="tr">Coğrafi nesneler için PostgreSQL eklentisi</Summary>
        <Description xml:lang="tr">postgis, PostgreSQL nesne yönelimli veritabanı için coğrafi nesneler ekleme desteği sağlayan bir pakettir. Gerçekte postgis, coğrafi bilgi sistemleri için kullanılan spatial veritabanı bağlayıcısında olduğu gibi (daha çok ESRI'nin SDE'sine veya Oracle'in Spatial eklentisine benzer) PostgreSQL sunucusunda da benzer işleri yapabilmenizi sağlar.</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 get

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

def build():
    autotools.make()

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

    #pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/test*")
    #pisitools.insinto("%s/share/proj" % get.defaultprefixDIR(), "nad/pj_out*.dist")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>proj</Name>
        <Homepage>http://trac.osgeo.org/proj/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Cartographic Projections library
        <Description>Proj.4 cartographic projection software with updated NAD27 grids.</Description>
        <Archive sha1sum="2f5a1f13d65f9ac35bbad1e3449f32b256967856" type="targz">http://download.osgeo.org/proj/proj-4.9.3.tar.gz</Archive>
        <Archive sha1sum="bf0059be06359f71eb0349e64f97502bde1ce5bc" type="zip" target="proj-4.9.3/nad">http://download.osgeo.org/proj/proj-datumgrid-1.6.zip</Archive>
    </Source>

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

    <Package>
        <Name>proj-devel</Name>
        Development files for proj
        <RuntimeDependencies>
            <Dependency release="current">proj</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="3">
            <Date>2017-04-15</Date>
            <Version>4.9.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>4.9.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-02-24</Date>
            <Version>4.9.2</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>proj</Name>
        Kartografik görüntüleme kütüphanesi
        <Description xml:lang="tr">Güncellenmiş NAD27 gridlerini de içeren kartografik görüntüleme yazılımı.</Description>
    </Source>

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


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="e8e80feaee25ee28551fd08c90fab8722cc5e460" type="targz">ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.5.0.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="5">
            <Date>2018-02-16</Date>
            <Version>4.5.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <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="68a85356f19b9e4e2478d0091e0b1dcf14731073" type="targz">http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio3420.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="4">
            <Date>2018-02-13</Date>
            <Version>3.420</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <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
       };