sdl-image
This commit is contained in:
@@ -0,0 +1,56 @@
|
|||||||
|
#!/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 = "SDL_image-%s" % get.srcVERSION()
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
options = "--disable-dependency-tracking \
|
||||||
|
--disable-static \
|
||||||
|
--enable-gif \
|
||||||
|
--enable-jpg \
|
||||||
|
--enable-tif \
|
||||||
|
--enable-png \
|
||||||
|
--enable-pnm \
|
||||||
|
--enable-bmp \
|
||||||
|
--enable-xcf \
|
||||||
|
--enable-xpm \
|
||||||
|
--enable-tga \
|
||||||
|
--enable-lbm \
|
||||||
|
--enable-pcx \
|
||||||
|
--disable-jpg-shared \
|
||||||
|
--disable-png-shared \
|
||||||
|
--disable-tif-shared"
|
||||||
|
|
||||||
|
if get.buildTYPE() == "emul32":
|
||||||
|
options += " --includedir=/usr/include \
|
||||||
|
--libdir=/usr/lib32"
|
||||||
|
|
||||||
|
shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
|
||||||
|
shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
|
||||||
|
shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
|
||||||
|
shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
|
||||||
|
|
||||||
|
for i in ["NEWS", "AUTHORS", "ChangeLog"]:
|
||||||
|
shelltools.touch(i)
|
||||||
|
|
||||||
|
autotools.autoreconf("-vfi")
|
||||||
|
autotools.configure(options)
|
||||||
|
|
||||||
|
def build():
|
||||||
|
autotools.make()
|
||||||
|
|
||||||
|
def install():
|
||||||
|
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
|
|
||||||
|
if get.buildTYPE() != "emul32":
|
||||||
|
pisitools.dobin(".libs/showimage")
|
||||||
|
|
||||||
|
pisitools.dodoc("CHANGES", "COPYING", "README")
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
--- IMG_gif.c
|
||||||
|
+++ IMG_gif.c
|
||||||
|
@@ -418,6 +418,9 @@
|
||||||
|
static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp;
|
||||||
|
register int i;
|
||||||
|
|
||||||
|
+ if (input_code_size > MAX_LWZ_BITS)
|
||||||
|
+ return -1;
|
||||||
|
+
|
||||||
|
if (flag) {
|
||||||
|
set_code_size = input_code_size;
|
||||||
|
code_size = set_code_size + 1;
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>sdl-image</Name>
|
||||||
|
<Homepage>http://www.libsdl.org/projects/SDL_image/</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>LGPLv2.1</License>
|
||||||
|
<IsA>library</IsA>
|
||||||
|
<Summary>SDL image file loading library</Summary>
|
||||||
|
<Description>SDL_image is an image file loader for SDL.</Description>
|
||||||
|
<Archive sha1sum="5e3e393d4e366638048bbb10d6a269ea3f4e4cf2" type="targz">http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>libsdl-devel</Dependency>
|
||||||
|
<Dependency>tiff-devel</Dependency>
|
||||||
|
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<Patch>gif-overflow.patch</Patch>
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>sdl-image</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>libsdl</Dependency>
|
||||||
|
<Dependency>tiff</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>sdl-image-devel</Name>
|
||||||
|
<Summary>Development files for sdl-image</Summary>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency release="current">sdl-image</Dependency>
|
||||||
|
<Dependency>libsdl-devel</Dependency>
|
||||||
|
<Dependency>tiff-devel</Dependency>
|
||||||
|
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="header">/usr/include</Path>
|
||||||
|
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||||
|
<Path fileType="data">/usr/lib32/pkgconfig</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>sdl-image-32bit</Name>
|
||||||
|
<PartOf>emul32</PartOf>
|
||||||
|
<Summary>32-bit shared libraries for sdl-image</Summary>
|
||||||
|
<BuildType>emul32</BuildType>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>libsdl-32bit</Dependency>
|
||||||
|
<Dependency>libpng-32bit</Dependency>
|
||||||
|
<Dependency>libjpeg-turbo-32bit</Dependency>
|
||||||
|
<Dependency>tiff-32bit</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency release="current">sdl-image</Dependency>
|
||||||
|
<Dependency>libsdl-32bit</Dependency>
|
||||||
|
<Dependency>libpng-32bit</Dependency>
|
||||||
|
<Dependency>libjpeg-turbo-32bit</Dependency>
|
||||||
|
<Dependency>tiff-32bit</Dependency>
|
||||||
|
<Dependency>zlib-32bit</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="library">/usr/lib32/</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="3">
|
||||||
|
<Date>2014-05-31</Date>
|
||||||
|
<Version>1.2.12</Version>
|
||||||
|
<Comment>Rebuild.</Comment>
|
||||||
|
<Name>Alihan Öztürk</Name>
|
||||||
|
<Email>alihan@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="2">
|
||||||
|
<Date>2014-03-09</Date>
|
||||||
|
<Version>1.2.12</Version>
|
||||||
|
<Comment>Rebuild for buildhost</Comment>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2012-08-29</Date>
|
||||||
|
<Version>1.2.12</Version>
|
||||||
|
<Comment>First release</Comment>
|
||||||
|
<Name>PisiLinux Community</Name>
|
||||||
|
<Email>admins@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>sdl-image</Name>
|
||||||
|
<Summary xml:lang="tr">SDL resim yükleme kitaplığı</Summary>
|
||||||
|
<Summary xml:lang="fr">Librairie SDL de chargement de fichier d'image.</Summary>
|
||||||
|
<Description xml:lang="tr">SDL_image, SDL için resim yükleme kitaplığıdır.</Description>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>sdl-image-devel</Name>
|
||||||
|
<Summary xml:lang="tr">sdl-image için geliştirme dosyaları</Summary>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>sdl-image-32bit</Name>
|
||||||
|
<Summary xml:lang="tr">sdl-image için 32-bit paylaşımlı kitaplıklar</Summary>
|
||||||
|
</Package>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user