<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>fltk</Name>
        <Homepage>http://www.fltk.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <Summary>FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit</Summary>
        <Description>FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation. FLTK is designed to be small and modular enough to be statically linked, but works fine as a shared library. FLTK also includes an excellent UI builder called FLUID that can be used to create applications in minutes.</Description>
        <Archive sha1sum="873aac49b277149e054b9740378e2ca87b0bd435" type="targz">ftp://ftp.uwsg.indiana.edu/linux/gentoo/distfiles/fltk-1.3.3-source.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng-devel</Dependency>
            <Dependency>mesa-devel</Dependency>
            <Dependency>libXft-devel</Dependency>
            <Dependency>libXext-devel</Dependency>
            <Dependency>mesa-glu-devel</Dependency>
            <Dependency>libXfixes-devel</Dependency>
            <Dependency>libXcursor-devel</Dependency>
            <Dependency>fontconfig-devel</Dependency>
            <Dependency>libXinerama-devel</Dependency>
            <Dependency>libjpeg-turbo-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">tigervnc.patch</Patch>
            <Patch level="1">fltk-config-dynlibs.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>fltk</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng</Dependency>
            <Dependency>mesa</Dependency>
            <Dependency>libXft</Dependency>
            <Dependency>libXext</Dependency>
            <Dependency>mesa-glu</Dependency>
            <Dependency>libXfixes</Dependency>
            <Dependency>libXcursor</Dependency>
            <Dependency>fontconfig</Dependency>
            <Dependency>libXinerama</Dependency>
            <Dependency>libjpeg-turbo</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <!--Package>
        <Name>fltk-32bit</Name>
        <PartOf>emul32</PartOf>
        <BuildType>emul32</BuildType>
        <BuildDependencies>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>glibc-32bit</Dependency>
            <Dependency>mesa-32bit</Dependency>
            <Dependency>libXft-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>mesa-glu-32bit</Dependency>
            <Dependency>libXfixes-32bit</Dependency>
            <Dependency>libXcursor-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
            <Dependency>libXinerama-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
       </BuildDependencies>
       <RuntimeDependencies>
            <Dependency release="current">fltk</Dependency>
            <Dependency>zlib-32bit</Dependency>
            <Dependency>libX11-32bit</Dependency>
            <Dependency>libpng-32bit</Dependency>
            <Dependency>glibc-32bit</Dependency>
            <Dependency>mesa-32bit</Dependency>
            <Dependency>libXft-32bit</Dependency>
            <Dependency>libXext-32bit</Dependency>
            <Dependency>mesa-glu-32bit</Dependency>
            <Dependency>libXfixes-32bit</Dependency>
            <Dependency>libXcursor-32bit</Dependency>
            <Dependency>fontconfig-32bit</Dependency>
            <Dependency>libXinerama-32bit</Dependency>
            <Dependency>libjpeg-turbo-32bit</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib32</Path>
        </Files>
    </Package-->

    <Package>
        <Name>fltk-devel</Name>
        <IsA>app:console</IsA>
        <IsA>app:gui</IsA>
        <Summary>Development files and utilities for FLTK</Summary>
        <RuntimeDependencies>
            <Dependency release="current">fltk</Dependency>
            <Dependency>libX11</Dependency>
            <Dependency>libgcc</Dependency>
            <Dependency>libpng</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/etc/env.d</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/share/icons</Path>
            <Path fileType="data">/usr/share/mimelnk</Path>
            <Path fileType="doc">/usr/share/doc/*/html</Path>
            <Path fileType="data">/usr/share/applications</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/env.d/99fltk">99fltk</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <History>
        <Update release="7">
            <Date>2015-07-24</Date>
            <Version>1.3.3</Version>
            <Comment>emul32bit build disabled.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="6">
            <Date>2015-04-26</Date>
            <Version>1.3.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Yusuf Aydemir</Name>
            <Email>yusuf.aydemir@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2014-05-26</Date>
            <Version>1.3.2</Version>
            <Comment>Rebuild for gcc 4.9</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2014-01-29</Date>
            <Version>1.3.2</Version>
            <Comment>Rebuild Unused</Comment>
            <Name>Varol Maksutoğlu</Name>
            <Email>waroi@pisilinux.org</Email>
        </Update>
        <Update release="3">
            <Date>2013-11-03</Date>
            <Version>1.3.2</Version>
            <Comment>Version bump.</Comment>
            <Name>Burak Fazıl Ertürk</Name>
            <Email>burakerturk@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2013-08-26</Date>
            <Version>1.3.0</Version>
            <Comment>Release bump.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2012-11-11</Date>
            <Version>1.3.0</Version>
            <Comment>First release</Comment>
            <Name>Osman Erkan</Name>
            <Email>osman.erkan@pisilinux.org</Email>
        </Update>
    </History>
</PISI>