<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "https://raw.githubusercontent.com/Zaryob/inary/master/inary-spec.dtd">
<INARY>
    <Source>
        <Name>libsdl</Name>
        <Homepage>http://www.libsdl.org/</Homepage>
        <Packager>
            <Name>Süleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Packager>
        <License>LGPLv2.1</License>
        <IsA>library</IsA>
        <PartOf>multimedia.misc</PartOf>
        <Summary>Simple Direct Media Layer</Summary>
        <Description>libsdl is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.</Description>
        <Archive sha1sum="0c5f193ced810b0d7ce3ab06d808cbb5eef03a2c" type="targz">http://www.libsdl.org/release/SDL-1.2.15.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>DirectFB-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>aalib</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXtst-devel</Dependency>
            <Dependency>libICE-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch>sdl-1.2.14-fix-mouse-clicking.patch</Patch>
            <Patch>X11_KeyToUnicode.patch</Patch>
            <Patch>SDL-1.2.15-const_XData32.patch</Patch>
            <Patch>SDL-1.2.15-ignore_insane_joystick_axis.patch</Patch>
            <Patch>sdl-1.2.14-disable-mmx.patch</Patch>
            <Patch>SDL-1.2.15-x11-Bypass-SetGammaRamp-when-changing-gamma.patch</Patch>
            <Patch>SDL-1.2.15-SDL_EnableUNICODE_drops_keyboard_events.patch</Patch>
           <Patch>libsdl-1.2.15-resizing.patch</Patch>
            <Patch>SDL-1.2.15-no-default-backing-store.patch</Patch>
            <Patch>SDL-1.2.10-GrabNotViewable.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>libsdl-docs</Name>
        <Summary>libsdl reference documents</Summary>
        <RuntimeDependencies>
            <Dependency>libsdl</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
        </Files>
    </Package>

    <Package>
        <Name>libsdl</Name>
        <RuntimeDependencies>
            <Dependency>DirectFB</Dependency>
            <Dependency>aalib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="library">/usr/lib</Path>
        </Files>
    </Package>

    <Package>
        <Name>libsdl-devel</Name>
        <Summary>Development files for libsdl</Summary>
        <RuntimeDependencies>
            <Dependency release="current">libsdl</Dependency>
            <Dependency>DirectFB-devel</Dependency>
            <Dependency>alsa-lib-devel</Dependency>
            <Dependency>aalib</Dependency>
            <Dependency>libX11-devel</Dependency>
            <Dependency>libXtst-devel</Dependency>
            <Dependency>libICE-devel</Dependency>
            <Dependency>libXrandr-devel</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
            <Path fileType="data">/usr/lib32/pkgconfig</Path>
            <Path fileType="library">/usr/lib/libSDLmain.a</Path>
            <Path fileType="data">/usr/share/aclocal</Path>
        </Files>
    </Package>

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

    <History>
        <Update release="1">
            <Date>2019-09-14</Date>
            <Version>1.2.15</Version>
            <Comment>First release</Comment>
            <Name>Süleyman Poyraz</Name>
            <Email>zaryob.dev@gmail.com</Email>
        </Update>
    </History>
</INARY>
