lcms:moved into main repo for pisi 2.0

This commit is contained in:
2015-07-05 02:15:01 +03:00
parent 60ef02b1cf
commit 172318a0d1
4 changed files with 173 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
#!/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
def setup():
#needed by mozilla patch
autotools.autoreconf("-vfi")
options = "--disable-dependency-tracking \
--disable-static \
--with-jpeg \
--with-tiff \
--with-zlib \
--with-python"
if get.buildTYPE() == "emul32":
options += " --without-python"
autotools.configure(options)
def build():
#needed by mozilla patch, swig must be run again
shelltools.cd("python")
shelltools.system("./swig_lcms")
shelltools.cd("..")
autotools.make()
def install():
autotools.rawInstall('DESTDIR=%s \
BINDIR=%s/usr/bin \
includedir=/usr/include' % (get.installDIR(), get.installDIR()))
pisitools.insinto("/usr/share/lcms/profiles", "testbed/*.icm")
pisitools.dodoc("AUTHORS", "README*", "NEWS", "doc/*")
@@ -0,0 +1,22 @@
--- src/cmsxform.c~ 2009-03-26 17:53:27.000000000 +0000
+++ src/cmsxform.c 2009-03-26 18:31:41.000000000 +0000
@@ -689,6 +689,9 @@
GrayTRC = cmsReadICCGamma(hProfile, icSigGrayTRCTag);
FromLstarToXYZ(GrayTRC, Shapes1);
+ if (GrayTRC == NULL)
+ return NULL;
+
// Reversing must be done after curve translation
Shapes[0] = cmsReverseGamma(Shapes1[0]->nEntries, Shapes1[0]);
@@ -704,6 +707,9 @@
GrayTRC = cmsReadICCGammaReversed(hProfile, icSigGrayTRCTag); // Y
+ if (GrayTRC == NULL)
+ return NULL;
+
Shapes[0] = cmsDupGamma(GrayTRC);
Shapes[1] = cmsDupGamma(GrayTRC);
Shapes[2] = cmsDupGamma(GrayTRC);
+91
View File
@@ -0,0 +1,91 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>lcms</Name>
<Homepage>http://www.littlecms.com/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>LGPLv2.1</License>
<IsA>app:console</IsA>
<IsA>library</IsA>
<Summary>A lightweight, speed optimized color management engine</Summary>
<Description>LittleCMS intends to be a small-footprint, speed optimized color management engine in open source form.</Description>
<!-- sourceforge keeps old files too
<Archive sha1sum="d5b075ccffc0068015f74f78e4bc39138bcfe2d4" type="targz">http://www.littlecms.com/lcms-1.19.tar.gz</Archive>
-->
<Archive sha1sum="d5b075ccffc0068015f74f78e4bc39138bcfe2d4" type="targz">mirrors://sourceforge/project/lcms/lcms/1.19/lcms-1.19.tar.gz</Archive>
<BuildDependencies>
<Dependency>tiff-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch>CVE-2009-0793.patch</Patch>
</Patches>
</Source>
<Package>
<Name>lcms</Name>
<RuntimeDependencies>
<Dependency>tiff</Dependency>
<Dependency>libjpeg-turbo</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="data">/usr/share/lcms</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>lcms-devel</Name>
<RuntimeDependencies>
<Dependency release="current">lcms</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/pkgconfig</Path>
<Path fileType="library">/usr/lib32/pkgconfig</Path>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
<Package>
<Name>lcms-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for lcms</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>tiff-32bit</Dependency>
<Dependency>libjpeg-turbo-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">lcms</Dependency>
<Dependency>tiff-32bit</Dependency>
<Dependency>libjpeg-turbo-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2014-05-19</Date>
<Version>1.19</Version>
<Comment>Release bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-05-04</Date>
<Version>1.19</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>lcms</Name>
<Summary xml:lang="tr">Hız geliştirmesi yapılmış, hafif bir renk yönetim motoru</Summary>
<Summary xml:lang="fr">Moteur de gestion de couleurs léger et optimisé pour la vitesse.</Summary>
</Source>
<Package>
<Name>lcms-devel</Name>
<Summary xml:lang="tr">lcms için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>lcms-32bit</Name>
<Summary xml:lang="tr">lcms için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>