code:
diff -up netpbm-10.47.05/converter/other/anytopnm.security-scripts netpbm-10.47.05/converter/other/anytopnm
--- netpbm-10.47.05/converter/other/anytopnm.security-scripts	2009-12-10 08:34:36.000000000 +0100
+++ netpbm-10.47.05/converter/other/anytopnm	2010-03-16 21:28:09.000000000 +0100
@@ -510,10 +510,7 @@ else
     inputFile="-"
 fi

-tempdir="${TMPDIR-/tmp}/anytopnm.$$"
-mkdir -m 0700 $tempdir || \
-  { echo "Could not create temporary file. Exiting."; exit 1;}
-trap 'rm -rf $tempdir' 0
+tempdir=$(mktemp -d -t anytopnm.XXXXXXXXXX) || exit 1

 # Take out all spaces
 # Find the filename extension for last-ditch efforts later
@@ -539,9 +536,17 @@ if [ "$filetype" = "unknown" ]; then
     echo "$progname: unknown file type.  " \
         "'file' says mime type is '$mimeType', " 1>&2
     echo "type description is '$typeDescription'" 1>&2
+    if [ -d "$tempdir" ] ; then
+        rm -rf "$tempdir"
+    fi
+
     exit 1
     fi

 convertIt $file $filetype

+if [ -d "$tempdir" ] ; then
+    rm -rf "$tempdir"
+fi
+
 exit 0
diff -up netpbm-10.47.05/editor/pamstretch-gen.security-scripts netpbm-10.47.05/editor/pamstretch-gen
--- netpbm-10.47.05/editor/pamstretch-gen.security-scripts	2009-12-10 08:34:32.000000000 +0100
+++ netpbm-10.47.05/editor/pamstretch-gen	2010-03-16 21:28:47.000000000 +0100
@@ -31,13 +31,9 @@ if [ "$1" = "" ]; then
   exit 1
 fi

-tempdir="${TMPDIR-/tmp}/pamstretch-gen.$$"
-mkdir -m 0700 $tempdir || \
-  { echo "Could not create temporary file. Exiting."; exit 1;}
+tempfile=$(mktemp /tmp/pnmig.XXXXXXXXXX) || exit 1
 trap 'rm -rf $tempdir' 0 1 3 15

-tempfile=$tempdir/pnmig
-
 if ! cat $2 >$tempfile 2>/dev/null; then
   echo 'pamstretch-gen: error reading file' 1>&2
   exit 1
diff -up netpbm-10.47.05/editor/pnmmargin.security-scripts netpbm-10.47.05/editor/pnmmargin
--- netpbm-10.47.05/editor/pnmmargin.security-scripts	2009-12-10 08:34:32.000000000 +0100
+++ netpbm-10.47.05/editor/pnmmargin	2010-03-16 21:28:09.000000000 +0100
@@ -11,15 +11,11 @@
 # documentation.  This software is provided "as is" without express or
 # implied warranty.

-tempdir="${TMPDIR-/tmp}/pnmmargin.$$"
-mkdir -m 0700 $tempdir || \
-  { echo "Could not create temporary file. Exiting." 1>&2; exit 1;}
-trap 'rm -rf $tempdir' 0 1 3 15
-
-tmp1=$tempdir/pnmm1
-tmp2=$tempdir/pnmm2
-tmp3=$tempdir/pnmm3
-tmp4=$tempdir/pnmm4
+tmpdir=$(mktemp -d -t ppmmargin.XXXXXXX) || exit 1
+tmp1="$tmpdir/tmp1"
+tmp2="$tmpdir/tmp2"
+tmp3="$tmpdir/tmp3"
+tmp4="$tmpdir/tmp4"

 color="-gofigure"
 plainopt=""
@@ -90,6 +86,7 @@ else
         -white | -black )
         pnmpad $plainopt $color \
             -left=$size -right=$size -top=$size -bottom=$size $tmp1
+	rm -rf "$tmpdir"
         exit
         ;;
         * )
@@ -102,7 +99,4 @@ else
     pnmcat -lr $tmp2 $tmp1 $tmp2 > $tmp4
     pnmcat -tb $plainopt $tmp3 $tmp4 $tmp3
 fi
-
-
-
-
+rm -rf "$tmpdir"
diff -up netpbm-10.47.05/editor/ppmfade.security-scripts netpbm-10.47.05/editor/ppmfade
--- netpbm-10.47.05/editor/ppmfade.security-scripts	2009-12-10 08:34:32.000000000 +0100
+++ netpbm-10.47.05/editor/ppmfade	2010-03-16 21:28:09.000000000 +0100
@@ -14,6 +14,7 @@
 #
 #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 use strict;
+use File::Temp "tempdir";

 my $SPREAD =  1;
 my $SHIFT =   2;
@@ -111,20 +112,26 @@ if ($first_file ne "undefined") {

 print("Frames are " . $width . "W x " . $height . "H\n");

+#
+# We create a tmp-directory right here
+#
+my $tmpdir = tempdir("ppmfade.XXXXXX", CLEANUP => 1);
+
+
 if ($first_file eq "undefined") {
     print "Fading from black to ";
-    system("ppmmake \\#000 $width $height >junk1$$.ppm");
+    system("ppmmake \\#000 $width $height >$tmpdir/junk1$$.ppm");
 } else {
     print "Fading from $first_file to ";
-    system("cp", $first_file, "junk1$$.ppm");
+    system("cp", $first_file, "$tmpdir/junk1$$.ppm");
 }

 if ($last_file eq "undefined") {
     print "black.\n";
-    system("ppmmake \\#000 $width $height >junk2$$.ppm");
+    system("ppmmake \\#000 $width $height >$tmpdir/junk2$$.ppm");
 } else {
     print "$last_file\n";
-    system("cp", $last_file, "junk2$$.ppm");
+    system("cp", $last_file, "$tmpdir/junk2$$.ppm");
 }

 #
@@ -132,14 +139,14 @@ if ($last_file eq "undefined") {
 #

 # Here's what our temporary files are:
-#   junk1$$.ppm: The original (fade-from) image
-#   junk2$$.ppm: The target (fade-from) image
-#   junk3$$.ppm: The frame of the fade for the current iteration of the
-#                the for loop.
-#   junk1a$$.ppm: If the fade involves a ppmmix sequence from one intermediate
-#                 image to another, this is the first frame of that
-#                 sequence.
-#   junk2a$$.ppm: This is the last frame of the above-mentioned ppmmix sequence
+#   $tmpdir/junk1$$.ppm: The original (fade-from) image
+#   $tmpdir/junk2$$.ppm: The target (fade-from) image
+#   $tmpdir/junk3$$.ppm: The frame of the fade for the current iteration of the
+#                	 the for loop.
+#   $tmpdir/junk1a$$.ppm: If the fade involves a ppmmix sequence from one intermediate
+#                         image to another, this is the first frame of that
+#                         sequence.
+#   $tmpdir/junk2a$$.ppm: This is the last frame of the above-mentioned ppmmix sequence

 my $i;    # Frame number
 for ($i = 1; $i <= $nframes; $i++) {
@@ -147,147 +154,147 @@ for ($i = 1; $i <= $nframes; $i++) {
     if ($mode eq $SPREAD) {
         if ($i <= 10) {
             my $n = $spline20[$i] * 100;
-            system("ppmspread $n junk1$$.ppm >junk3$$.ppm");
+            system("ppmspread $n $tmpdir/junk1$$.ppm >$tmpdir/junk3$$.ppm");
         } elsif ($i <= 20) {
             my $n;
             $n = $spline20[$i] * 100;
-            system("ppmspread $n junk1$$.ppm >junk1a$$.ppm");
+            system("ppmspread $n $tmpdir/junk1$$.ppm >$tmpdir/junk1a$$.ppm");
             $n = (1-$spline20[$i-10]) * 100;
-            system("ppmspread $n junk2$$.ppm >junk2a$$.ppm");
+            system("ppmspread $n $tmpdir/junk2$$.ppm >$tmpdir/junk2a$$.ppm");
             $n = $spline10[$i-10];
-            system("ppmmix $n junk1a$$.ppm junk2a$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1a$$.ppm $tmpdir/junk2a$$.ppm >$tmpdir/junk3$$.ppm");
         } else {
             my $n = (1-$spline20[$i-10])*100;
-            system("ppmspread $n junk2$$.ppm >junk3$$.ppm");
+            system("ppmspread $n $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
         }
     } elsif ($mode eq $SHIFT) {
         if ($i <= 10) {
             my $n = $spline20[$i] * 100;
-            system("ppmshift $n junk1$$.ppm >junk3$$.ppm");
+            system("ppmshift $n $tmpdir/junk1$$.ppm >$tmpdir/junk3$$.ppm");
         } elsif ($i <= 20) {
             my $n;
             $n = $spline20[$i] * 100;
-            system("ppmshift $n junk1$$.ppm >junk1a$$.ppm");
+            system("ppmshift $n $tmpdir/junk1$$.ppm >$tmpdir/junk1a$$.ppm");
             $n = (1-$spline20[$i-10])*100;
-            system("ppmshift $n junk2$$.ppm >junk2a$$.ppm");
+            system("ppmshift $n $tmpdir/junk2$$.ppm >$tmpdir/junk2a$$.ppm");
             $n = $spline10[$i-10];
-            system("ppmmix $n junk1a$$.ppm junk2a$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1a$$.ppm $tmpdir/junk2a$$.ppm >$tmpdir/junk3$$.ppm");
         } else {
             my $n = (1-$spline20[$i-10]) * 100;
-            system("ppmshift $n junk2$$.ppm >junk3$$.ppm");
+            system("ppmshift $n $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
         }
     } elsif ($mode eq $RELIEF) {
         if ($i == 1) {
-            system("ppmrelief junk1$$.ppm >junk1r$$.ppm");
+            system("ppmrelief $tmpdir/junk1$$.ppm >$tmpdir/junk1r$$.ppm");
         }
         if ($i <= 10) {
             my $n = $spline10[$i];
-            system("ppmmix $n junk1$$.ppm junk1r$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1r$$.ppm >$tmpdir/junk3$$.ppm");
         } elsif ($i <= 20) {
             my $n = $spline10[$i-10];
-            system("ppmmix $n junk1r$$.ppm junk2r$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1r$$.ppm $tmpdir/junk2r$$.ppm >$tmpdir/junk3$$.ppm");
         } else {
             my $n = $spline10[$i-20];
-            system("ppmmix $n junk2r$$.ppm junk2$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk2r$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
         }
         if ($i == 10) {
-            system("ppmrelief junk2$$.ppm >junk2r$$.ppm");
+            system("ppmrelief $tmpdir/junk2$$.ppm >$tmpdir/junk2r$$.ppm");
         }
     } elsif ($mode eq $OIL) {
         if ($i == 1) {
-            system("ppmtopgm junk1$$.ppm | pgmoil >junko$$.ppm");
-            system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
-                   ">junk1o$$.ppm");
+            system("ppmtopgm $tmpdir/junk1$$.ppm | pgmoil >$tmpdir/junko$$.ppm");
+            system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+                   ">$tmpdir/junk1o$$.ppm");
         }
         if ($i <= 10) {
             my $n = $spline10[$i];
-            system("ppmmix $n junk1$$.ppm junk1o$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1o$$.ppm >$tmpdir/junk3$$.ppm");
         } elsif ($i <= 20) {
             my $n = $spline10[$i-10];
-            system("ppmmix $n junk1o$$.ppm junk2o$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1o$$.ppm $tmpdir/junk2o$$.ppm >$tmpdir/junk3$$.ppm");
         } else {
             my $n = $spline10[$i-20];
-            system("ppmmix $n junk2o$$.ppm junk2$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk2o$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
         }
         if ($i == 10) {
-            system("ppmtopgm junk2$$.ppm | pgmoil >junko$$.ppm");
-            system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
-                   ">junk2o$$.ppm");
+            system("ppmtopgm $tmpdir/junk2$$.ppm | pgmoil >$tmpdir/junko$$.ppm");
+            system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+                   ">$tmpdir/junk2o$$.ppm");
         }
     } elsif ($mode eq $EDGE) {
         if ($i == 1) {
-            system("ppmtopgm junk1$$.ppm | pgmedge >junko$$.ppm");
-            system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
-                   ">junk1o$$.ppm");
+            system("ppmtopgm $tmpdir/junk1$$.ppm | pgmedge >$tmpdir/junko$$.ppm");
+            system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+                   ">$tmpdir/junk1o$$.ppm");
         }
         if ($i <= 10) {
             my $n = $spline10[$i];
-            system("ppmmix $n junk1$$.ppm junk1o$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1o$$.ppm >$tmpdir/junk3$$.ppm");
         } elsif ($i <= 20) {
             my $n = $spline10[$i-10];
-            system("ppmmix $n junk1o$$.ppm junk2o$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1o$$.ppm $tmpdir/junk2o$$.ppm >$tmpdir/junk3$$.ppm");
         } else {
             my $n = $spline10[$i-20];
-            system("ppmmix $n junk2o$$.ppm junk2$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk2o$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
         }
         if ($i == 10) {
-            system("ppmtopgm junk2$$.ppm | pgmedge >junko$$.ppm");
-            system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
-                   ">junk2o$$.ppm");
+            system("ppmtopgm $tmpdir/junk2$$.ppm | pgmedge >$tmpdir/junko$$.ppm");
+            system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+                   ">$tmpdir/junk2o$$.ppm");
         }
     } elsif ($mode eq $BENTLEY) {
         if ($i == 1) {
-            system("ppmtopgm junk1$$.ppm | pgmbentley >junko$$.ppm");
-            system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
-                   ">junk1o$$.ppm");
+            system("ppmtopgm $tmpdir/junk1$$.ppm | pgmbentley >$tmpdir/junko$$.ppm");
+            system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+                   ">$tmpdir/junk1o$$.ppm");
         }
         if ($i <= 10) {
             my $n = $spline10[$i];
-            system("ppmmix $n junk1$$.ppm junk1o$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1$$.ppm $tmpdir/junk1o$$.ppm >$tmpdir/junk3$$.ppm");
         } elsif ($i <= 20) {
             my $n = $spline10[$i-10];
-            system("ppmmix $n junk1o$$.ppm junk2o$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1o$$.ppm $tmpdir/junk2o$$.ppm >$tmpdir/junk3$$.ppm");
         } else {
             my $n = $spline10[$i-20];
-            system("ppmmix $n junk2o$$.ppm junk2$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk2o$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
         }
         if ($i == 10) {
-            system("ppmtopgm junk2$$.ppm | pgmbentley >junko$$.ppm");
-            system("rgb3toppm junko$$.ppm junko$$.ppm junko$$.ppm " .
-                   ">junk2o$$.ppm");
+            system("ppmtopgm $tmpdir/junk2$$.ppm | pgmbentley >$tmpdir/junko$$.ppm");
+            system("rgb3toppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm $tmpdir/junko$$.ppm " .
+                   ">$tmpdir/junk2o$$.ppm");
         }
     } elsif ($mode eq $BLOCK) {
         if ($i <= 10) {
             my $n = 1 - 1.9*$spline20[$i];
-            system("pamscale $n junk1$$.ppm | " .
-                   "pamscale -width $width -height $height >junk3$$.ppm");
+            system("pamscale $n $tmpdir/junk1$$.ppm | " .
+                   "pamscale -width $width -height $height >$tmpdir/junk3$$.ppm");
         } elsif ($i <= 20) {
             my $n = $spline10[$i-10];
-            system("ppmmix $n junk1a$$.ppm junk2a$$.ppm >junk3$$.ppm");
+            system("ppmmix $n $tmpdir/junk1a$$.ppm $tmpdir/junk2a$$.ppm >$tmpdir/junk3$$.ppm");
         } else {
             my $n = 1 - 1.9*$spline20[31-$i];
-            system("pamscale $n junk2$$.ppm | " .
-                   "pamscale -width $width -height $height >junk3$$.ppm");
+            system("pamscale $n $tmpdir/junk2$$.ppm | " .
+                   "pamscale -width $width -height $height >$tmpdir/junk3$$.ppm");
         }
         if ($i == 10) {
-            system("cp", "junk3$$.ppm", "junk1a$$.ppm");
-            system("pamscale $n junk2$$.ppm | " .
-                   "pamscale -width $width -height $height >junk2a$$.ppm");
+            system("cp", "$tmpdir/junk3$$.ppm", "$tmpdir/junk1a$$.ppm");
+            system("pamscale $n $tmpdir/junk2$$.ppm | " .
+                   "pamscale -width $width -height $height >$tmpdir/junk2a$$.ppm");
         }
     } elsif ($mode eq $MIX) {
         my $fade_factor = sqrt(1/($nframes-$i+1));
-        system("ppmmix $fade_factor junk1$$.ppm junk2$$.ppm >junk3$$.ppm");
+        system("ppmmix $fade_factor $tmpdir/junk1$$.ppm $tmpdir/junk2$$.ppm >$tmpdir/junk3$$.ppm");
     } else {
         print("Internal error: impossible mode value '$mode'\n");
     }

     my $outfile = sprintf("%s.%04d.ppm", $base_name, $i);
-    system("cp", "junk3$$.ppm", $outfile);
+    system("cp", "$tmpdir/junk3$$.ppm", $outfile);
 }

 #
 #  Clean up shop.
 #
-system("rm junk*$$.ppm");
+system("rm $tmpdir/junk*$$.ppm");

 exit(0);
diff -up netpbm-10.47.05/editor/ppmshadow.security-scripts netpbm-10.47.05/editor/ppmshadow
--- netpbm-10.47.05/editor/ppmshadow.security-scripts	2009-12-10 08:34:32.000000000 +0100
+++ netpbm-10.47.05/editor/ppmshadow	2010-03-16 21:28:09.000000000 +0100
@@ -72,9 +72,10 @@ sub makeConvolutionKernel($$) {

 my $tmpdir = $ENV{TMPDIR} || "/tmp";
-my $ourtmp = "$tmpdir/ppmshadow$$";
-mkdir($ourtmp, 0777) or
-    die("Unable to create directory for temporary files '$ourtmp");
+my $ourtmp; chomp($ourtmp = `mktemp -d -t PPMshadow.XXXXXX`);
+if ($? >> 8) {
+    die "Can't create directory for temporary files";
+}

 #   Process command line options


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>netpbm</Name>
        <Homepage>http://netpbm.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>app:console</IsA>
        A set of utilities to convert to/from the netpbm (and related) formats
        <Description>Netpbm is a toolkit for manipulation of graphic images, including conversion of images between a variety of different formats. There are over 300 separate tools in the package including converters for about 100 graphics formats.</Description>
        <Archive sha1sum="dc2354716996c8fe4c4836386e6c403ec2f15589" type="targz">http://source.pisilinux.org/1.0/netpbm-10.61.02.tar.gz</Archive>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="config.mk">config.mk</AdditionalFile>
        </AdditionalFiles>
        <BuildDependencies>
            <Dependency>jasper-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">netpbm-CAN-2005-2471.patch</Patch>
            <Patch level="1">netpbm-security-code.patch</Patch>
            <Patch level="1">netpbm-security-scripts.patch</Patch>
            <Patch level="1">library-link.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>netpbm</Name>
        <RuntimeDependencies>
            <Dependency>jasper</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libxml2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/netpbm</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

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

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>netpbm</Name>
        Netpbm vb. gibi formatlar arasında dönüşüm yapan araçlar serisi
    </Source>

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


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

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

def setup():
     shelltools.makedirs("build")

     shelltools.cd("build")
     cmaketools.configure("-DUSE_QT=0  \
                           -DCMAKE_INSTALL_PREFIX=/usr \
                           -DPYLIB_INSTALL_DIR=lib/python2.7/site-packages \
                           -DUSE_OCIO= OFF \
                           -DUSE_OPENSSL:BOOL=TRUE \
                           -DSTOP_ON_WARNING:BOOL=FALSE \
                           -DOIIO_BUILD_TESTS=OFF", sourceDir="..")

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

    cmaketools.make()

def install():
    shelltools.cd("build")

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

    #pisitools.dodoc("CREDITS", "LICENSE", "README.*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>openimageio</Name>
        <Homepage>https://sites.google.com/site/openimageio/home</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2+</License>
        <IsA>library</IsA>
        Library for reading and writing images
        <Description>OpenImageIO is a library for reading and writing images, and a bunch of related classes, utilities, and applications.</Description>
        <Archive sha1sum="96f7f96bb53dda71ceb850472b3293072cd9c31b" type="targz">https://github.com/OpenImageIO/oiio/archive/Release-1.7.12.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>openexr-devel</Dependency>
            <Dependency>ilmbase-devel</Dependency>
            <Dependency>glew-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>txt2man</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>webp-devel</Dependency>
            <Dependency>ffmpeg-devel</Dependency>
            <Dependency>opencv-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>giflib-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>jasper-devel</Dependency>
            <Dependency>libraw-devel</Dependency>
            <Dependency>openjpeg-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>openimageio</Name>
        <RuntimeDependencies>
            <Dependency>tiff</Dependency>
            <Dependency>webp</Dependency>
            <Dependency>boost</Dependency>
            <Dependency>opencv</Dependency>
            <Dependency>giflib</Dependency>
            <Dependency>ilmbase</Dependency>
            <Dependency>openjpeg</Dependency>
            <Dependency>openexr-libs</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>libraw</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>ffmpeg</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>python</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="doc">/usr/share</Path>
        </Files>
    </Package>

    <Package>
        <Name>openimageio-devel</Name>
        Development files for openimageio
        <RuntimeDependencies>
            <Dependency release="current">openimageio</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>webp-devel</Dependency>
            <Dependency>boost-devel</Dependency>
            <Dependency>opencv-devel</Dependency>
            <Dependency>giflib-devel</Dependency>
            <Dependency>ilmbase-devel</Dependency>
            <Dependency>openjpeg-devel</Dependency>
            <Dependency>openexr-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>libraw-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>ffmpeg-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <History>
        <Update release="5">
            <Date>2018-02-13</Date>
            <Version>1.7.12</Version>
            <Comment>Rebuild</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="4">
            <Date>2017-03-17</Date>
            <Version>1.7.12</Version>
            <Comment>Version bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-20</Date>
            <Version>1.6.14</Version>
            <Comment>Version bump.</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-15</Date>
            <Version>1.5.20</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-08</Date>
            <Version>1.5.20</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>openimageio</Name>
        Görüntüleri okuma ve yazma için bir kütüphane
    </Source>

    <Package>
        <Name>openimageio-devel</Name>
        openimageio için geliştirme başlıkları
    </Package>
</PISI>


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

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

def setup():
    options = "--enable-shared --disable-static --disable-silent-rules"

    if get.buildTYPE() == "emul32":
        shelltools.export("PKG_CONFIG_LIBDIR", "/usr/lib32/pkgconfig")

    shelltools.system("./bootstrap.sh")

    autotools.configure(options)

def build():
    autotools.make()

def install():
    if get.buildTYPE() == "emul32":
        pisitools.insinto("/usr/lib32", "libopenjpeg/.libs/libopenjpeg.so*")
        pisitools.insinto("/usr/lib32/pkgconfig", "libopenjpeg1.pc")
        pisitools.dosed("%s//usr/lib32/pkgconfig/libopenjpeg1.pc" % get.installDIR(),
                        get.emul32prefixDIR(),
                        get.defaultprefixDIR())
        return

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

    pisitools.dosym("openjpeg-1.5/openjpeg.h", "/usr/include/openjpeg.h")

    pisitools.dodoc("README*")


code:
diff -urN -x '*.orig' -x '*.rej' -x '*~' -x '.*' OpenJPEG.orig/libopenjpeg/mqc.c OpenJPEG.patched/libopenjpeg/mqc.c
--- OpenJPEG.orig/libopenjpeg/mqc.c	2007-07-17 20:07:22.000000000 -0500
+++ OpenJPEG.patched/libopenjpeg/mqc.c	2007-07-17 20:07:44.000000000 -0500
@@ -507,20 +507,20 @@

 int mqc_decode(opj_mqc_t *mqc) {
 	int d;
-	mqc->a -= (*mqc->curctx)->qeval;
-	if ((mqc->c >> 16) < (*mqc->curctx)->qeval) {
+	unsigned int qeval = (*mqc->curctx)->qeval;
+	mqc->a -= qeval;
+	qeval <<= 16;
+	if (mqc->c < qeval) {
 		d = mqc_lpsexchange(mqc);
-		mqc_renormd(mqc);
 	} else {
-		mqc->c -= (*mqc->curctx)->qeval << 16;
+		mqc->c -= qeval;
 		if ((mqc->a & 0x8000) == 0) {
 			d = mqc_mpsexchange(mqc);
-			mqc_renormd(mqc);
 		} else {
-			d = (*mqc->curctx)->mps;
+			return (*mqc->curctx)->mps;
 		}
 	}
-
+	mqc_renormd(mqc);
 	return d;
 }


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>openjpeg</Name>
        <Homepage>http://www.openjpeg.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        JPEG2000 decoding library
        <Description>openjpeg is an open-source JPEG 2000 codec written in C. It has been developed in order to promote the use of JPEG 2000, the new still-image compression standard from the Joint Photographic Experts Group (JPEG).</Description>
        <Archive sha1sum="496e99ff1d37b73bbce6a066dd9bd3576ebca0a2" type="targz">http://downloads.sourceforge.net/project/openjpeg.mirror/1.5.2/openjpeg-1.5.2.tar.gz</Archive>
        <BuildDependencies>

            <Dependency>tiff-devel</Dependency>
            <Dependency>doxygen</Dependency>
            <Dependency>libpng-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">openjpeg-20070717svn-mqc-optimize.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>openjpeg</Name>
        <RuntimeDependencies>
            <Dependency>libpng</Dependency>
            <Dependency>tiff</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/usr/share/pkgconfig/</Path>
            <Path fileType="data">/usr/share/openjpeg-1.5</Path>
            <Path fileType="data">/usr/share/man/man1</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

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

    <History>
        <Update release="4">
            <Date>2017-02-05</Date>
            <Version>1.5.2</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.5.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>1.5.2</Version>
            <Comment>Release bump</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-22</Date>
            <Version>1.5.2</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>openjpeg</Name>
        JPEG2000 çözme kütüphanesi
        Biblioteka implementująca kodek formatu JPEG 2000
    </Source>

    <Package>
        <Name>openjpeg-devel</Name>
        openjpeg için geliştirme dosyaları
        Pliki nagłówkowe do openjpeg
    </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 -fno-strict-aliasing" % get.CFLAGS())

    autotools.autoreconf("-vfi")
    autotools.configure("--disable-static \
                         --disable-rpath \
                         --without-x \
                         --enable-cxx \
                         --with-pic")

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

def build():
    autotools.make()

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

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

    pisitools.rename("/%s/tiff-%s" % (get.docDIR(), get.srcVERSION()), get.srcNAME())


code:
From 7757b91a71631ada835740733f3dab51eda36df8 Mon Sep 17 00:00:00 2001
From: erouault <erouault>
Date: Tue, 13 Dec 2016 18:15:48 +0000
Subject: [PATCH] * libtiff/tif_fax3.h: revert change done on 2016-01-09 that
 made Param member of TIFFFaxTabEnt structure a uint16 to reduce size of the
 binary. It happens that the Hylafax software uses the tables that follow this
 typedef (TIFFFaxMainTable, TIFFFaxWhiteTable, TIFFFaxBlackTable), also they
 are not in a public libtiff header. Raised by Lee Howard. Fixes
 http://bugzilla.maptools.org/show_bug.cgi?id=2636

---
 ChangeLog          | 10 ++++++++++
 libtiff/tif_fax3.h |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/libtiff/tif_fax3.h b/libtiff/tif_fax3.h
index aafb5a7..2b64290 100644
--- a/libtiff/tif_fax3.h
+++ b/libtiff/tif_fax3.h
@@ -81,10 +81,12 @@ extern void _TIFFFax3fillruns(unsigned char*, uint32*, uint32*, uint32);
 #define S_MakeUp   11
 #define S_EOL      12

+/* WARNING: do not change the layout of this structure as the Halyfax software */
+/* really depends on it. See http://bugzilla.maptools.org/show_bug.cgi?id=2636 */
 typedef struct {                /* state table entry */
 	unsigned char State;    /* see above */
 	unsigned char Width;    /* width of code in bits */
-	uint16 Param;           /* unsigned 16-bit run length in bits */
+	uint32 Param;           /* unsigned 32-bit run length in bits (holds on 16 bit actually, but cannot be changed. See above warning) */
 } TIFFFaxTabEnt;

 extern const TIFFFaxTabEnt TIFFFaxMainTable[];


code:
--- libtiff/tif_dir.c	2011-04-04 05:58:54.000000000 -0400
+++ libtiff/tif_dir.c.oden	2011-04-04 05:59:08.000000000 -0400
@@ -370,6 +370,10 @@ _TIFFVSetField(TIFF* tif, ttag_t tag, va
 	case TIFFTAG_YCBCRSUBSAMPLING:
 		td->td_ycbcrsubsampling[0] = (uint16) va_arg(ap, int);
 		td->td_ycbcrsubsampling[1] = (uint16) va_arg(ap, int);
+		if (td->td_ycbcrsubsampling[0] > 4)
+			td->td_ycbcrsubsampling[0] = (td->td_compression == 7) ? 1 : 2;
+		if (td->td_ycbcrsubsampling[1] > 4)
+			td->td_ycbcrsubsampling[1] = (td->td_compression == 7) ? 1 : 2;
 		break;
 	case TIFFTAG_TRANSFERFUNCTION:
 		v = (td->td_samplesperpixel - td->td_extrasamples) > 1 ? 3 : 1;


code:
diff -Naur tiff-3.9.1/Makefile.am tiff-3.9.1.oden/Makefile.am
--- tiff-3.9.1/Makefile.am	2009-08-21 18:46:01.000000000 +0200
+++ tiff-3.9.1.oden/Makefile.am	2009-08-30 12:43:13.000000000 +0200
@@ -47,7 +47,7 @@

 dist_doc_DATA = $(docfiles)

-SUBDIRS = port libtiff tools build contrib test man html
+SUBDIRS = port libtiff tools build test man html

 release:
 	(rm -f $(top_srcdir)/RELEASE-DATE && echo $(LIBTIFF_RELEASE_DATE) > $(top_srcdir)/RELEASE-DATE)
diff -Naur tiff-3.9.1/Makefile.in tiff-3.9.1.oden/Makefile.in
--- tiff-3.9.1/Makefile.in	2009-08-28 20:41:13.000000000 +0200
+++ tiff-3.9.1.oden/Makefile.in	2009-08-30 12:43:33.000000000 +0200
@@ -331,7 +331,7 @@
 	nmake.opt

 dist_doc_DATA = $(docfiles)
-SUBDIRS = port libtiff tools build contrib test man html
+SUBDIRS = port libtiff tools build test man html
 all: all-recursive

 .SUFFIXES:


code:
--- libtiff/tif_jpeg.c	2010-09-30 13:43:31.045146032 +0200
+++ libtiff/tif_jpeg.c.oden	2010-09-30 13:44:59.005141117 +0200
@@ -850,6 +850,7 @@ JPEGPreDecode(TIFF* tif, tsample_t s)
 	if (downsampled_output) {
 		/* Need to use raw-data interface to libjpeg */
 		sp->cinfo.d.raw_data_out = TRUE;
+		sp->cinfo.d.do_fancy_upsampling = FALSE;
 		tif->tif_decoderow = JPEGDecodeRaw;
 		tif->tif_decodestrip = JPEGDecodeRaw;
 		tif->tif_decodetile = JPEGDecodeRaw;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>tiff</Name>
        <Homepage>http://www.remotesensing.org/libtiff/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        Library for manipulation of TIFF (Tag Image File Format) images
        <Description>This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data.</Description>
        <Archive sha1sum="2c1b64478e88f93522a42dd5271214a0e5eae648" type="targz">http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>jbigkit-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">fix-hylafax.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>tiff</Name>
        <RuntimeDependencies>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>jbigkit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>tiff-docs</Name>
        Documentation for tiff
        <RuntimeDependencies>
            <Dependency>tiff</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>tiff-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for tiff
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>libjpeg-turbo-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">tiff</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>
    <History>
        <Update release="4">
            <Date>2017-01-25</Date>
            <Version>4.0.7</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>4.0.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>4.0.3</Version>
            <Comment>Release bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-19</Date>
            <Version>4.0.3</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>tiff</Name>
        TIFF (Tag Image File Format) türündeki resimleri işlemeye aracılık eden kütüphane
        <Description xml:lang="tr">Bu kütüphane TIFF (Tag Image File Format) resim biçimi desteği sağlar. Bu biçim resim bilgisi saklamak için pek çok yerde kullanılır.</Description>
        <Description xml:lang="fr">Ce logiciel fournit le support pour le format "Tag Image File Format" (TIFF), un format très employé pour stocker des informations d'image.</Description>
        <Description xml:lang="es">Este software facilita soporte para el formato de imagen etiqueteado (TIFF), un formato para almacenamiento de imágenes de uso común.</Description>
        <Description xml:lang="pl">Biblioteka do manipulacji plikami w formacie TIFF.</Description>
    </Source>

    <Package>
        <Name>tiff-docs</Name>
        tiff için belgelendirme dosyaları
    </Package>

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

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


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

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

def setup():
    autotools.configure("\
                         --disable-static \
                         --enable-experimental \
                         --enable-libwebpdecoder \
                         --enable-libwebpdemux \
                         --enable-libwebpmux \
                         --enable-swap-16bit-csp \
                        ")

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

def build():
    autotools.make()

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

    pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "PATENTS", "README")
    #shelltools.move("%s/libwebp-0.2.1/doc/*" % get.workDIR(),"%s/usr/share/doc/webp" % get.installDIR())
    #shelltools.move("%s/libwebp-0.2.1/README" % get.workDIR(),"%s/usr/share/doc/webp" % get.installDIR())


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>webp</Name>
        <Homepage>http://code.google.com/p/webp/downloads/list</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>Copyright (c) 2010, Google Inc. All rights reserved.</License>
        <IsA>application</IsA>
        <Summary>webp image format and format conversion png,jpeg,tiff</Summary>
        <Description>webp image format and format conversion png,jpeg,tiff</Description>
        <Archive sha1sum="156d24fff454bfccd1f44434e226a10d9eb38186" type="targz">https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-0.6.0.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>mesa-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>giflib-devel</Dependency>
            <Dependency>freeglut-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>webp</Name>
        <RuntimeDependencies>
            <Dependency>tiff</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>giflib</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>freeglut</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib/libwebp*</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc/webp</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-02-16</Date>
            <Version>0.6.0</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.4.3</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-04-06</Date>
            <Version>0.4.3</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>webp</Name>
        webp resim formatı kütüphanesi ve png,jpeg,tiff resim formatlarına dönüştürme aracı
        <Description xml:lang="tr">webp resim formatı kütüphanesi ve png,jpeg,tiff resim formatlarına dönüştürme aracı</Description>
    </Source>

    <Package>
        <Name>webp</Name>
        webp resim formatı kütüphanesi ve png,jpeg,tiff resim formatlarına dönüştürme aracı
    </Package>
    <Package>
        <Name>webp-devel</Name>
        webp için geliştirme dosyaları
    </Package>
</PISI>


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

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

def setup():
    autotools.configure('--enable-fbdev \
                         --enable-mmx \
                         --enable-sse \
                         --enable-jpeg \
                         --enable-png \
                         --enable-gif \
                         --enable-freetype \
                         --enable-multi \
                         --disable-sdl \
                         --disable-multi \
                         --disable-debug \
                         --disable-static \
                         --enable-zlib \
                         --enable-x11 \
                         --enable-video4linux \
                         --enable-video4linux2 \
                         --with-inputdrivers="all" \
                         --with-gfxdrivers="all" \
                         --disable-vnc')

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

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>DirectFB</Name>
        <Homepage>http://www.directfb.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        Thin library on top of the Linux framebuffer devices
        <Description>DirectFB is a thin library that provides hardware graphics acceleration, input device handling and abstraction, integrated windowing system with support for translucent windows and multiple display layers.</Description>
        <Archive sha1sum="205d824906906303db9b096cc2d3bea0662e8860" type="targz">http://sources.webos-ports.org/downloads/DirectFB-1.7.7.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libgcc</Dependency>
            <Dependency>giflib-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>jasper-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
            <Dependency>webp-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>libdrm-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>libmng-devel</Dependency>
            <Dependency>lcms2-devel</Dependency>
            <Dependency>libvdpau-devel</Dependency>
            <Dependency>libmad-devel</Dependency>
            <Dependency>libvorbis-devel</Dependency>
        </BuildDependencies>
        <Patches>
        </Patches>
    </Source>

    <Package>
        <Name>DirectFB-docs</Name>
        <RuntimeDependencies>
            <Dependency>DirectFB</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>DirectFB</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>libdrm</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>libvdpau</Dependency>
            <Dependency>webp</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency>jasper</Dependency>
            <Dependency>libkms</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="data">/usr/share</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="4">
            <Date>2017-03-05</Date>
            <Version>1.7.7</Version>
            <Comment>Rebuild.</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>1.7.7</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.7.7</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-26</Date>
            <Version>1.7.7</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>DirectFB</Name>
        Linux framebuffer aygıtlarının üstünde çalışan hafif bir kütüphane
        <Description xml:lang="tr">DirectFB donanımsal grafik hızlandırması, giriş aygıtları işleme ve soyutlama sağlayan yarısaydam pencereler ve çoklu görüntü katmanlarını destekleyen pencere sistemi ile bütünleşik bir kütüphanedir.</Description>
    </Source>

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

sd = "shared"

def setup():
    shelltools.makedirs(sd)
    shelltools.cd(sd)
    shelltools.sym("libcompface.so", "libcompface.so.1")
    shelltools.sym("libcompface.so.1.0.0", "libcompface.so")

def build():
    shelltools.cd(sd)
    autotools.make('-f ../Makefile \
                    VPATH=".." \
                    srcdir=".." \
                    LDFLAGS="-lc" \
                    CFLAGS="%s -L%s -fPIC -pipe -D_BSD_SOURCE -D_REENTRANT" \
                    shared' % (get.CFLAGS(), sd))

    shelltools.cd("..")
    autotools.make()

def install():
    pisitools.dolib_so("%s/libcompface.so.1.0.0" % sd)
    pisitools.dosym("libcompface.so.1.0.0", "/usr/lib/libcompface.so.1")
    pisitools.dosym("libcompface.so.1", "/usr/lib/libcompface.so")

    pisitools.insinto("/usr/include", "compface.h")

    for f in ["xbm2xface.pl", "compface", "uncompface"]:
        pisitools.dobin(f)

    for f in ["compface.1", "compface.3"]:
        pisitools.doman(f)

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


code:
*** file.c.org	2009-06-29 09:17:41.000000000 +0200
--- file.c	2009-06-29 09:18:27.000000000 +0200
***************
*** 82,107 ****
  	char *table = table_nop;	/* optionally invert bits in nibble */
  	register inc = 0;		/* optionally swap nimmles */
  	int bits;

  	t = s = fbuf;

  	/* Does this look like an X bitmap ? */
  	if (sscanf(s, "#define %*s %d", &bits) == 1) {
  		if (bits == 48) {
! 			char type1[128];
! 			char type2[128];
  			while (*s && *s++ != '\n');
  			if (sscanf(s, "#define %*s %d", &bits) == 1) if (bits == 48) {
  				while (*s && *s++ != '\n');
! 				if (sscanf(s, "static %s %s", type1,type2)==2 &&
  					(!strcmp(type1, "char") ||
  				    	 !strcmp(type2, "char"))) {
  						while (*s && *s++ != '\n');
  						inc = 1;
  						table = table_inv;
  					}
! 				else fprintf(stderr,
! 		"warning: xbitmap line 3 not static [unsigned] short ...\n");
  			}
  			else fprintf(stderr, "warning: xbitmaps must be 48x48\n");
  		}
--- 82,110 ----
  	char *table = table_nop;	/* optionally invert bits in nibble */
  	register inc = 0;		/* optionally swap nimmles */
  	int bits;
+ 	int len;

  	t = s = fbuf;

  	/* Does this look like an X bitmap ? */
  	if (sscanf(s, "#define %*s %d", &bits) == 1) {
  		if (bits == 48) {
! 			char type1[256];
! 			char type2[256];
  			while (*s && *s++ != '\n');
  			if (sscanf(s, "#define %*s %d", &bits) == 1) if (bits == 48) {
  				while (*s && *s++ != '\n');
! 				for (len=0; s[len] && s[len]!='\n'; len++);
! 				if (len<255) {
! 				  if (sscanf(s, "static %s %s", type1,type2)==2 &&
  					(!strcmp(type1, "char") ||
  				    	 !strcmp(type2, "char"))) {
  						while (*s && *s++ != '\n');
  						inc = 1;
  						table = table_inv;
  					}
! 				  else fprintf(stderr, "warning: xbitmap line 3 not static [unsigned] short ...\n");
! 				} else fprintf(stderr, "warning: xbitmap line 3 too long\n");
  			}
  			else fprintf(stderr, "warning: xbitmaps must be 48x48\n");
  		}


code:
diff -Nur compface-1.5.2-old/compface.c compface-1.5.2/compface.c
--- compface-1.5.2-old/compface.c	2008-04-14 23:51:54.000000000 +0300
+++ compface-1.5.2/compface.c	2008-04-14 23:52:03.000000000 +0300
@@ -19,7 +19,7 @@
 #include "config.h"
 #endif

-#include "compface_private.h"
+#include "compface.h"

 int
 compface(fbuf)
diff -Nur compface-1.5.2-old/compface.h compface-1.5.2/compface.h
--- compface-1.5.2-old/compface.h	2008-04-14 23:51:54.000000000 +0300
+++ compface-1.5.2/compface.h	2008-04-14 23:52:03.000000000 +0300
@@ -143,7 +143,6 @@
 int AllWhite P((char *, int, int)) ;
 int BigPop P((Prob *)) ;
 int compface P((char *)) ;
-int main P((int, char *[])) ;
 int ReadBuf P(()) ;
 int Same P((char *, int, int)) ;
 int uncompface P((char *)) ;
diff -Nur compface-1.5.2-old/Makefile compface-1.5.2/Makefile
--- compface-1.5.2-old/Makefile	1970-01-01 02:00:00.000000000 +0200
+++ compface-1.5.2/Makefile	2008-04-14 23:52:03.000000000 +0300
@@ -0,0 +1,120 @@
+prefix          = /usr/local
+exec_prefix     = ${prefix}
+srcdir          = .
+BINDIR		= ${exec_prefix}/bin
+LIBDIR		= ${exec_prefix}/lib
+MANDIR		= ${prefix}/man
+INCLUDEDIR	= ${prefix}/include
+
+
+
+RM              = rm -f
+LN_S            = ln -s
+RANLIB          = ranlib
+INSTALL         = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA    = ${INSTALL} -m 644
+SHELL           = /bin/sh
+
+NAME		= compface
+UNNAME		= uncompface
+EXEEXT		=
+NAMEEXE		= $(NAME)$(EXEEXT)
+UNNAMEEXE	= $(UNNAME)$(EXEEXT)
+EXECUTABLE	= $(BINDIR)/$(NAMEEXE)
+UNEXECUTABLE	= $(BINDIR)/$(UNNAMEEXE)
+LIBNAME		= lib$(NAME).a
+SOLIBNAME	= lib$(NAME).so
+LIBRARY		= $(LIBDIR)/$(LIBNAME)
+MAN1DIR		= $(MANDIR)/man1
+MAN3DIR		= $(MANDIR)/man3
+OBJECTS		= arith.o file.o compress.o gen.o uncompface.o compface.o
+SOURCES		= compface.c uncompface.c arith.c file.c compress.c gen.c \
+		  cmain.c uncmain.c version.c
+INSTALLHEADERS  = compface.h
+HDRS		= $(INSTALLHEADERS) data.h compface_private.h
+OTHERS		= README $(NAME).1 $(NAME).3 Makefile.in Makefile.Ashton \
+		  configure configure.in install-sh mkinstalldirs ChangeLog
+
+DISTFILES       =  $(OTHERS) $(HDRS) $(SOURCES)
+
+CC		= gcc
+CFLAGS		= -g -O2
+#CFLAGS		= -g
+DEFS		= -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_STRERROR=1  -DHAVE_CONFIG_H
+LDFLAGS		=
+LIBS		=
+
+all:		$(NAMEEXE) $(UNNAMEEXE)
+
+$(NAMEEXE) :	cmain.o $(LIBNAME)
+		$(CC) $(LDFLAGS) -o $@ cmain.o -Lshared -lcompface
+
+$(UNNAMEEXE) :	uncmain.o $(LIBNAME)
+		$(CC) $(LDFLAGS) -o $@ uncmain.o -Lshared -lcompface
+
+$(LIBNAME) :	$(OBJECTS)
+		ar rc $(LIBNAME) $(OBJECTS)
+		-$(RANLIB) $(LIBNAME)
+
+lint :
+		lint -abchx $(SOURCES)
+
+clean :
+		-rm -f *.o *.a *.sh core a.out $(NAMEEXE) $(UNNAMEEXE)
+
+distclean: clean
+		-rm -rf *~
+		-rm -f config.log config.status config.cache Makefile
+
+dist: $(DISTFILES)
+		echo compface-`sed -e '/version/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q version.c` > .fname
+		$(RM) -rf `cat .fname`
+		mkdir `cat .fname`
+		ln $(DISTFILES) `cat .fname`
+		tar chzf `cat .fname`.tar.gz `cat .fname`
+		$(RM) -rf `cat .fname` .fname
+
+install: 	$(NAMEEXE) $(UNNAMEEXE) $(LIBNAME)
+		$(INSTALL_PROGRAM) -d $(BINDIR) $(LIBDIR) $(MAN1DIR) $(MAN3DIR) $(INCLUDEDIR)
+		$(INSTALL_PROGRAM) $(srcdir)/$(NAMEEXE) $(EXECUTABLE)
+		-chmod 0755 $(EXECUTABLE)
+		-strip $(EXECUTABLE)
+		$(INSTALL_PROGRAM) $(srcdir)/$(UNNAMEEXE) $(UNEXECUTABLE)
+		-chmod 0755 $(UNEXECUTABLE)
+		-strip $(UNEXECUTABLE)
+		$(INSTALL_DATA) $(srcdir)/$(NAME).1 $(MAN1DIR)/$(NAME).1
+		cd $(MAN1DIR) && $(RM) ./$(UNNAME).1 && $(LN_S) $(NAME).1 $(UNNAME).1
+		$(INSTALL_DATA) $(srcdir)/$(NAME).3 $(MAN3DIR)/$(NAME).3
+		cd $(MAN3DIR) && $(RM) ./$(UNNAME).3 && $(LN_S) $(NAME).3 $(UNNAME).3
+		for hdr in $(INSTALLHEADERS); do $(INSTALL_DATA) $(srcdir)/$${hdr} $(INCLUDEDIR)/$${hdr}; done
+		$(INSTALL_DATA) $(srcdir)/$(LIBNAME) $(LIBRARY)
+
+shar :
+		shar.script $(OTHERS) $(HDRS) $(SOURCES) > $(NAME).sh
+		compress $(NAME).sh
+
+static:		$(OBJECTS)
+		ar rc $(LIBNAME) $(OBJECTS)
+		-ranlib $(LIBNAME)
+
+shared:		$(OBJECTS)
+		$(CC) -shared -Wl,-soname,$(SOLIBNAME).1 $(LDFLAGS) -o $(SOLIBNAME).1.0.0 $(OBJECTS)
+
+.c.o:
+	$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
+
+arith.o:	arith.c compface.h data.h
+cmain.o:	cmain.c compface.h data.h
+compface.o:	compface.c compface.h data.h
+compress.o:	compress.c compface.h data.h
+file.o:		file.c compface.h data.h
+gen.o:		gen.c compface.h data.h
+uncmain.o:	uncmain.c compface.h data.h
+uncompface.o:	uncompface.c compface.h data.h
+
+.PHONY: clean mostlyclean distclean realclean dist all shared static
+
+# Prevent GNU make v3 from overflowing arg limit on SysV.
+.NOEXPORT:
+


code:
diff -Nur compface-1.5.2-old/compface.1 compface-1.5.2/compface.1
--- compface-1.5.2-old/compface.1	2008-04-14 23:51:54.000000000 +0300
+++ compface-1.5.2/compface.1	2008-04-14 23:52:03.000000000 +0300
@@ -51,8 +51,9 @@
 The first line contains 72 characters and following lines contain
 79 characters except that the last line may be short.
 .LP
-If the -X option is given to uncompface, it generates XBM format
-directly.
+This version of compface has been patched to also be able to handle
+normal XBM images.  uncompface will produce XBM output only if the -X
+switch is applied.
 .LP
 The amount of compression obtained varies between face image files but
 the output of
diff -Nur compface-1.5.2-old/compface.3 compface-1.5.2/compface.3
--- compface-1.5.2-old/compface.3	2008-04-14 23:51:54.000000000 +0300
+++ compface-1.5.2/compface.3	2008-04-14 23:52:03.000000000 +0300
@@ -39,6 +39,10 @@
 The first line contains 72 characters and following lines contain
 79 characters except that the last line may be short.
 .LP
+This version of compface has been patched to also be able to handle
+normal XBM images.  uncompface will produce XBM output only if the -X
+switch is applied.
+.LP
 The amount of compression obtained varies between face image files but
 the output of
 .I compface
diff -Nur compface-1.5.2-old/file.c compface-1.5.2/file.c
--- compface-1.5.2-old/file.c	2008-04-14 23:51:54.000000000 +0300
+++ compface-1.5.2/file.c	2008-04-14 23:52:03.000000000 +0300
@@ -77,8 +77,39 @@
 {
 	register int c, i;
 	register char *s, *t;
+	static char table_inv[] = { 0,8,4,12,2,10,6,14,1,9, 5,13, 3,11, 7,15 };
+	static char table_nop[] = { 0,1,2, 3,4, 5,6, 7,8,9,10,11,12,13,14,15 };
+	char *table = table_nop;	/* optionally invert bits in nibble */
+	register inc = 0;		/* optionally swap nimmles */
+	int bits;

 	t = s = fbuf;
+
+	/* Does this look like an X bitmap ? */
+	if (sscanf(s, "#define %*s %d", &bits) == 1) {
+		if (bits == 48) {
+			char type1[128];
+			char type2[128];
+			while (*s && *s++ != '\n');
+			if (sscanf(s, "#define %*s %d", &bits) == 1) if (bits == 48) {
+				while (*s && *s++ != '\n');
+				if (sscanf(s, "static %s %s", type1,type2)==2 &&
+					(!strcmp(type1, "char") ||
+				    	 !strcmp(type2, "char"))) {
+						while (*s && *s++ != '\n');
+						inc = 1;
+						table = table_inv;
+					}
+				else fprintf(stderr,
+		"warning: xbitmap line 3 not static [unsigned] short ...\n");
+			}
+			else fprintf(stderr, "warning: xbitmaps must be 48x48\n");
+		}
+		else fprintf(stderr, "warning: xbitmaps must be 48x48\n");
+	}
+	/* Ensure s is reset if it was not an X bitmap ... */
+	if (! inc) s = fbuf;
+
 	for(i = strlen(s); i > 0; i--)
 	{
 		c = (int)*(s++);
@@ -89,7 +120,7 @@
 				status = ERR_EXCESS;
 				break;
 			}
-			*(t++) = c - '0';
+			(t++)[inc] = table[c - '0']; inc = - inc;
 		}
 		else if ((c >= 'A') && (c <= 'F'))
 		{
@@ -98,7 +129,7 @@
 				status = ERR_EXCESS;
 				break;
 			}
-			*(t++) = c - 'A' + 10;
+			(t++)[inc] = table[c - 'A' + 10]; inc = - inc;
 		}
 		else if ((c >= 'a') && (c <= 'f'))
 		{
@@ -107,10 +138,10 @@
 				status = ERR_EXCESS;
 				break;
 			}
-			*(t++) = c - 'a' + 10;
+			(t++)[inc] = table[c - 'a' + 10]; inc = - inc;
 		}
-		else if (((c == 'x') || (c == 'X')) && (t > fbuf) && (*(t-1) == 0))
-			t--;
+		else if (((c == 'x') || (c == 'X')) && (t > fbuf) &&
+			((t-1)[-inc] == table[0])) { t--; inc = -inc; }
 	}
 	if (t < fbuf + DIGITS)
 		longjmp(comp_env, ERR_INSUFF);
diff -Nur compface-1.5.2-old/t2.pbm compface-1.5.2/t2.pbm
--- compface-1.5.2-old/t2.pbm	1970-01-01 02:00:00.000000000 +0200
+++ compface-1.5.2/t2.pbm	2008-04-14 23:52:03.000000000 +0300
@@ -0,0 +1,3 @@
+P4
+48 48
+���ԍ���H�ʮ��eUW_���j�������]�z������Z�%[uUY]o��uU[Z����U�zڢ��ۺJ�E�Z�"�����&�����/���QWJ��P����EUV�{�YXKGmR�M*����V��N�����[K]�mU��׶��[V�{ڭ�[]��Z��WUZUK]���U$�_�d���it�Z����U������J�U�UUUZ�yn��n������fھ��f�{U�V�v��Um���jڦ��ۥ�Z���m]�{����T�[��^�o��k��U{�־��۵��[{�޶�}
diff -Nur compface-1.5.2-old/t2.xbm compface-1.5.2/t2.xbm
--- compface-1.5.2-old/t2.xbm	1970-01-01 02:00:00.000000000 +0200
+++ compface-1.5.2/t2.xbm	2008-04-14 23:52:03.000000000 +0300
@@ -0,0 +1,23 @@
+#define noname_width 48
+#define noname_height 48
+static char noname_bits[] = {
+ 0x7B,0x7F,0x75,0x2B,0xB1,0xF7,0x57,0x77,0x12,0x35,0x53,0x75,0x7D,0xAF,0xA6,
+ 0xAA,0xEA,0xFA,0xAF,0x5D,0xBD,0x56,0xB5,0x55,0xD5,0xAF,0x55,0xAD,0xA5,0xBA,
+ 0xBD,0x5E,0xAB,0x5B,0x5B,0x77,0xAB,0xAF,0x5A,0xE5,0xA4,0xDA,0xFE,0xAE,0xAA,
+ 0x9A,0xBA,0xF6,0xAB,0xAF,0xAE,0xAA,0xDA,0x5A,0x55,0x5F,0x65,0x95,0xAA,0xF5,
+ 0x5E,0x5B,0x45,0x27,0x58,0x55,0xDB,0x5D,0x52,0x85,0xA2,0xD9,0x5A,0xAF,0x44,
+ 0x29,0xD8,0x63,0xAB,0x9F,0x48,0x85,0x64,0xB9,0x5D,0x5D,0x45,0x25,0xD0,0xF4,
+ 0xE7,0x2F,0xA9,0x8A,0xEA,0x52,0xAD,0x9D,0x0A,0x25,0x70,0x59,0x73,0x5F,0xA2,
+ 0xAA,0x6A,0xA5,0xDE,0xAF,0x9A,0x1A,0xD0,0xD2,0xE2,0xB6,0x4A,0xA5,0xB2,0x54,
+ 0xBD,0xAF,0x2D,0x4B,0xD8,0x6A,0xF7,0x6D,0x57,0x8D,0x72,0x59,0x65,0x5F,0x4D,
+ 0x55,0xDA,0xD2,0xBA,0xA7,0xB6,0xAA,0x65,0x55,0xEB,0x6D,0xED,0xED,0xDA,0x6A,
+ 0xD5,0xDE,0x5B,0xB5,0xE5,0xDA,0xBA,0x6F,0xAD,0x5A,0x29,0xA5,0xEA,0xAA,0x5A,
+ 0xAA,0xD2,0xBA,0x5D,0x5F,0x9B,0xAA,0x24,0xA5,0xFA,0xDD,0x26,0x05,0x59,0xD9,
+ 0x96,0x2E,0xA5,0x5A,0x65,0x65,0xEB,0xEB,0xAA,0x2D,0x59,0x55,0x75,0x1D,0x57,
+ 0x95,0x52,0xD5,0xAA,0xEB,0xAA,0xAA,0xAA,0x5A,0xFB,0x9E,0x76,0x55,0xBD,0x76,
+ 0xD5,0x6D,0x45,0x5D,0xD5,0xD5,0x66,0x5B,0x7D,0x55,0xB5,0x66,0xD5,0xDE,0xAA,
+ 0xA5,0x6A,0xDB,0x6E,0x5B,0xBB,0xAA,0xB6,0x6D,0x55,0xAD,0x56,0x5B,0x65,0xBB,
+ 0xFB,0xDB,0xA5,0xDD,0x5A,0x75,0x55,0xA7,0xB6,0xBA,0xFD,0xDE,0xED,0xBD,0xCD,
+ 0xA7,0x2A,0xBB,0xDA,0x57,0xBB,0x7A,0xD5,0xF6,0x75,0xDD,0xD6,0xD7,0xBB,0xAA,
+ 0xDE,0x6F,0x6B,0x7D,0xDD,0x77,0x65,0xDB,0xAD,0xDB,0xBB,0xDA,0xDE,0x6D,0x7B,
+ 0x6D,0xE7,0xBE};
diff -Nur compface-1.5.2-old/t.pbm compface-1.5.2/t.pbm
--- compface-1.5.2-old/t.pbm	1970-01-01 02:00:00.000000000 +0200
+++ compface-1.5.2/t.pbm	2008-04-14 23:52:03.000000000 +0300
@@ -0,0 +1,3 @@
+P4
+48 48
+�j������kU[U�Z�Z��뵺�u���UN��着�k��ꪪ�U�UV�Z�Ut�U��%U(���J��=���TH���UTM����.�کP�5�%��V����--n�T*K��ڲ��v�v�(�U��T�-�{j�ZV���ޮ�V��U[���֪�R����*�����JR��mR��m�R�UV���ڒUU�qU)U��������iW�kW�V�U]m��WUkV��Z������j�V�j�U���]ڭUWuj������|���}��Wm_�m}�������}W�ݺ���ݶ�v��oz��m�ݭk��hej
diff -Nur compface-1.5.2-old/t.xbm compface-1.5.2/t.xbm
--- compface-1.5.2-old/t.xbm	1970-01-01 02:00:00.000000000 +0200
+++ compface-1.5.2/t.xbm	2008-04-14 23:52:03.000000000 +0300
@@ -0,0 +1,23 @@
+#define noname_width 48
+#define noname_height 48
+static char noname_bits[] = {
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF8,0x3F,0x00,0x00,0x00,0x00,0xFF,
+ 0x3F,0x00,0x00,0x00,0x80,0xFF,0xFF,0x00,0x00,0x00,0xE0,0xFF,0xFF,0x03,0x00,
+ 0x00,0xF0,0xBF,0xFC,0x07,0x00,0x00,0xF8,0x0F,0xE0,0x0F,0x00,0x00,0xF8,0x03,
+ 0x00,0x0F,0x00,0x00,0xFC,0x01,0x00,0x0E,0x00,0x00,0xFE,0x00,0x00,0x04,0x00,
+ 0x00,0xFE,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x08,0x00,0x00,0x7F,0x00,
+ 0x00,0x10,0x00,0x80,0x7F,0x00,0x00,0x10,0x00,0x80,0x3F,0x00,0x00,0x20,0x00,
+ 0x80,0x3F,0x00,0x00,0x00,0x00,0x80,0x3F,0x00,0x00,0x40,0x00,0xC0,0x3F,0x00,
+ 0x00,0x40,0x00,0xC0,0x3F,0x00,0x00,0x40,0x00,0xC0,0x3F,0x00,0x3D,0xC0,0x00,
+ 0x00,0x3F,0x80,0x60,0x60,0x00,0x00,0x7E,0x00,0x2C,0x70,0x00,0x00,0x3C,0x00,
+ 0x07,0x18,0x00,0x00,0x38,0x00,0x04,0x38,0x00,0x00,0x18,0x00,0x20,0x38,0x00,
+ 0x00,0x20,0x00,0x00,0x30,0x00,0x00,0x20,0x00,0x00,0x20,0x00,0x00,0x00,0x00,
+ 0x00,0x40,0x00,0x00,0x50,0x00,0x00,0x00,0x00,0x00,0x21,0x00,0x00,0x40,0x00,
+ 0x80,0x53,0x00,0x00,0x20,0x00,0x80,0x6F,0x00,0x00,0x20,0x00,0xC0,0x37,0x00,
+ 0x00,0x1A,0x00,0xC0,0xFF,0x00,0x80,0x0D,0x00,0xC0,0x6F,0x00,0x03,0x1C,0x00,
+ 0xE0,0xEF,0x81,0x02,0x06,0x00,0xC0,0x7F,0x01,0x80,0x07,0x00,0xE0,0x5F,0x83,
+ 0x00,0x06,0x00,0xC0,0xDF,0x06,0x00,0x06,0x00,0xE0,0x1F,0x0D,0x00,0x07,0x00,
+ 0xC0,0x3F,0x5D,0xC1,0x03,0x00,0xE0,0x3B,0xDA,0x00,0x06,0x00,0xC0,0x27,0xF4,
+ 0x01,0x02,0x00,0xC0,0x11,0xF8,0x0F,0x03,0x00,0x80,0x01,0xF0,0xFF,0x15,0x00,
+ 0x80,0x11,0xC0,0xFF,0x13,0x00,0x80,0x50,0xD0,0xFF,0x0D,0x00,0x00,0x41,0x80,
+ 0x3E,0x0B,0x00};


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>compface</Name>
        <Homepage>http://www.xemacs.org/Download/optLibs.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>library</IsA>
        X-Face library
        <Description>Utilities and library to convert to/from X-Face format.</Description>
        <Archive sha1sum="72dad8774b3301a1562bdbd5b3c5536ebf86a03d" type="targz">http://mirrors.ibiblio.org/xemacs/aux/compface-1.5.2.tar.gz</Archive>
        <Patches>
            <Patch level="1">xbmp.patch</Patch>
            <Patch level="1">shared.patch</Patch>
            <Patch>cve-2009-2286.patch</Patch>
        </Patches>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-01-28</Date>
            <Version>1.5.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2014-01-21</Date>
            <Version>1.5.2</Version>
            <Comment>Rebuild</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2010-10-12</Date>
            <Version>1.5.2</Version>
            <Comment>First release</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>compface</Name>
        X-Face kütüphanesi
        <Description xml:lang="tr">X-Face formatını okuma ve yazmaya yarayan bir kütüphane</Description>
        <Description xml:lang="fr">Utilitaires et librairie pour convertir de/vers le format X-Face.</Description>
        <Description xml:lang="es">Utilitarios y librerías para convertir desde/al formato X-Face</Description>
    </Source>

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


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


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

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

def setup():
    autotools.configure("--disable-static \
                         --disable-dependency-tracking \
                         --enable-video \
                         --disable-rpath")

def build():
    autotools.make()

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

    pisitools.dodoc("COPYING", "README", "doc/ChangeLog")


code:
diff -up exiv2-0.18-pre2/src/Makefile.deps exiv2-0.18-pre2/src/Makefile
--- exiv2-0.18-pre2/src/Makefile.deps	2008-09-18 05:26:58.000000000 -0500
+++ exiv2-0.18-pre2/src/Makefile	2008-11-29 05:46:14.000000000 -0600
@@ -192,11 +192,19 @@ $(CCOBJ): %.o: %.cpp
 	@$(LIBTOOL) --mode=compile $(COMPILE.cc) -DEXV_BUILDING_LIB=1 -o $@ $<
 	@$(MAKEDEPEND)
 	@$(POSTDEPEND)
+# The dependancies here are wrong.  It generates .lo output,
+# so things are rebuilt *every* time 'make' is called.
+# Let's try a quick-n-dirty hack -- Rex
+	touch $@

 $(COBJ): %.o: %.c
 	@$(LIBTOOL) --mode=compile $(COMPILE.c) -DEXV_BUILDING_LIB=1 -o $@ $<
 	@$(MAKEDEPEND)
 	@$(POSTDEPEND)
+# The dependancies here are wrong.  It generates .lo output,
+# so things are rebuilt *every* time 'make' is called.
+# Let's try a quick-n-dirty hack -- Rex
+	touch $@

 $(sort $(BINOBJ) $(EXIV2OBJ) $(MCOBJ) path-test.o): %.o: %.cpp
 	$(COMPILE.cc) -o $@ $<


code:
<title>kde-48-pisi - Revision 691: /trunk/ext-libs/exiv2/files</title>

kde-48-pisi - Revision 691: /trunk/ext-libs/exiv2/files

..

exiv2-0.18-deps.patch

Google Code powered by Subversion


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>exiv2</Name>
        <Homepage>http://www.exiv2.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        Another library for parsing, editing, and saving EXIF data
        <Description>exiv2 is a C++ library and a command line utility to access image metadata. Exiv2 is available as free software and with a commercial license, and is used in a growing number of projects.</Description>
        <Archive sha1sum="e68404958ebfbee39354f5aaaa895ac6abf127a2" type="targz">http://www.exiv2.org/builds/exiv2-0.26-trunk.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>expat-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">exiv2-0.18-deps.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>exiv2</Name>
        <RuntimeDependencies>
            <Dependency>exiv2-libs</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>exiv2-libs</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>expat</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="4">
            <Date>2017-10-06</Date>
            <Version>0.26</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>0.25</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.25</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-11-02</Date>
            <Version>0.25</Version>
            <Comment>First release</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>exiv2</Name>
        <Description xml:lang="tr">Exiv2 resimlerin başlık bilgilerine ulaşmak için kullanılan bir C++ kütüphanesi ve komut satırı uygulamasıdır. Exiv2, hem özgür yazılım hem de ticari yazılım lisansıyla kullanılabilir.</Description>
        <Description xml:lang="fr">Exiv2 est une librairie C++ ainsi qu'un utilitaire en ligne de commande pour accéder aux méta-données d'images. Exiv2 est disponible en tant que logiciel libre ou avec une licence commerciale et est utilisée par un nombre croissant de projets.</Description>
        <Description xml:lang="es">Exiv2 es una librería C++ y una herramienta de línea de comandopara acceder metadatos de imágenes. Exiv2 está disponible como software libre y con licencia comercial, y se utiliza cada vez en más proyectos.</Description>
        EXIF verilerini ayrıştırmak, düzenlemek ve kaydetmek için bir diğer kitaplık
    </Source>

    <Package>
        <Name>exiv2-devel</Name>
        exiv2 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("--enable-static=no")

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

def build():
    autotools.make()

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

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


code:
From 53ca60964b3691172f7c95e68b6d754ba55e90ac Mon Sep 17 00:00:00 2001
From: Luca Bigliardi <shammash@artha.org>
Date: Mon, 09  Feb  2009  12:34:29  +0000
Subject: Explicitly link against libm.

---
Index: frei0r-plugins-1.2/src/Makefile.am
===================================================================
--- frei0r-plugins-1.2.orig/src/Makefile.am
+++ frei0r-plugins-1.2/src/Makefile.am
@@ -150,7 +150,7 @@ RGB_la_SOURCES = mixer3/RGB/RGB.c

 AM_CPPFLAGS = -I@top_srcdir@/include
 AM_CFLAGS = -I@top_srcdir@/include
-AM_LDFLAGS = -module -avoid-version -lm -export-dynamic
+AM_LDFLAGS = -module -avoid-version -lm -export-dynamic -lm
 AM_LIBTOOLFLAGS = --tag=disable-static

 plugindir = @libdir@/frei0r-1


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>frei0r-plugins</Name>
        <Homepage>http://www.piksel.org/frei0r</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A plugin API for video sources and filters
        <Description>frei0r-plugins is a minimalistic plugin API for video sources and filters. The behaviour of the effects can be controlled from the host by simple parameters. The intent is to solve the recurring reimplementation or adaptation issue of standard effects.</Description>
        <Archive sha1sum="7995d06c5412b14fa3b05647084ca9d7a0c84faa" type="targz">http://distfiles.macports.org/frei0r-plugins/frei0r-plugins-1.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libgcc</Dependency>

        </BuildDependencies>
        <Patches>
            <Patch level="1">explicitly-link-with-lm.patch</Patch>
        </Patches>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>1.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.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-20</Date>
            <Version>1.4</Version>
            <Comment>First release</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>frei0r-plugins</Name>
        Video kaynakları ve süzgeçleri için bir eklenti programlama arayüzü
        <Description xml:lang="tr">frei0r-plugins video kaynakları ve süzgeçleri için basit bir eklenti programlama arayüzüdür. Efektlerin davranışları basit parametrelerle denetlenebilmektedir.</Description>
    </Source>

    <Package>
        <Name>frei0r-plugins-devel</Name>
        frei0r-plugins 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 \
                         --with-pic")

def build():
    autotools.make()

def install():
    autotools.install()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>fribidi</Name>
        <Homepage>http://fribidi.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        A free implementation of the unicode bidirectional algorithm
        <Description>GNU FriBidi is the Free Implementation of the Unicode Bidirectional Algorithm.</Description>
        <Archive sha1sum="e470e078eafe6c065708def3e037c129c0d7367d" type="tarbz2">https://www.fribidi.org/download/fribidi-0.19.7.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>fribidi</Name>
        <Files>
            <Path fileType="executable">/usr/bin</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>fribidi-devel</Name>
        Development files for fribidi
        <RuntimeDependencies>
            <Dependency release="current">fribidi</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-01-25</Date>
            <Version>0.19.7</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.19.6</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-02-23</Date>
            <Version>0.19.6</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>fribidi</Name>
        Çift yönlü unikod algoritmanın özgür bir uyarlaması
        <Description xml:lang="tr">GNU FriBidi, Çift Yönlü Unicode Algoritması'nın özgür uygulamasıdır.</Description>
        <Description xml:lang="fr">GNU FriBidi est l'implémentation libre de l'algorithme bidirectionnel Unicode.</Description>
        <Description xml:lang="es">GNU FriBidi es la implementación libre del algoritmo Unicode Bidirectional.</Description>
    </Source>

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


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

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

def setup():
    shelltools.system("./bootstrap.sh")

    autotools.configure("--disable-static \
                         --with-fontconfig \
                         --with-png \
                         --with-freetype \
                         --with-jpeg \
                         --without-xpm")

def build():
    autotools.make()

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

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


code:
diff -up gd-2.1.0/config/gdlib-config.in.multilib gd-2.1.0/config/gdlib-config.in
--- gd-2.1.0/config/gdlib-config.in.multilib	2013-04-21 16:58:17.820010758 +0200
+++ gd-2.1.0/config/gdlib-config.in	2013-04-21 16:59:27.896317922 +0200
@@ -7,9 +7,10 @@
 # installation directories
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-libdir=@libdir@
+libdir=`pkg-config gdlib --variable=libdir`
 includedir=@includedir@
 bindir=@bindir@
+ldflags=`pkg-config gdlib --variable=ldflags`

 usage()
 {
@@ -68,7 +69,7 @@ while test $# -gt 0; do
 	echo @GDLIB_REVISION@
 	;;
     --ldflags)
-	echo @LDFLAGS@
+	echo $ldflags
 	;;
     --libs)
 	echo -lgd @LIBS@ @LIBICONV@
@@ -83,7 +84,7 @@ while test $# -gt 0; do
 	echo "GD library  @VERSION@"
 	echo "includedir: $includedir"
 	echo "cflags:     -I@includedir@"
-	echo "ldflags:    @LDFLAGS@"
+	echo "ldflags:    $ldflags"
 	echo "libs:       @LIBS@ @LIBICONV@"
 	echo "libdir:     $libdir"
 	echo "features:   @FEATURES@"


code:
From d41eb72cd4545c394578332e5c102dee69e02ee8 Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Tue, 7 Apr 2015 13:11:03 +0200
Subject: [PATCH] Fix build with latest libvpx 1.4.0

These new constants exist at least since 1.0.0
Compatibility ones have been droped in 1.4.0
---
 src/webpimg.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/webpimg.c b/src/webpimg.c
index cf73d64..e49fcc6 100644
--- a/src/webpimg.c
+++ b/src/webpimg.c
@@ -711,14 +711,14 @@ static WebPResult VPXEncode(const uint8* Y,
     codec_ctl(&enc, VP8E_SET_STATIC_THRESHOLD, 0);
     codec_ctl(&enc, VP8E_SET_TOKEN_PARTITIONS, 2);

-    vpx_img_wrap(&img, IMG_FMT_I420,
+    vpx_img_wrap(&img, VPX_IMG_FMT_I420,
                  y_width, y_height, 16, (uint8*)(Y));
-    img.planes[PLANE_Y] = (uint8*)(Y);
-    img.planes[PLANE_U] = (uint8*)(U);
-    img.planes[PLANE_V] = (uint8*)(V);
-    img.stride[PLANE_Y] = y_stride;
-    img.stride[PLANE_U] = uv_stride;
-    img.stride[PLANE_V] = uv_stride;
+    img.planes[VPX_PLANE_Y] = (uint8*)(Y);
+    img.planes[VPX_PLANE_U] = (uint8*)(U);
+    img.planes[VPX_PLANE_V] = (uint8*)(V);
+    img.stride[VPX_PLANE_Y] = y_stride;
+    img.stride[VPX_PLANE_U] = uv_stride;
+    img.stride[VPX_PLANE_V] = uv_stride;

     res = vpx_codec_encode(&enc, &img, 0, 1, 0, VPX_DL_BEST_QUALITY);


code:
From 2b3dd57a6ccb2940f2e9119ae04e14362e2a1f61 Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Fri, 22 Jul 2016 08:14:12 +0200
Subject: [PATCH] Fix gd2/gd2_read.c:8:6: error: 'error' may be used
 uninitialized in this function [-Werror=maybe-uninitialized]

Also report about any error, not only the last one.
---
 tests/gd2/gd2_read.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/tests/gd2/gd2_read.c b/tests/gd2/gd2_read.c
index 94fe069..8ce8bd1 100644
--- a/tests/gd2/gd2_read.c
+++ b/tests/gd2/gd2_read.c
@@ -5,7 +5,7 @@

 int main(int argc, char *argv[])
 {
-	int error, i = 0;
+	int error = 0, i = 0;
 	gdImagePtr im, exp;
 	FILE *fp;
 	char *path[] = {
@@ -40,8 +40,6 @@ int main(int argc, char *argv[])
 				gdTestErrorMsg("image %s differs from expected result\n", path[i]);
 				gdImageDestroy(im);
 				error = 1;
-			} else {
-				error = 0;
 			}
 			if (exp) {
 				gdImageDestroy(exp);
@@ -52,8 +50,6 @@ int main(int argc, char *argv[])
 				gdTestErrorMsg("image %s should have failed to be loaded\n", path[i]);
 				gdImageDestroy(im);
 				error = 1;
-			} else {
-				error = 0;
 			}
 		}
 		i++;


code:
From c9b601a658a79e6ea2aad29fbf60ca6e24ccef1e Mon Sep 17 00:00:00 2001
From: "Christoph M. Becker" <cmbecker69@gmx.de>
Date: Wed, 18 Jan 2017 13:59:02 +0100
Subject: [PATCH] Fix build issue regarding INT_MAX

For portability gd_gd2.c needs to include <limits.h>.
---
 src/gd_gd2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gd_gd2.c b/src/gd_gd2.c
index c2904ca..049c4c5 100644
--- a/src/gd_gd2.c
+++ b/src/gd_gd2.c
@@ -74,6 +74,7 @@

 /* 2.0.29: no more errno.h, makes windows happy */
 #include <math.h>
+#include <limits.h>
 #include <string.h>
 #include "gd.h"
 #include "gd_errors.h"

From 55ac28a293eaa8c531870c8bb8ecc04b333975f4 Mon Sep 17 00:00:00 2001
From: "Christoph M. Becker" <cmbecker69@gmx.de>
Date: Thu, 19 Jan 2017 01:02:58 +0100
Subject: [PATCH] Fix #357: 2.2.4: Segfault in test suite.

We make sure to never pass a negative `int` as argument to a `size_t`
parameter.
---
 src/gd_io_dp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gd_io_dp.c b/src/gd_io_dp.c
index eda2eeb..cb38794 100644
--- a/src/gd_io_dp.c
+++ b/src/gd_io_dp.c
@@ -292,6 +292,10 @@ static int dynamicGetbuf(gdIOCtxPtr ctx, void *buf, int len)
 		rlen = dp->realSize - dp->pos;
 	}

+	if (rlen < 0) {
+		return 0;
+	}
+
 	memcpy(buf, (void *) ((char *)dp->data + dp->pos), rlen);
 	dp->pos += rlen;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>gd</Name>
        <Homepage>http://www.libgd.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <License>BSD</License>
        <IsA>library</IsA>
        A fast library for creating graphic images
        <Description>The gd graphics library allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and to write out the result as a PNG or JPEG file. This is particularly useful in Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers. Note that gd is not a paint program.</Description>
        <Archive sha1sum="67779817d7aecb94594c43ace949af350ca1df7f" type="tarxz">https://github.com/libgd/libgd/releases/download/gd-2.2.4/libgd-2.2.4.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libvpx-devel</Dependency>
        </BuildDependencies>
        <Patches>

            <Patch level="1">gd-2.1.0-multilib.patch</Patch>
            <Patch level="1">gd-2.2.3-tests.patch</Patch>
            <Patch level="1">gd-2.2.4-upstream.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>gd</Name>
        <RuntimeDependencies>
            <Dependency>fontconfig</Dependency>
            <Dependency>tiff</Dependency>
            <Dependency>libvpx</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>freetype</Dependency>
            <Dependency>libpng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc/gd</Path>
        </Files>
    </Package>

    <Package>
        <Name>gd-devel</Name>
        Development files for gd
        <RuntimeDependencies>
            <Dependency release="current">gd</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="executable">/usr/bin/gdlib-config</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-02-15</Date>
            <Version>2.2.4</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-12</Date>
            <Version>2.1.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-08-02</Date>
            <Version>2.1.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>gd</Name>
        Hızlı bir şekilde resim oluşturmak için bir kütüphane
        Une librairie rapide pour créer des graphiques en images.
    </Source>

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

    <Package>
        <Name>gd-docs</Name>
        gd için geliştirme belgeleri
    </Package>
</PISI>


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

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

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

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>jansson</Name>
        <Homepage>http://www.digip.org/jansson/</Homepage>
        <Packager>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>library</IsA>
        <Summary>Jansson is a C library for encoding, decoding and manipulating JSON data.</Summary>
        <Description>It features: Simple and intuitive API and data model, Comprehensive documentation, No dependencies on other libraries, Full Unicode support (UTF-8), Extensive test suite.</Description>
        <Archive sha1sum="d8c04a344c37afff17cd17ffb3ca2a8a08c1eafc" type="tarbz2">http://www.digip.org/jansson/releases/jansson-2.9.tar.bz2</Archive>
    </Source>

    <Package>
        <Name>jansson</Name>
        <RuntimeDependencies>
            <Dependency>glibc</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

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