code:
BZh91AY&SYRxY�.X_�w4�����������`-�{ʁ*�WN_=�w�����v���3�s��w�^�NW-�˝�w���-�e���d�#�ss�P�{�w^�b���w��ۤU�=]�_y����d���o_^�mk�/w��Ys���\��|�>��G��OWY�IMA4�&&S�O)�43)�h�Fi@��Ѡ�ȁ	OAO����4h�ji�C&��JH��=A�z���4@d	4�b@i���&�OГ�Q�=G�ѐi�(
4

OPD�mjSބ�x�dSbmLҞQ���!��4=!�
z���  �&�F�OQ�Sjh�(z��6��H9eST�1!�Bv�!���[m��E�X
[m�2L)��6�4rC1BL*�"��L$�������Lm�������*����V��HBR�p�2��b��hd�c3+��T
�*�Q�32����
�[W-F)�Y�U\�rJ,�l�R����"E �af����&�E��b�q���"�Ȣ�"1*@2�����2�UUh��$� � �B	��HŒB �"ȅ�
Z��F�2-�7J
�D*Xj��
[U�A��(�n@���2��q��$EFZ�,�P��E��*��EQX{���(3������)@���x��"a`衈d8����<>���_n��sl���u��2:�2��f\���V͵f���?����t�����>�V���C]�m�J��Ġ��f	��yM�e`TԞ�4����w0�V�4m,�Y\OѬ�"����4��J�QHi�+�S���LFن�D?/�gמ�΍���g���6�9Z�/��k$���>/�n�.oC|�G���^'e�������%�#���X�BG=}�y������p	�!�
��C�B�T�d��{jy?"��>힟Y�ng�=#�ډ�b%@��Lҟ21����F�um�7�U�&Y��n	��x�>d�.�-��ӡ[��m
w^˛ݡGW���v�tz*��Rr���j�%G��N����t�<Zd(��Ҋ�f`�(��"��
w�댗�W�4����8����?��K��<�Q�g�栀_����h�s�c��i�WB�C��������������,5���0ʫ�Q�:MzR�N��
X3߁
h�̒l�������z:���5�yg���.�1���v�,&5	݀zC �B��1�;|�`D��G<�;v�:�������! dS��C�~�!QB,�!�eRal���8_��I����.���#ay�)H��G��;a�
���|)��M�� �CĈ�dQ�>_���`8R�ɧ��$.��O��l�}r����?GU�(��z�l��!��ae�"V@��6z���.�4�0��ϝK^Ԏ8��Q���j��I��_}dZ�8�K?�s�n74�O5�ɜZ��h���^;�){���0p<�*;�eU�0�+ṕ ��~��Tt����K�䴍X�V��c2/&=�i�1G�Qǌ��A���	'�|��O$�H�4A�?�$�M�����_��u�gɚ����
�`�y<<J����U�	2��>q��ߙ<��L:q9ܱ�O_�j����?C-"�w7�k�q�5���l��<8S)Q�wG�c2� [�O�d�
�f�튝��{3��'��h;ܽ����ȡZӛ�j3��042�8خ��؞��*E`�A���\��i���Rz�p,�VA���>�(��i���H2��3�,Z�m���44��Ul%�.;m�"�j
��M�T��
L��b̷BpÍ�:��������������}J�J���j�������� �y<��|'W������z}7M�0�}�x�ӭJe��}�\�
�huHvn����mM�w��!gFUd�=�z�nN��,1�v�-(wy���丟V�V�n�t�����X�i������F�H�Pq���U�$�E��KUUUU"�Q)m�U���,��GsFa��<��ݹ�%SPb���d
���}/��:��0)����v��]��`�ˎ���Ka�vO��-$y��)
�����7_�U���V	�,b�RR(�:Ī�FH3��0�//���?���!dX߼;���a�HC�宯	6{<���]����N�7�ӶbH�
*�T'j�I�jF�E�ß��*�M��-r�$�#��Di���|!��O��u6��ኈ����ˣ�CA��T(��\|��RR�������\��[V��*!��"Rm!:�<!��yWh
-*<%?r��׳���-"Ā����Ҝ��Q1�I(n�I�Tsi�k`�IY����Գ&I���w���	�?V��G��cm��bB��f�WjC�1� �XH�H���7f�O~/"-3P4kH�-��x
�m�ےJB�$�c{�E��"�G�����i��7�L��d������$b�ku�[�h5�D��G���uM	�u���#�m�	��hm�"&Y
���d`��I{�8�/�`C	�p"�TY��ܰ���?�j�+c5��]���[�O�og�x����������(e��#gqrSe[�y�?���~]�`"=+��7�O�aݤZ�T����r��ū�y`x��*>�q	Nf�6���P@���V+������W)P0HW�g��Ŭ`�j�;��_�v���m�ā�
:�ѭh���C=�B����%w���|��(������gg3�\�9lU[���:1��:d�^�Ǿ�Ϋ�@��Ȩ�t�����~RʟlF�j\R�M��
��(�b���*"!�-���R#Ǐ:z�A�TC�����d�]LQ�;"%n93�t��c��%T�E�l/��IYm�ΆDݥ�N�O��i���'Fpb�s�»b���A��n4�Y׶�a�!Խ9o�7�{Χ�����9�����c������S9���3���Z�_6ƭ��/:z�xuS8ʩJ�����R]մ�j��,Q:�i�ÍcN���M���΂�ҧ��e�m*���<[7ҪY̺��ǃ�����F1F�|���Q�qCr���Q=�9��L��<]��Y;��N�_Q�Gb���#3����Q>f_�6p�:����2B���`nv�I$�z@�m�낁#���(����Y��#�h;|9�2L���D��!|#�|T�3��9�*��%)'�4�
+��7�UUUW��9�ͶUUU�(h����#'�l���5�I$�l�ى�#�l�lN��m�,���d����-6�V�;��\v����n�.p�TH�/���h@>/
gJK��+!�U�����.�N?h!R�����(У��:�s��xXS�C�q7�fl�;��T���]&�]J/���X�H�)E�3���$�"�ỵ���r ��U�yd�T���;��Bd恜=������v�a
�>z�t�"""""""""""""""""""B�!B��uc���̀.�K���>O��m0��M44hQӨ���>�GfR�aM�����f`UE!��#YTl�o�ʙ��j�A�-D�-#����fl7�b��1��!m�bB�H^�ٹ!�n�65٥4�*�	1UUd�-i� ���$��Qm��"!�а�Bn<*��	@��H,"ؾ��:OT�BY�!
�>�S��%���_�k�8�#��b ��,
�a���#⾷��F/е������g)bRS4"��f����Z5R` K�ݓ��s�Mg[3�QǉƓ�R�"��l�t�X��{��ĒY�����w;MW<OW�n��Y%3����r+�V �һl6S:�l����ny��t���-�\D:z��R�ͺf����c��(��с��1+
�� �-���Z��DD��`{m�C��l�ҩ+d�"�@��9�S�5�c{9�����i��xnq����v��!��f6�̭�p�A�"ܹ�NZcs×��G;D��iRɹU4��Ј#�+�N%�M����Q�XMĥ3|'*o2��H����l۶�]Ɲ�E5��oj�F����a�м�d�3!���`x;�dK�(�*V�6D��?w����h��}�
Mnl'�c������;�LwY��Jp�\L������~����o�ｙ"Llbw>�G�e�)����*�������YL;s�'L����Kl�����ؓ;�ҙ�f*z~���o�� =��-V��05w�.�eB�ҠQ��nX�<��~�#�$�
BǺ��"�A�EE���@$	�=���O��)��g��������o���(-��@ �W���S��H��g�V�P�O�r�I}�#g��1^#���b�%�ͥ1ɂ��!��X��ܶ3�R��B	j�CRi�������WZ*z���GϹ%I�Ag�s� !!7���h ����}�9���B�~�����^�^��{,s���[@�#A����
�(�km-����ŭ��VbhEs
��DeG+�*���e�|�Mv�&�GT_���H��'�Ժ�J��� !����H�F*pc\����W �>�d=1ۍc�����Z��:U���~��b�ʩ[U���(Z2�e�V�#?���-զ;)K���٧l�x���=e�v(f��_n>�.l�c�	��N_g�b}�	�&ǖ�y+grT�_m���]�vq����K��B���>R�!ܚ*�r�c�M��#��������Wa�	�������o�u��m$�w�{���F'
��mDG��� &�$�
�s{
��D�qWJ��,��H�6$,d6�� M�����w"�\0*tO��x��L8P��;���>�@�bf����m�k���yy�0��84<�V7��O,������MRW�]>�ׇ�&1�<��_3�AK�j�0�M@�x	H�� P'e�f�D��h�&:��6\8*�7�����VXA	 E�SD=쒌��E�Ĉ���Z�vQB	�Q�tl�L�?Xv��;n�����NEA,K��h8p����G,}eM���Y�}r���oS��Ԅ�BwU�N�F�k��"X'/�QET�Σrм�E���x[�ꢢ`��!��ⓟf�d�ψ4�3P��hO��/�I	R@]m�?�J
q,bC_�u�u9��$7�>FP^hѪ�z4���
�G[)��h���pPj(&F�����8��U`��"G����Y:@M��EEX�ۋi����b���p�8�$��ܮ⨬�BBդ�����5(_�SŲdX"I�
`30(�&� ���m��s�7B1\�����K����UQ�~����8�^á�������I$��[JR��n	������B�"d4V�Y����X�^{�'��G��y��Z|��U�&!w�4P�3�r<�(��Cӕ�
jf,ְ]��`/FL���M��G��)Ί�	v��c�"""��;��?B&�^G<a}#�ѲKԓ��СiL2a�!�<����ňB-/k��b/H�Ld�T�v���B� �"e�7"�{����C�L�}����H��W��Y��[I_�[�P@�F�S�(���$G��wF��Y��1�9��Os�~�w���A&UmR0�7h�Q*���tk��6�UM�AhH�_O�HYK���\�Ò�@-}�~$�G�%)���]����P�Ih|:\x��l�@,��&��إo�?�7`�J�i�0���ae�a�U�D[��:yK�4o���j77]�l>K�%χIX�*#��YF�������M��r
 �3  fV�IK�T�QK�q��Ơ�>ZG�/�{@��\]؏����bW
�Qer@Q���E�бe&<�!�#��h
s H�&�e=+�+Ϳ��m�am�m���o*�`x����N^ߞ�]̈H~��>�xI%�y̕���䡞Ϡ3vCl�Ū�nZ(�QHv�Y����
�"�JJ�\z_�&��ˀR���z�{�����`���d��AoQh5��-l������a��l�:�p������nJ�~ޛ�Ͽ�	f)t���(���F�t��%@ ��"AزY�G`�& ���/Upb>��Ɣr3�����UNŚ�}"����\
���/K�ɹ��q�_E%~K@FX/�����C8�~���f�%30���8�u��t�		ڊ(��U��$;U��,�G0�~B��z�!H�-��ɠ�q�*Ø�^��9��7k)ZL��v�@���c��t@��!$�G8�Z�| ��F����=�y��H*�'��F)�0

���@�/��ö���=�l� '�o�)�c����@g;ʯ�(��Y0-��˘��"�n�Њ�{{�n�z��[�r7@�;�X-�3��Q�H`��M�gԼ����@��0�O��/���Kb�v
�U@��-����
���d�����,E��*eb�Hd
X�6@Jh�|�Y`@�3��<�0
&�%�J3
� !R1��AQJ��cۯ?�$�Q$��
d�
��^����K��{lF!�䀒ǘ�_e}C{��8�01)@C�lJ
p�<!�֋��萶X��hU�4>�D��#E���{P0��߅��g�0daho4]9�.��(mQ���ju=���{��HE�r
�HH3r=���2��3��i�T�[O�4� ����� �Б̷cv`���	0�ײ���N��
!�쪯P��0:1�=����`��ȰݾB����4��=л���B����Q�Gu[��E(ۘwMP]@D�O�*�� d8�K���Tl`k͠[���F�Ú�B�S��%P�n��r���
�9����	'�F�p:��#�e�f�#	@���d렞����I����e�W���-��P3�c #��N�^/��A��!V	��5��!�3�Q�9��a�.��N��&z^������v`��L���R;H��%^�}�I���}4�X��<c���lA�c�u��<X��1��n�!A��+�z��g���y�^���f��z�U8F��:k�f��u�o��xa�S�N��a#5E�Z(�(A`������n�"j >
q1
@a>x�,mu"c�;}jQ��<�B�Lv�ۆ(D���.���*�;��G�b"�h�4s�{G2H��N��G9��������8�r���y�1��䵈���P�u���tC�
}���8�np"p!.��2�q)|T�����٪���M�^��p6��[^F.B�ؓ!r:����p�<�<{C�21��&H*�
�zA���d/����N`�c�$!�D���e�Y��ߺX>BIR&��␝4l
����/ꇀA�(�U
9��!�!�
(D���G$^��R$+'��-��`��
��65�U
�3��9�i���%q������CX�ʳ���?g�E�5�_�������k
C�CDd����!N�P�S�'�i����+��%9���6)�J �U�-;(ب�+���uˀ��Y��HS���蘂d��7�,�wb��� �{#�C ,Il�����3)�ɻ�j7є����
�)��ʜN)����P�o�q�\��8��J�\���׫~p��,���FՈD9��C�%�/�nab����`x��;&(ꏴ��w'��Y`����Rѐ�Q�w�C<T�6I�3K^-�G�Yq�;��ڬ���zP�/�E_j��Ҽ�1Mq���7v���ͬѽ���,XV�-BYr�כ�0oзCs5����'
�B[9\�'3sFy-ɹ����j��O��1j�Fr������~N
WT+�|M��_�E�o���;�O��P[���W��Z-�V�F�K!�L���������y��x5�S�{@d]>�yE���Q̫��������.�q�Ad���+m�ڹ�����q�ȏ֞E�a���cP�!	� ���_`��Q����J����p_��L�C�� k���Oj��ǐ����f*����0����%��-p��a���I�O&"����H*�z'UIt|){S`��^a:A�\P��Ǘ-��(`���-�Z�u��q|�2����9Xɘ�8-����i��ϰad�n����;�L�꧌{�x�ʅ9��}'�1��<�g�P����$�Y�h��kO�jX�E4�|5�ʇu�#p��44���dl�Zk]�ڤ�a�&��U���ٗ;��-*��(��ET��y�}Ɓ����6�ޱU���UT�q�pߢ����9.敁��&�LM>r�����f����w���>:��JL�}[<�D��hk�I$a�
ۙ�a����vL+�yo)w��W��(r�ৠ
���_ �(�GxP����A h����A�+Ab�"�sh�X�#�R2�D��
2Q�i��*���o�G�
Cv�*�Ӏm��E����J"V����_���F��j��Lk�������X�T*�P����D-�z�J�X�ZB
gPt�C..�\bYg�DP��Kg�T)�
[6�P���9Y�rF!��$;@Mz J|�n��8���!`���<b�M����ZڂVۉ�:r�&�������H@Y��qHDS��V��?��ч�P�uR�Ѻ|ch�w$S�	'���


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>jasper</Name>
        <Homepage>http://www.ece.uvic.ca/~mdadams/jasper</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        Software implementation of JPEG-2000 Part 1
        <Description>JasPer is a software-based implementation of the codec specified in the JPEG-2000 Part-1 standard (ISO/IEC 15444-1:2000).</Description>
        <Archive sha1sum="42518b05fd73242f8ee8047d2e35e0275a697a5f" type="targz">http://www.ece.uvic.ca/~frodo/jasper/software/jasper-2.0.10.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>cmake</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>

        </BuildDependencies>
        <Patches>
            <Patch level="1">jasper-1.900.1-fix-filename-buffer-overflow.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>jasper</Name>
        <RuntimeDependencies>

            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

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

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

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

            <Dependency>libjpeg-turbo-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">jasper</Dependency>

            <Dependency>libjpeg-turbo-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-02-06</Date>
            <Version>2.0.10</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.900.1</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-05-27</Date>
            <Version>1.900.1</Version>
            <Comment>Release bump</Comment>
            <Name>Hakan Yıldız</Name>
            <Email>hknyldz93@gmail.com</Email>
        </Update>
        <Update release="1">
            <Date>2015-06-26</Date>
            <Version>1.900.1</Version>
            <Comment>First release</Comment>
            <Name>Hakan Yıldız</Name>
            <Email>hknyldz93@gmail.com</Email>
        </Update>
    </History>
</PISI>

repo_name: ayhanyalcinsoy/main


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>jasper</Name>
        JasPer JPEG-2000 Part-1 codec standardı üzerinde konumlandırılmış bir yazılım
    </Source>

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

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


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

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

def build():
    autotools.make("-j1 CC=%s CFLAGS='%s'" % (get.CC(), get.CFLAGS()))

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

def install():
    pisitools.insinto("/usr/include/", "libjbig/jbig*.h")
    pisitools.insinto("/usr/lib/", "libjbig/libjbig*.so*")
    pisitools.insinto("/usr/bin/", "pbmtools/jbgtopbm")
    pisitools.insinto("/usr/bin/", "pbmtools/pbmtojbg")
    pisitools.insinto("/usr/bin/", "pbmtools/jbgtopbm85")
    pisitools.insinto("/usr/bin/", "pbmtools/pbmtojbg85")

    pisitools.doman("pbmtools/jbgtopbm.1", "pbmtools/pbmtojbg.1")
    pisitools.dodoc("ANNOUNCE", "CHANGES", "COPYING", "TODO")


code:
diff -up jbigkit-2.1/pbmtools/pbmtojbg85.c.warnings jbigkit-2.1/pbmtools/pbmtojbg85.c
--- jbigkit-2.1/pbmtools/pbmtojbg85.c.warnings	2008-08-26 00:26:39.000000000 +0200
+++ jbigkit-2.1/pbmtools/pbmtojbg85.c	2012-07-17 16:24:56.741332942 +0200
@@ -72,9 +72,12 @@ static unsigned long getint(FILE *f)
       while ((c = getc(f)) != EOF && !(c == 13 || c == 10)) ;
   if (c != EOF) {
     ungetc(c, f);
-    fscanf(f, "%lu", &i);
+    if (fscanf(f, "%lu", &i) != 1) {
+      /* should never fail, since c must be a digit */
+      fprintf(stderr, "Unexpected failure reading digit '%c'\n", c);
+      exit(1);
+    }
   }
-
   return i;
 }

@@ -239,7 +242,9 @@ int main (int argc, char **argv)
       break;
     case '4':
       /* PBM raw binary format */
-      fread(next_line, bpl, 1, fin);
+      if (fread(next_line, bpl, 1, fin) != 1) {
+	/* silence compiler warnings; ferror/feof checked below */
+      }
       break;
     default:
       fprintf(stderr, "Unsupported PBM type P%c!\n", type);
diff -up jbigkit-2.1/pbmtools/pbmtojbg.c.warnings jbigkit-2.1/pbmtools/pbmtojbg.c
--- jbigkit-2.1/pbmtools/pbmtojbg.c.warnings	2008-07-16 22:59:41.000000000 +0200
+++ jbigkit-2.1/pbmtools/pbmtojbg.c	2012-07-17 16:23:46.584285686 +0200
@@ -88,7 +88,11 @@ static unsigned long getint(FILE *f)
       while ((c = getc(f)) != EOF && !(c == 13 || c == 10)) ;
   if (c != EOF) {
     ungetc(c, f);
-    fscanf(f, "%lu", &i);
+    if (fscanf(f, "%lu", &i) != 1) {
+      /* should never fail, since c must be a digit */
+      fprintf(stderr, "Unexpected failure reading digit '%c'\n", c);
+      exit(1);
+    }
   }

   return i;
@@ -302,7 +306,9 @@ int main (int argc, char **argv)
     break;
   case '4':
     /* PBM raw binary format */
-    fread(bitmap[0], bitmap_size, 1, fin);
+    if (fread(bitmap[0], bitmap_size, 1, fin) != 1) {
+      /* silence compiler warnings; ferror/feof checked below */
+    }
     break;
   case '2':
   case '5':
@@ -314,8 +320,18 @@ int main (int argc, char **argv)
 	for (j = 0; j < bpp; j++)
 	  image[x * bpp + (bpp - 1) - j] = v >> (j * 8);
       }
-    } else
-      fread(image, width * height, bpp, fin);
+    } else {
+      if (fread(image, width * height, bpp, fin) != (size_t) bpp) {
+	if (ferror(fin)) {
+	  fprintf(stderr, "Problem while reading input file '%s", fnin);
+	  perror("'");
+	  exit(1);
+	} else {
+	  fprintf(stderr, "Unexpected end of input file '%s'!\n", fnin);
+	  exit(1);
+	}
+      }
+    }
     jbg_split_planes(width, height, planes, encode_planes, image, bitmap,
 		     use_graycode);
     free(image);


code:
diff -Naur jbigkit-2.1.old/libjbig/Makefile jbigkit-2.1/libjbig/Makefile
--- jbigkit-2.1.old/libjbig/Makefile	2014-03-27 19:47:15.000000000 +0100
+++ jbigkit-2.1/libjbig/Makefile	2014-08-04 10:45:31.865773710 +0200
@@ -4,25 +4,27 @@
 CC = gcc

 # Options for the compiler: A high optimization level is suggested
-CFLAGS = -g -O -W -Wall -ansi -pedantic # --coverage
+CFLAGS = $(RPM_OPT_FLAGS) -W -Wall -ansi -pedantic # --coverage
+PICFLAGS := -fPIC -DPIC

-all: libjbig.a libjbig85.a tstcodec tstcodec85
+all: libjbig.so.$(VERSION) tstcodec tstcodec85

-tstcodec: tstcodec.o jbig.o jbig_ar.o
-	$(CC) $(CFLAGS) -o tstcodec tstcodec.o jbig.o jbig_ar.o
+tstcodec: tstcodec.o libjbig.so
+	$(CC) $(CFLAGS) -o tstcodec $< -L. -ljbig

-tstcodec85: tstcodec85.o jbig85.o jbig_ar.o
-	$(CC) $(CFLAGS) -o tstcodec85 tstcodec85.o jbig85.o jbig_ar.o
+tstcodec85: tstcodec85.o libjbig85.so
+	$(CC) $(CFLAGS) -o tstcodec85 $^ -L. -ljbig

-libjbig.a: jbig.o jbig_ar.o
-	rm -f libjbig.a
-	ar rc libjbig.a jbig.o jbig_ar.o
-	-ranlib libjbig.a
+%.so: %.so.$(VERSION)
+	ln -sf $< $@

-libjbig85.a: jbig85.o jbig_ar.o
-	rm -f libjbig85.a
-	ar rc libjbig85.a jbig85.o jbig_ar.o
-	-ranlib libjbig85.a
+libjbig.so.$(VERSION): jbig.o jbig_ar.o
+	$(CC) $(CFLAGS) -shared -Wl,-soname,$@ -o $@ $^
+
+libjbig85.so.$(VERSION): jbig85.o jbig_ar.o
+	$(CC) $(CFLAGS) -shared -Wl,-soname,$@ -o $@ $^
+
+jbig.o jbig85.o jbig_ar.o: CFLAGS += $(PICFLAGS)

 jbig.o: jbig.c jbig.h jbig_ar.h
 jbig85.o: jbig85.c jbig85.h jbig_ar.h
@@ -43,11 +45,11 @@
 	clang --analyze *.c

 test: tstcodec tstcodec85
-	./tstcodec
-	./tstcodec85
+	LD_LIBRARY_PATH=`pwd` ./tstcodec
+	LD_LIBRARY_PATH=`pwd` ./tstcodec85

 t82test.pbm: tstcodec
-	./tstcodec $@
+	LD_LIBRARY_PATH=`pwd` ./tstcodec $@

 clean:
 	rm -f *.o *.gcda *.gcno *.gcov *.plist *~ core gmon.out dbg_d\=??.pbm
diff -Naur jbigkit-2.1.old/Makefile jbigkit-2.1/Makefile
--- jbigkit-2.1.old/Makefile	2014-03-27 19:47:15.000000000 +0100
+++ jbigkit-2.1/Makefile	2014-08-04 10:52:09.242027746 +0200
@@ -4,25 +4,26 @@
 CC = gcc

 # Options for the compiler: A high optimization level is suggested
-CFLAGS = -O2 -W -Wno-unused-result
+CFLAGS = $(RPM_OPT_FLAGS) -W -Wno-unused-result
 # CFLAGS = -O -g -W -Wall -Wno-unused-result -ansi -pedantic # -DDEBUG

 export CC CFLAGS

 VERSION=2.1
+export VERSION

 all: lib pbm
 	@echo "Enter 'make test' in order to start some automatic tests."

 lib:
-	cd libjbig && $(MAKE) -e
+	make -C libjbig

 pbm: lib
-	cd pbmtools && $(MAKE) -e
+	make -C pbmtools

 test: lib pbm
-	cd libjbig  && $(MAKE) test
-	cd pbmtools && $(MAKE) test
+	LD_LIBRARY_PATH=`pwd`/libjbig make -C libjbig test
+	LD_LIBRARY_PATH=`pwd`/libjbig make -C pbmtools test

 analyze:
 	cd libjbig  && $(MAKE) analyze
@@ -30,8 +31,8 @@

 clean:
 	rm -f *~ core
-	cd libjbig  && $(MAKE) clean
-	cd pbmtools && $(MAKE) clean
+	make -C libjbig clean
+	make -C pbmtools clean

 distribution:
 	rm -rf jbigkit-$(VERSION)
diff -Naur jbigkit-2.1.old/pbmtools/Makefile jbigkit-2.1/pbmtools/Makefile
--- jbigkit-2.1.old/pbmtools/Makefile	2014-03-27 19:47:15.000000000 +0100
+++ jbigkit-2.1/pbmtools/Makefile	2014-08-04 10:49:47.694581174 +0200
@@ -4,26 +4,26 @@
 CC = gcc

 # Options for the compiler
-CFLAGS = -g -O -W -Wall -Wno-unused-result -ansi -pedantic # --coverage
+CFLAGS = $(RPM_OPT_FLAGS) -W -Wall -Wno-unused-result -ansi -pedantic # --coverage
 CPPFLAGS = -I../libjbig

 .SUFFIXES: .1 .5 .txt $(SUFFIXES)
 .PHONY: txt test test82 test85 clean

-all: pbmtojbg jbgtopbm pbmtojbg85 jbgtopbm85 txt
+all: pbmtojbg jbgtopbm pbmtojbg85 jbgtopbm85 # txt

 txt: pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt

-pbmtojbg: pbmtojbg.o ../libjbig/libjbig.a
+pbmtojbg: pbmtojbg.o ../libjbig/libjbig.so
 	$(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.o -L../libjbig -ljbig

-jbgtopbm: jbgtopbm.o ../libjbig/libjbig.a
+jbgtopbm: jbgtopbm.o ../libjbig/libjbig.so
 	$(CC) $(CFLAGS) -o jbgtopbm jbgtopbm.o -L../libjbig -ljbig

-pbmtojbg85: pbmtojbg85.o ../libjbig/libjbig85.a
+pbmtojbg85: pbmtojbg85.o ../libjbig/libjbig85.so
 	$(CC) $(CFLAGS) -o pbmtojbg85 pbmtojbg85.o -L../libjbig -ljbig85

-jbgtopbm85: jbgtopbm85.o ../libjbig/libjbig85.a
+jbgtopbm85: jbgtopbm85.o ../libjbig/libjbig85.so
 	$(CC) $(CFLAGS) -o jbgtopbm85 jbgtopbm85.o -L../libjbig -ljbig85

 jbgtopbm.o: jbgtopbm.c ../libjbig/jbig.h
@@ -31,13 +31,13 @@
 jbgtopbm85.o: jbgtopbm85.c ../libjbig/jbig85.h
 pbmtojbg85.o: pbmtojbg85.c ../libjbig/jbig85.h

-../libjbig/libjbig.a: ../libjbig/jbig.c ../libjbig/jbig.h \
+../libjbig/libjbig.so: ../libjbig/jbig.c ../libjbig/jbig.h \
 	../libjbig/jbig_ar.c ../libjbig/jbig_ar.h
-	make -C ../libjbig libjbig.a
+	make -C ../libjbig libjbig.so

-../libjbig/libjbig85.a: ../libjbig/jbig85.c ../libjbig/jbig85.h \
+../libjbig/libjbig85.so: ../libjbig/jbig85.c ../libjbig/jbig85.h \
 	../libjbig/jbig_ar.c ../libjbig/jbig_ar.h
-	make -C ../libjbig libjbig85.a
+	make -C ../libjbig libjbig85.so

 analyze:
 	clang $(CPPFLAGS) --analyze *.c


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>jbigkit</Name>
        <Homepage>http://www.cl.cam.ac.uk/~mgk25/jbigkit/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        <IsA>app:console</IsA>
        A portable library of compression and decompression functions
        <Description>JBIG-KIT implements a highly effective data compression algorithm for bi-level high-resolution images such as fax pages or scanned documents.</Description>
        <Archive sha1sum="4864646df004e8331d19f2fa103ed731fdb6c099" type="targz">https://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-2.1.tar.gz</Archive>
        <Patches>
            <Patch level="1">jbigkit-2.1-shared.diff</Patch>
            <Patch level="1">jbigkit-2.0-warnings.patch</Patch>
        </Patches>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-03-01</Date>
            <Version>2.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-19</Date>
            <Version>2.0</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>jbigkit</Name>
        Taşınabilir bir sıkıştırma kitaplığı
        <Description xml:lang="tr">jbigkit, faks sayfaları ve taranmış belgeler gibi yüksek çözünürlüklü görüntüler için, yüksek performanslı bir sıkıştırma kitaplığıdır.</Description>
    </Source>

    <Package>
        <Name>jbigkit-devel</Name>
        jbigkit 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():
    #needed by mozilla patch
    autotools.autoreconf("-vfi")
    options = "--disable-dependency-tracking \
               --disable-static \
               --with-jpeg \
               --with-tiff \
               --with-zlib \
               --with-python"

    if get.buildTYPE() == "emul32":
        options += " --without-python"

    autotools.configure(options)

def build():
    #needed by mozilla patch, swig must be run again
    shelltools.cd("python")
    shelltools.system("./swig_lcms")
    shelltools.cd("..")

    autotools.make()

def install():
    autotools.rawInstall('DESTDIR=%s \
                          BINDIR=%s/usr/bin \
                          includedir=/usr/include' % (get.installDIR(), get.installDIR()))

    pisitools.insinto("/usr/share/lcms/profiles", "testbed/*.icm")

    pisitools.dodoc("AUTHORS", "README*", "NEWS", "doc/*")


code:
--- src/cmsxform.c~	2009-03-26 17:53:27.000000000 +0000
+++ src/cmsxform.c	2009-03-26 18:31:41.000000000 +0000
@@ -689,6 +689,9 @@
                 GrayTRC = cmsReadICCGamma(hProfile, icSigGrayTRCTag);
                 FromLstarToXYZ(GrayTRC, Shapes1);

+		if (GrayTRC == NULL)
+			return NULL;
+
                 // Reversing must be done after curve translation

                 Shapes[0] = cmsReverseGamma(Shapes1[0]->nEntries, Shapes1[0]);
@@ -704,6 +707,9 @@

                 GrayTRC = cmsReadICCGammaReversed(hProfile, icSigGrayTRCTag);   // Y

+		if (GrayTRC == NULL)
+			return NULL;
+
                 Shapes[0] = cmsDupGamma(GrayTRC);
                 Shapes[1] = cmsDupGamma(GrayTRC);
                 Shapes[2] = cmsDupGamma(GrayTRC);


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lcms</Name>
        <Homepage>http://www.littlecms.com/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        A lightweight, speed optimized color management engine
        <Description>LittleCMS intends to be a small-footprint, speed optimized color management engine in open source form.</Description>

        <Archive sha1sum="d5b075ccffc0068015f74f78e4bc39138bcfe2d4" type="targz">mirrors://sourceforge/project/lcms/lcms/1.19/lcms-1.19.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>swig</Dependency>
            <Dependency>tiff-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>CVE-2009-0793.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>lcms</Name>
        <RuntimeDependencies>
            <Dependency>tiff</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/lcms</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>lcms-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for lcms
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>tiff-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency release="current">lcms</Dependency>

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

    <History>
        <Update release="3">
            <Date>2017-02-05</Date>
            <Version>1.19</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>1.19</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-19</Date>
            <Version>1.19</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>lcms</Name>
        Hız geliştirmesi yapılmış, hafif bir renk yönetim motoru
        Moteur de gestion de couleurs léger et optimisé pour la vitesse.
    </Source>

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

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


code:
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/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-dependency-tracking \
                         --disable-static \
                         --with-jpeg \
                         --with-tiff \
                         --with-zlib \
                         --libdir=/usr/lib%s \
                        " % ("32" if get.buildTYPE() == "emul32" else ""))

def build():
    autotools.make()

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

    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "README.1ST")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lcms2</Name>
        <Homepage>http://www.littlecms.com</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>MIT</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        A color management library.
        <Description>Little cms is a color management library. Implements fast transforms between ICC profiles. It is focused on speed, and is portable across several platforms.</Description>
        <Archive sha1sum="e9535ec4a572b8fc7a1c405c35e6f4dc97714197" type="targz">http://sourceforge.net/projects/lcms/files/lcms/2.8/lcms2-2.8.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>tiff-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>lcms2</Name>
        <RuntimeDependencies>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>tiff</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/lcms/</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

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

    <History>
        <Update release="4">
            <Date>2017-02-05</Date>
            <Version>2.8</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>2.6</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>2.6</Version>
            <Comment>Release bump.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-05-01</Date>
            <Version>2.6</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>lcms</Name>
        Hız geliştirmesi yapılmış, hafif bir renk yönetim motoru
        Moteur de gestion de couleurs léger et optimisé pour la vitesse.
        Biblioteka do konwersji między profilami kolorów.
    </Source>
</PISI>


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

from pisi.actionsapi import cmaketools
from pisi.actionsapi import get

def setup():
    cmaketools.configure("-DCMAKE_INSTALL_LIBDIR=lib")

def build():
    cmaketools.make()

def install():
    cmaketools.install()


code:
From 9ec857bb403accc262a9b5a9c2921b5c064fc9c8 Mon Sep 17 00:00:00 2001
From: Sebastian Kraft <mail@sebastiankraft.net>
Date: Sat, 9 Jan 2016 20:55:21 +0100
Subject: [PATCH] Patch #47: respect DESTDIR when installing python stuff

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

diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt
index 70c77fd..2f6f8f1 100644
--- a/apps/CMakeLists.txt
+++ b/apps/CMakeLists.txt
@@ -42,5 +42,5 @@ IF(PYTHON)
     IF(NOT DEFINED SETUP_PY_INSTALL_PREFIX)
       SET(SETUP_PY_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
     ENDIF()
-    INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=${SETUP_PY_INSTALL_PREFIX})")
+    INSTALL(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --prefix=\$ENV{DESTDIR}${SETUP_PY_INSTALL_PREFIX})")
 ENDIF(PYTHON)
--
2.6.4


code:
From 3f74b78e4ee9f1d400ebbf2b9093a0f9c48c6307 Mon Sep 17 00:00:00 2001
From: Sebastian Kraft <mail@sebastiankraft.net>
Date: Sat, 9 Jan 2016 20:48:16 +0100
Subject: [PATCH] Use database in source directory while running tests. Fixes
 bug #46.

---
 tests/CMakeLists.txt    | 4 ++--
 tests/test_database.cpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b79fda6..4056072 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,6 +1,6 @@
 ADD_EXECUTABLE(test_database test_database.cpp)
 TARGET_LINK_LIBRARIES(test_database lensfun ${COMMON_LIBS})
-ADD_TEST(Database test_database)
+ADD_TEST(NAME Database WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} COMMAND test_database)

 ADD_EXECUTABLE(test_modifier test_modifier.cpp)
 TARGET_LINK_LIBRARIES(test_modifier lensfun ${COMMON_LIBS})
@@ -30,4 +30,4 @@ TARGET_LINK_LIBRARIES(test_modifier_coord_geometry lensfun ${COMMON_LIBS})
 ADD_TEST(Modifier_coord_geometry test_modifier_coord_geometry)

 FIND_PACKAGE(PythonInterp REQUIRED)
-ADD_TEST(NAME Database_integrity COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/check_database/check_database.py ../../data/db)
+ADD_TEST(NAME Database_integrity COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/tools/check_database/check_database.py ${CMAKE_SOURCE_DIR}/data/db)
diff --git a/tests/test_database.cpp b/tests/test_database.cpp
index 45dc38f..49a2644 100644
--- a/tests/test_database.cpp
+++ b/tests/test_database.cpp
@@ -10,7 +10,7 @@ typedef struct {
 void db_setup(lfFixture *lfFix, gconstpointer data)
 {
     lfFix->db = lf_db_new ();
-    lfFix->db->Load();
+    lfFix->db->LoadDirectory("data/db");
 }

--
2.6.4


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>lensfun</Name>
        <Homepage>http://lensfun.berlios.de/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv3</License>
        <License>GPLv3</License>
        <License>CCPL-Attribution-ShareAlike-3.0</License>
        <IsA>library</IsA>
        A programming library for rectifying and simulating photographic lens distortions
        <Description>lensfun provides an open source database of photographic lenses and their characteristics. The library provides also the necessary set of algorithms for correcting images based on detailed knowledge of lens properties and calibration data.</Description>
        <Archive sha1sum="1d978b15aa7304d66a4931fa37ca9f8f89396c16" type="targz">https://sourceforge.net/projects/lensfun/files/0.3.2/lensfun-0.3.2.tar.gz</Archive>
        <Patches>
            <Patch level="1">upstream_Patch-47-respect-DESTDIR-when-installing-python-stuf.patch</Patch>
            <Patch level="1">upstream_Use-database-in-source-directory-while-running-tests.patch</Patch>
        </Patches>
        <BuildDependencies>
            <Dependency>doxygen</Dependency>
            <Dependency>cmake</Dependency>
            <Dependency>glib2-devel</Dependency>
        </BuildDependencies>
    </Source>

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

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

    <History>
        <Update release="2">
            <Date>2017-02-05</Date>
            <Version>0.3.2</Version>
            <Comment>Rebuild.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-11-13</Date>
            <Version>0.3.2</Version>
            <Comment>First Release.</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>lensfun</Name>
        Mercek kaynaklı bozulmaları simüle etmek ve düzeltmek için bir kütüphane
        <Description xml:lang="tr">lensfun, kamera objektiflerinin karakteristiklerini içeren açık kaynaklı bir veritabanı ve bu karakteristikleri temel alarak mercek kaynaklı bozulmaları düzeltmek için yazılmış algoritmaları içeren bir kütüphanedir.</Description>
    </Source>

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


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

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

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

def build():
    autotools.make()

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

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


code:
From e1443c945a4cf67096d8c27721aadd7368382b3f Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Tue, 6 Apr 2010 15:22:25 +0200
Subject: [PATCH 2/2] gentoo: use ISO types for fixed type size

---
 Makefile.am  |   11 ++---------
 art_config.h |    5 +++++
 configure.in |   10 ----------
 3 files changed, 7 insertions(+), 19 deletions(-)
 create mode 100644 art_config.h

diff --git a/Makefile.am b/Makefile.am
index 95952da..6aa2fe3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,13 +2,6 @@ check_PROGRAMS = testart testuta

 bin_SCRIPTS = \
 	libart2-config
-
-noinst_SCRIPTS = gen_art_config.sh
-
-BUILT_SOURCES = art_config.h
-
-art_config.h:
-	./gen_art_config.sh > art_config.h

 EXTRA_DIST = 			\
 	libart.def		\
@@ -173,5 +166,5 @@ install-data-local: install-ms-lib install-libtool-import-lib

 uninstall-local: uninstall-ms-lib uninstall-libtool-import-lib

-CLEANFILES = $(BUILT_SOURCES) $(bin_SCRIPTS)
-DISTCLEANFILES = $(BUILT_SOURCES) $(bin_SCRIPTS)
+CLEANFILES = $(bin_SCRIPTS)
+DISTCLEANFILES = $(bin_SCRIPTS)
diff --git a/art_config.h b/art_config.h
new file mode 100644
index 0000000..5985f1f
--- a/art_config.h
+++ b/art_config.h
@@ -0,0 +1,5 @@
+#include <stdint.h>
+
+typedef uint8_t art_u8;
+typedef uint16_t art_u16;
+typedef uint32_t art_u32;
diff --git a/configure.in b/configure.in
index e4804f7..ddcac4f 100644
--- a/configure.in
+++ b/configure.in
@@ -92,15 +92,6 @@ AC_FUNC_ALLOCA

 AC_C_BIGENDIAN

-AC_CHECK_SIZEOF(char)
-AC_SUBST(ART_SIZEOF_CHAR, $ac_cv_sizeof_char)
-AC_CHECK_SIZEOF(short)
-AC_SUBST(ART_SIZEOF_SHORT, $ac_cv_sizeof_short)
-AC_CHECK_SIZEOF(int)
-AC_SUBST(ART_SIZEOF_INT, $ac_cv_sizeof_int)
-AC_CHECK_SIZEOF(long)
-AC_SUBST(ART_SIZEOF_LONG, $ac_cv_sizeof_long)
-
 AC_CONFIG_FILES([
 libart-features.h
 Makefile
@@ -109,6 +100,5 @@ libart-2.0-uninstalled.pc
 libart-zip])

 AC_CONFIG_FILES([libart-config],[chmod +x libart-config])
-AC_CONFIG_FILES([gen_art_config.sh],[chmod +x gen_art_config.sh])

 AC_OUTPUT
--
1.7.0.4


code:
From f3afed3b06c34c588a7c67cb83064e16255f54b4 Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Tue, 6 Apr 2010 15:11:46 +0200
Subject: [PATCH 1/2] gentoo: do not build tests if not required

---
 Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index aec6c5d..95952da 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-noinst_PROGRAMS = testart testuta
+check_PROGRAMS = testart testuta

 bin_SCRIPTS = \
 	libart2-config
--
1.7.0.4


code:
diff -Nur libart_lgpl-2.3.21-old/art_config.h libart_lgpl-2.3.21/art_config.h
--- libart_lgpl-2.3.21-old/art_config.h	2010-08-29 16:42:06.822999763 +0300
+++ libart_lgpl-2.3.21/art_config.h	1970-01-01 02:00:00.000000000 +0200
@@ -1,10 +0,0 @@
-/* Automatically generated by gen_art_config */
-
-#define ART_SIZEOF_CHAR 1
-#define ART_SIZEOF_SHORT 2
-#define ART_SIZEOF_INT 4
-#define ART_SIZEOF_LONG 4
-
-typedef unsigned char art_u8;
-typedef unsigned short art_u16;
-typedef unsigned int art_u32;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libart_lgpl</Name>
        <Homepage>http://www.levien.com/libart</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        A LGPL version of libart
        <Description>Libart is a library for high-performance 2D graphics. It is currently being used as the antialiased rendering engine for the Gnome Canvas. Libart supports a very powerful imaging model, basically the same as SVG and the Java 2D API.</Description>
        <Archive sha1sum="dbac185c65696381ef188de1f98b348b530e22f9" type="tarbz2">http://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/libart_lgpl-2.3.21.tar.bz2</Archive>
        <Patches>
            <Patch level="1">noartconfig.patch</Patch>
            <Patch level="1">libart_lgpl-2.3.21-crosscompile.patch</Patch>
            <Patch level="1">libart_lgpl-2.3.21-no-test-build.patch</Patch>
        </Patches>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-02-05</Date>
            <Version>2.3.21</Version>
            <Comment>Rebuild</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.3.21</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-24</Date>
            <Version>2.3.21</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>libart_lgpl</Name>
        libart'ın bir LGPL sürümü
        <Description xml:lang="tr">Libart, yüksek performanslı iki boyutlu grafikler için bir kütüphanedir. Halihazırda Gnome Canvas için kenarların yumuşatıldığı dönüştürme aracı olarak kullanılmaktadır. Libart, temelde Java 2D API ve SVG benzeri, çok güçlü bir görüntüleme modelini destekler.</Description>
        <Description xml:lang="fr">Libart est une librairie pour graphiques 2D à hautes performances. Elle est actuellement utilisé comme moteur de rendu anti-aliassé pour le Canvas Gnome. Libart fournit le support pour un modèle image très puissant, simplement le même que SVG et l'API (Interface de Programmation d'Application) Java 2D.</Description>
        <Description xml:lang="es"> Libart es una librería para gráficos 2D de alta performance. Actualmente está usado como antialiased rendering engine para Gnome Canvas. Libart soporta un modelo de imagen muy potente, básicamente el mismo como SVG y el API 2D de Java.</Description>
    </Source>

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


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

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

def setup():
    #autotools.autoreconf("-vfi")
    #libtools.libtoolize("--force --install")
    autotools.configure("--disable-doc \
                         --disable-static \
                         --disable-ruby \
                         --disable-csharp \
                         --disable-java \
                         --disable-cxx \
                         --disable-gl \
                         --enable-shared \
                         --enable-ncurses \
                         --enable-slang \
                         --enable-imlib2 \
                         --enable-x11 \
                         --with-x \
                         --x-libraries=/usr/lib")

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

def build():
    autotools.make()

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

    # we remove la files but symlinks stay there, so we remove by hand
    pisitools.remove("/usr/lib/*.la")
    #pisitools.removeDir("/usr/share/java")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libcaca</Name>
        <Homepage>http://caca.zoy.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>WTFPL-2</License>
        <License>LGPLv2.1</License>
        <License>GPLv2</License>
        <IsA>library</IsA>
        A library that creates colored ASCII-art graphics
        <Description>libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals</Description>
        <Archive sha1sum="ed138f3717648692113145b99a80511178548010" type="targz">https://fossies.org/linux/privat/libcaca-0.99.beta19.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>imlib2-devel</Dependency>
            <Dependency>slang-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libcaca</Name>
        <RuntimeDependencies>
            <Dependency>imlib2</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>slang</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>libX11</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share/libcaca</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="3">
            <Date>2017-03-23</Date>
            <Version>0.99_beta19</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.99_beta19</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-23</Date>
            <Version>0.99_beta19</Version>
            <Comment>First release</Comment>
            <Name>Kamil Atlı</Name>
            <Email>suvarice@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libcaca</Name>
        Renkli ASCII-sanat grafikleri oluşturan bir kütüphane
        <Description xml:lang="tr">libcaca piksel yerine metin üreten bir grafik kütüphanesidir, böylece eski video kart yada metin uçbirimleriyle çalışabilir.</Description>
        <Description xml:lang="fr">libcaca est une librairie graphique qui génère du texte au lieu de pixels afin de pouvoir fonctionner sur de vieilles cartes graphique ou sur des terminaux texte.</Description>
        <Description xml:lang="es">libcaca es una librería gráfica que produce una salida de texto en vez de pixels, por lo tanto puede funcionar con tarjetas de video más antiguas y terminales de texto</Description>
    </Source>

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


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

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

def setup():
    #shelltools.system("./autogen.sh")
    autotools.configure("--disable-static")

def build():
    autotools.make()

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

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libdmtx</Name>
        <Homepage>http://www.libdmtx.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2+</License>
        <IsA>library</IsA>
        A Library for working with Data Matrix 2D bar-codes
        <Description>libdmtx is an open source software for reading and writing Data Matrix 2D bar-codes on Linux, Unix, OS X, Windows and mobile devices.</Description>
        <Archive sha1sum="7a353da736cf37e8730e2c22aca4629035aeadcd" type="targz">http://sourceforge.net/projects/libdmtx/files/libdmtx/0.7.4/libdmtx-0.7.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>imagemagick-devel</Dependency>
        </BuildDependencies>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-04-24</Date>
            <Version>0.7.4</Version>
            <Comment>Rebuild with new toolchain</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.7.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-06-05</Date>
            <Version>0.7.4</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libdmtx</Name>
        Data Matrix 2D barkodlarıyla çalışmak için kitaplık
        <Description xml:lang="tr">libdmtx, Linux, Unix, OS X, Windows ve mobil işletim sistemlerinde Data Matrix 2D barkodlarını okumak ve yazmak için kullanılan açık kaynaklı bir kitaplıktır.</Description>
    </Source>

    <Package>
        <Name>libdmtx-devel</Name>
        libdmtx için geliştirme dosyaları
    </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/licenses/gpl.txt

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

def setup():
    autotools.configure()

def build():
    autotools.make()

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

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libgexiv2</Name>
        <Homepage>https://wiki.gnome.org/Projects/gexiv2</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        GObject-based wrapper around the Exiv2 library
        <Description>GObject-based wrapper around the Exiv2 library</Description>
        <Archive sha1sum="4fd4fe1e008c506515aebcaaaefc6f0df58701ff" type="tarxz">https://download.gnome.org/sources/gexiv2/0.10/gexiv2-0.10.6.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>glib2-devel</Dependency>
            <Dependency>exiv2-devel</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
            <Dependency>vala-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libgexiv2</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>exiv2-libs</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="doc">/usr/share/gtk-doc/html</Path>
            <Path fileType="data">/usr/share/vapi</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="1">
            <Date>2017-12-20</Date>
            <Version>0.10.6</Version>
            <Comment>First release.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libgexiv2</Name>
        <Summary xml:lang="tr">GObject-based wrapper around the Exiv2 library</Summary>
        <Description xml:lang="tr">GObject-based wrapper around the Exiv2 library</Description>
    </Source>
</PISI>


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

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

def setup():
    autotools.autoreconf("-fi")
    if not get.buildTYPE() == "emul32":
        autotools.configure("--with-jpeg8")
    else:
        pisitools.dosed("configure", "(NAFLAGS='-fel)f64( -DELF -D__x86_64__)", "\\1f32\\2")
        autotools.configure("--with-jpeg8 --without-simd")

def build():
    autotools.make()

def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    if get.buildTYPE() == "emul32": return

    # provide jpegint.h as it is required by various software
    pisitools.insinto("/usr/lib/include", "jpegint.h")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libjpeg-turbo</Name>
        <Homepage>http://www.libjpeg-turbo.org/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv3</License>
        <PartOf>multimedia.graphics</PartOf>
        <IsA>app:gui</IsA>
        MMX, SSE, and SSE2 SIMD accelerated JPEG library
        <Description>libjpeg-turbo is a derivative of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression. libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg v6b, all else being equal.</Description>
        <Archive sha1sum="ebb3f9e94044c77831a3e8c809c7ea7506944622" type="targz">mirrors://sourceforge/libjpeg-turbo/1.5.1/libjpeg-turbo-1.5.1.tar.gz</Archive>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>libjpeg-turbo</Name>
        <Replaces>
            <Package>jpeg</Package>
        </Replaces>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>libjpeg-turbo-devel</Name>
        Development files for libjpeg-turbo
        <RuntimeDependencies>
            <Dependency releaseFrom="current">libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Replaces>
            <Package>jpeg-devel</Package>
        </Replaces>
        <Files>
            <Path fileType="data">/usr/include/</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="4">
            <Date>2017-09-20</Date>
            <Version>1.5.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2016-06-09</Date>
            <Version>1.4.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.4.2</Version>
            <Comment>Release bump</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-04-08</Date>
            <Version>1.4.2</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libjpeg-turbo</Name>
        MMX, SSE, and SSE2 SIMD accelerated JPEG library
        <Description xml:lang="en">libjpeg-turbo is a derivative of libjpeg for x86 and x86-64 processors which
uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression. libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg v6b, all else being equal.</Description>
    </Source>
    <Package>
        <Name>libjpeg-turbo-devel</Name>
        libjpeg-turbo 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.sym("makefiles/configure.in", "configure.in")
    shelltools.sym("makefiles/Makefile.am", "Makefile.am")
    shelltools.sym("makefiles/makefile.linux", "Makefile")
    #shelltools.sym("contrib/gcc/sdl-mngplay/acinclude.m4", "acinclude.m4")

    shelltools.system("sed -i -e 's/unroll-loops/& -fPIC/' Makefile ")

    autotools.autoreconf("-fiv")
    autotools.configure("--with-jpeg \
                         --with-lcms \
                         --disable-static \
                         --disable-dependency-tracking")

    if get.buildTYPE() == "emul32":
        options = " --libdir=/usr/lib32 \
                    --with-jpeg \
                    --disable-static \
                    --disable-dependency-tracking"
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        autotools.configure(options)

def build():
    autotools.make()

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

    pisitools.doman("doc/man/*")
    pisitools.dodoc("CHANGES", "LICENSE", "README*", "doc/doc.readme", "doc/misc/*", "doc/libmng.txt")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmng</Name>
        <Homepage>http://www.libmng.com/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>library</IsA>
        Multiple Image Networkgraphics lib (animated png's)
        <Description>Libmng -The reference library for reading, displaying, writing and examining Multiple-Image Network Graphics. MNG is the animation extension to the popular PNG image-format.</Description>
        <Archive sha1sum="0f141482ffcef6f8cd4413f945a59310ac2e49af" type="tarxz">http://sourceforge.net/projects/libmng/files/libmng-devel/2.0.3/libmng-2.0.3.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>lcms2-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libmng</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>lcms2</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

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

    <Package>
        <Name>libmng-32bit</Name>
        <PartOf>emul32</PartOf>
        32-bit shared libraries for libmng
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>zlib-32bit </Dependency>
            <Dependency>lcms2-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit </Dependency>
        </BuildDependencies>
        <RuntimeDependencies>
            <Dependency>zlib-32bit </Dependency>
            <Dependency>lcms2-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit </Dependency>
            <Dependency release="current">libmng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2017-09-20</Date>
            <Version>2.0.3</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>2.0.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>2.0.2</Version>
            <Comment>Release bump</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-05-04</Date>
            <Version>2.0.2</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>libmng</Name>
        <Summary xml:lang="tr">Çoklu resim Networkgraphics (Animasyonlu png)</Summary>
        <Description xml:lang="tr">Libmng, Çoklu Görüntü Ağ Grafiklerini (MNG) okuma, görüntüleme, yazma ve denemek için başvuru kütüphanesidir. MNG popüler PNG görüntü formatı için animasyon uzantısıdır.</Description>
        <Description xml:lang="fr">Libmng - La librairie de référence pour lire, afficher, écrire et examiner des Multiple-Image Network Graphics (graphiques orientés réseaux composés d'images multiples). MNG est l'extension d'animation pour le format d'image populaire PNG.</Description>
        <Description xml:lang="es">Libmng -librería de referencia para lectura, visualización, escritura y análisis de gráficos tipo Multiple-Image Network. MNG es la extensión de animación al formato popular de imágenes PNG.</Description>
    </Source>
</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/licenses/gpl.txt

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

def setup():
    autotools.configure()

def build():
    autotools.make()

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

    pisitools.dodoc("TODO", "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "README*")


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libmypaint</Name>
        <Homepage>https://github.com/mypaint/libmypaint</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>ISC</License>
        <IsA>library</IsA>
        a library for making brushstrokes which is used by MyPaint and other projects, with GEGL support
        <Description>a library for making brushstrokes which is used by MyPaint and other projects, with GEGL support</Description>
        <Archive sha1sum="d9d2ac9d6ee45056e02bbbc497a66dc861db5c05" type="tarxz">https://github.com/mypaint/libmypaint/releases/download/v1.3.0/libmypaint-1.3.0.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>json-c-devel</Dependency>
            <Dependency>intltool</Dependency>
            <Dependency>gobject-introspection-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>libmypaint</Name>
        <RuntimeDependencies>
            <Dependency>glib2</Dependency>
            <Dependency>json-c</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="1">
            <Date>2017-12-20</Date>
            <Version>1.3.0</Version>
            <Comment>First release.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libmypaint</Name>
        <Summary xml:lang="tr">a library for making brushstrokes which is used by MyPaint and other projects, with GEGL support</Summary>
        <Description xml:lang="tr">a library for making brushstrokes which is used by MyPaint and other projects, with GEGL support</Description>
    </Source>
</PISI>


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

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

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

def build():
    autotools.make()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libraw</Name>
        <Homepage>http://www.libraw.org/</Homepage>
        <Packager>
            <Name>Yücel KILIÇ</Name>
            <Email>yucel.kilic@linux.org.tr</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <License>CDDL</License>
        <IsA>library</IsA>
        Raw image decoder
        <Description>LibRaw is a library for reading RAW files obtained from digital photo cameras (CRW/CR2, NEF, RAF, DNG, and others).</Description>
        <Archive sha1sum="a6a69c4790061b77234ee707dccb200c90aadd8a" type="targz">http://www.libraw.org/data/LibRaw-0.18.1.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libgomp</Dependency>
            <Dependency>lcms2-devel</Dependency>
            <Dependency>jasper-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
         </BuildDependencies>
    </Source>
    <Package>
        <Name>libraw</Name>
        <RuntimeDependencies>
            <Dependency>libgomp</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>lcms2</Dependency>
            <Dependency>jasper</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>
    <Package>
        <Name>libraw-devel</Name>
        Development files for libraw
        <RuntimeDependencies>
            <Dependency release="current">libraw</Dependency>
            <Dependency>lcms2-devel</Dependency>
            <Dependency>jasper-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>0.18.1</Version>
            <Comment>Version Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.16.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2015-08-13</Date>
            <Version>0.16.2</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>LibRaw</Name>
        RAW görüntü çözme kitaplığı
        <Description xml:lang="tr">LibRaw, dijital fotoğraf kameralarından elde edilen RAW dosyalrını (CRW/CR2, NEF, RAF, DNG ve diğerleri) okumaya yarayan bir kitaplıktır.</Description>
    </Source>

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


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

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

def setup():
    qt5.configure("librecad.pro")

def build():
    qt5.make()

    shelltools.cd("plugins")
    qt5.configure("plugins.pro")
    qt5.make("-j4")

def install():
    pisitools.dobin("unix/librecad")

    pisitools.insinto("/usr/share/librecad/fonts/", "unix/resources/fonts/*")
    pisitools.insinto("/usr/share/librecad/library/", "unix/resources/library/*")
    pisitools.insinto("/usr/share/librecad/patterns/", "unix/resources/patterns/*")
    pisitools.insinto("/usr/share/librecad/qm/", "unix/resources/qm")
    pisitools.insinto("/usr/share/librecad/plugins/", "unix/resources/plugins/*")
    pisitools.dodoc("README.md", "gpl-2.0.txt")


code:
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=LibreCAD
Name[tr]=LibreCAD
GenericName=A 2D CAD drawing tool based QCad
GenericName[tr]=QCad tabanlı 2D CAD çizim programı
Icon=librecad
Exec=/usr/bin/librecad
Terminal=false
StartupNotify=false
Categories=Graphics;Engineering;


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>librecad</Name>
        <Homepage>http://librecad.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <Icon>librecad</Icon>
        <IsA>app:gui</IsA>
        <Summary>A 2D CAD drawing tool based QCad</Summary>
        <Description>LibreCAD is an application for computer aided design (CAD) in two dimensions (2D). With LibreCAD you can create technical drawings such as plans for buildings, interiors, mechanical parts or schemas and diagrams</Description>
        <Archive sha1sum="eac60a4e7eadf2969d34f289059053cff4068309" type="targz">https://github.com/LibreCAD/LibreCAD/archive/2.1.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>qt5-base-devel</Dependency>
            <Dependency>qt5-svg-devel</Dependency>
            <Dependency>qt5-assistant-devel</Dependency>
            <Dependency>qt5-designer-devel</Dependency>
            <Dependency>qt5-linguist</Dependency>
            <Dependency>qt5-qdbusviewer</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>icu4c-devel</Dependency>
            <Dependency>librsvg-devel</Dependency>
            <Dependency>muparser-devel</Dependency>
            <Dependency>imagemagick-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>boost-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>librecad</Name>
        <RuntimeDependencies>
            <Dependency>qt5-base</Dependency>
            <Dependency>muparser</Dependency>
            <Dependency>qt5-svg</Dependency>
            <Dependency>qt5-assistant</Dependency>
            <Dependency>libgcc</Dependency>
        </RuntimeDependencies>

        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/applications/librecad.desktop">librecad.desktop</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/librecad.png">librecad.png</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="3">
            <Date>2017-06-08</Date>
            <Version>2.1.3</Version>
            <Comment>Version Bump</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.0.9</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-07</Date>
            <Version>2.0.9</Version>
            <Comment>First release</Comment>
            <Name>Stefan Gronewold(groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>librecad</Name>
        <Summary xml:lang="tr">Bilgisayar destekli tasarım programı</Summary>
        <Description xml:lang="tr">LibreCAD ile bina, iç mekan, mekanik parça gibi teknik çizimler oluşturabilirsiniz.</Description>
    </Source>
</PISI>


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

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

def setup():
    shelltools.unlink("configure.ac")
    shelltools.sym("patches/acconfig.h", "acconfig.h")

    autotools.autoreconf("-vfi")
    pisitools.dosed("src/Makefile.in", "@LIBWMF_GDK_PIXBUF_TRUE@", "#")
    autotools.configure("--without-expat \
                         --with-libxml2 \
                         --with-jpeg \
                         --with-x \
                         --with-gsfontdir=/usr/share/fonts/default/ghostscript \
                         --with-fontdir=/usr/share/libwmf/fonts \
                         --with-docdir=/usr/share/doc/%s \
                         --disable-static" % get.srcNAME() )
def build():
    autotools.make("LIBTOOL=/usr/bin/libtool")

def install():
    pisitools.dosed("fonts/fontmap", "libwmf/fonts", "fonts/default/ghostscript")

    autotools.rawInstall("DESTDIR=%s \
                          fontdir=/usr/share/libwmf/fonts \
                          wmfonedocdir=/usr/share/doc/%s/caolan \
                          wmfdocdir=/usr/share/doc/%s" %
                          ( get.installDIR(), get.srcNAME(), get.srcNAME() ) )

    if shelltools.isDirectory("%s/usr/lib/gtk-2.0" % get.installDIR()):
        # seems "/usr/lib/gtk-2.0" no longer exists, so need check
        pisitools.removeDir("/usr/lib/gtk-2.0")

    # These fonts included in gnu-gs-fonts-std package.
    pisitools.remove("/usr/share/libwmf/fonts/*afm")
    pisitools.remove("/usr/share/libwmf/fonts/*pfb")

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>libwmf</Name>
        <Homepage>http://wvware.sourceforge.net/libwmf.html</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>library</IsA>
        Library for reading and converting WMF files
        <Description>A library for reading and converting Windows MetaFile vector graphics (WMF).</Description>
        <Archive sha1sum="822ab3bd0f5e8f39ad732f2774a8e9f18fc91e89" type="targz">mirrors://sourceforge/wvware/libwmf-0.2.8.4.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>harfbuzz-devel</Dependency>
            <Dependency>freetype-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libxml2-devel</Dependency>
            <Dependency>gettext-devel</Dependency>
            <Dependency>gdk-pixbuf-devel</Dependency>
        </BuildDependencies>
    </Source>

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

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

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>0.2.8.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>0.2.8.4</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2014-05-24</Date>
            <Version>0.2.8.4</Version>
            <Comment>First release</Comment>
            <Name>Alihan Öztürk</Name>
            <Email>alihan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>libwmf</Name>
        WMF (Windows metafile) okuma ve dönüştürme kitaplığı
        <Description xml:lang="tr">Microsoft Word gibi uygulamaların kullandığı WMF (Windows metafile) dosyalarını standart formatlara (PNG, JPEG, PS, EPS, SVG gibi) dönüştürebilmek ve gösterebilmek için gereken kütüphanedir.</Description>
        <Description xml:lang="fr">Librairie pour convertir les fichiers WMF.</Description>
    </Source>

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


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

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

WorkDir = "mjpegtools-2.1.0"

def setup():
    shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
    autotools.autoreconf("-vfi")

    pisitools.dosed("configure", "ARCHFLAGS=.*", "ARCHFLAGS=")
    autotools.configure("--with-x \
                         --enable-largefile \
                         --disable-simd-accel \
                         --with-dv-yv12 \
                         --disable-static \
                         --with-libpng \
                         --with-libdv=/usr")

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

def build():
    autotools.make()

def install():
    autotools.install()

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


code:
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>mjpegtools</Name>
        <Homepage>http://mjpeg.sourceforge.net/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>as-is</License>
        <IsA>app:gui</IsA>
        Tools for MJPEG video
        <Description>mjpegtools is a complete suite of tools for you to capture, edit, process, filter and play your media as you wish. You can digitize your VHS collection, create DVDs, and do advanced video filtering on already-digitized videos.</Description>
        <Archive sha1sum="b9effa86280e23d67369e842e5cb645948583097" type="targz">http://sourceforge.net/projects/mjpeg/files/mjpegtools/2.1.0/mjpegtools-2.1.0.tar.gz/download</Archive>
        <BuildDependencies>
            <Dependency>gtk2-devel</Dependency>
            <Dependency>libdv-devel</Dependency>
            <Dependency>libsdl-devel</Dependency>
            <Dependency>libXxf86dga-devel</Dependency>

            <Dependency>libjpeg-turbo-devel</Dependency>
            <Dependency>libpng-devel</Dependency>
        </BuildDependencies>
        <Patches>

        </Patches>
    </Source>

    <Package>
        <Name>mjpegtools</Name>
        <RuntimeDependencies>
            <Dependency>gtk2</Dependency>
            <Dependency>glib2</Dependency>
            <Dependency>libdv</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libsdl</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
            <Dependency>libpng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="info">/usr/share/info</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

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

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

    <History>
        <Update release="3">
            <Date>2017-03-02</Date>
            <Version>2.1.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.1.0</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-27</Date>
            <Version>2.1.0</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>


code:
<?xml version="1.0" ?>
<PISI>
    <Source>
        <Name>mjpegtools</Name>
        MJPEG video dosyaları için kullanılabilecek araçlar
        <Description xml:lang="tr">Mjpegtools size görüntü yakalama, düzenleme, işleme ve filtreleme olanakları sunan ayrıca dosyalarınızı istediğiniz gibi oynatabileceğiniz tam bir araçlar paketidir. VHS kolleksiyonunuzu dijital ortama taşıyabilir, DVDler yaratabilirsiniz. Zaten dijital ortamda olan videolara ileri düzeyde video filtrelemesi yapabilirsiniz.</Description>
    </Source>

    <Package>
        <Name>mjpegtools-devel</Name>
        mjpegtools 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
import os

def makedepends(d):
    for root, dirs, files in os.walk(d):
        for name in files:
            if name == "Makefile":
                shelltools.touch(os.path.join(root, "depend.mk"))

def setup():
    pisitools.dosed("config.mk", "^STRIPFLAG.*=.*", "STRIPFLAG = ")

    # force external jasper usage
    pisitools.echo("config.mk", "JASPERLIB = -ljasper")
    pisitools.echo("config.mk", "JASPERHDR_DIR = /usr/include/jasper")

    makedepends("./")

def build():
    autotools.make('CFLAGS="%s -fPIC -O3 -ffast-math -pedantic -fno-common" LDFLAGS="%s" -j1' % (get.CFLAGS(), get.LDFLAGS()))

def install():
    pisitools.dodir("/")
    autotools.make('-j1 package pkgdir=%s/usr' % get.installDIR())

    pisitools.remove("/usr/bin/manweb")

    for data in ["VERSION","pkginfo","README","config_template"]:
        pisitools.remove("/usr/%s" % data)

    pisitools.domove("/usr/man", "/usr/share")

    # remove conflicts with jbigkit
    for i in ["pbm", "pgm"]:
        pisitools.remove("/usr/share/man/man5/%s.5" % i)

    pisitools.dodoc("README", "doc/*LICENSE*")