diff --git a/multimedia/misc/sdl-image/actions.py b/multimedia/misc/sdl-image/actions.py new file mode 100644 index 0000000000..05be802e16 --- /dev/null +++ b/multimedia/misc/sdl-image/actions.py @@ -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") diff --git a/multimedia/misc/sdl-image/files/gif-overflow.patch b/multimedia/misc/sdl-image/files/gif-overflow.patch new file mode 100644 index 0000000000..0743252752 --- /dev/null +++ b/multimedia/misc/sdl-image/files/gif-overflow.patch @@ -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; diff --git a/multimedia/misc/sdl-image/pspec.xml b/multimedia/misc/sdl-image/pspec.xml new file mode 100644 index 0000000000..355771c0d4 --- /dev/null +++ b/multimedia/misc/sdl-image/pspec.xml @@ -0,0 +1,103 @@ + + + + + sdl-image + http://www.libsdl.org/projects/SDL_image/ + + PisiLinux Community + admins@pisilinux.org + + LGPLv2.1 + library + SDL image file loading library + SDL_image is an image file loader for SDL. + http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.12.tar.gz + + libsdl-devel + tiff-devel + libjpeg-turbo-devel + + + gif-overflow.patch + + + + + sdl-image + + libsdl + tiff + libjpeg-turbo + + + /usr/bin + /usr/lib/ + /usr/share/doc + + + + + sdl-image-devel + Development files for sdl-image + + sdl-image + libsdl-devel + tiff-devel + libjpeg-turbo-devel + + + /usr/include + /usr/lib/pkgconfig + /usr/lib32/pkgconfig + + + + + sdl-image-32bit + emul32 + 32-bit shared libraries for sdl-image + emul32 + + libsdl-32bit + libpng-32bit + libjpeg-turbo-32bit + tiff-32bit + + + sdl-image + libsdl-32bit + libpng-32bit + libjpeg-turbo-32bit + tiff-32bit + zlib-32bit + + + /usr/lib32/ + + + + + + 2014-05-31 + 1.2.12 + Rebuild. + Alihan Öztürk + alihan@pisilinux.org + + + 2014-03-09 + 1.2.12 + Rebuild for buildhost + PisiLinux Community + admins@pisilinux.org + + + 2012-08-29 + 1.2.12 + First release + PisiLinux Community + admins@pisilinux.org + + + diff --git a/multimedia/misc/sdl-image/translations.xml b/multimedia/misc/sdl-image/translations.xml new file mode 100644 index 0000000000..35215967a0 --- /dev/null +++ b/multimedia/misc/sdl-image/translations.xml @@ -0,0 +1,19 @@ + + + + sdl-image + SDL resim yükleme kitaplığı + Librairie SDL de chargement de fichier d'image. + SDL_image, SDL için resim yükleme kitaplığıdır. + + + + sdl-image-devel + sdl-image için geliştirme dosyaları + + + + sdl-image-32bit + sdl-image için 32-bit paylaşımlı kitaplıklar + +