{
    "name": "SDL1",
    "rm-configure": true,
    "config-opts": ["--disable-static"],
    "cleanup": [
        "/bin",
        "/share/man",
        "/share/aclocal",
        "/include",
        "/lib/pkgconfig",
        "/lib/*.la",
        "/lib/*.a"
    ],
    "sources": [
        {
            "type": "archive",
            "url": "https://www.libsdl.org/release/SDL-1.2.15.tar.gz",
            "sha256": "d6d316a793e5e348155f0dd93b979798933fb98aa1edebcc108829d6474aad00"
        },
        {
            "type": "patch",
            "path": "sdl-libx11-build.patch"
        },
        {
            "type": "patch",
            "path": "sdl-check-for-SDL_VIDEO_X11_BACKINGSTORE.patch"
        },
        {
            "type": "patch",
            "path": "sdl-sysloadso-buffer-length.patch"
        },
        {
            "type": "script",
            "dest-filename": "autogen.sh",
            "commands": [
                "sed -i -e 's/.*AM_PATH_ESD.*//' configure.in",
                "cp -p /usr/share/automake-*/config.{sub,guess} build-scripts",
                "aclocal",
                "libtoolize",
                "autoconf"
            ]
        }
    ]
}
