openjpeg:moved into main for pisi 2.0

This commit is contained in:
2015-07-23 13:48:48 +03:00
parent 7e995445af
commit 835638540b
4 changed files with 189 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
#!/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 pisitools
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
options = "--enable-shared --disable-static --disable-silent-rules"
if get.buildTYPE() == "emul32":
shelltools.export("PKG_CONFIG_LIBDIR", "/usr/lib32/pkgconfig")
shelltools.system("./bootstrap.sh")
autotools.configure(options)
def build():
autotools.make()
def install():
if get.buildTYPE() == "emul32":
pisitools.insinto("/usr/lib32", "libopenjpeg/.libs/libopenjpeg.so*")
pisitools.insinto("/usr/lib32/pkgconfig", "libopenjpeg1.pc")
pisitools.dosed("%s//usr/lib32/pkgconfig/libopenjpeg1.pc" % get.installDIR(),
get.emul32prefixDIR(),
get.defaultprefixDIR())
return
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dosym("openjpeg-1.5/openjpeg.h", "/usr/include/openjpeg.h")
pisitools.dodoc("README*")
@@ -0,0 +1,31 @@
diff -urN -x '*.orig' -x '*.rej' -x '*~' -x '.*' OpenJPEG.orig/libopenjpeg/mqc.c OpenJPEG.patched/libopenjpeg/mqc.c
--- OpenJPEG.orig/libopenjpeg/mqc.c 2007-07-17 20:07:22.000000000 -0500
+++ OpenJPEG.patched/libopenjpeg/mqc.c 2007-07-17 20:07:44.000000000 -0500
@@ -507,20 +507,20 @@
int mqc_decode(opj_mqc_t *mqc) {
int d;
- mqc->a -= (*mqc->curctx)->qeval;
- if ((mqc->c >> 16) < (*mqc->curctx)->qeval) {
+ unsigned int qeval = (*mqc->curctx)->qeval;
+ mqc->a -= qeval;
+ qeval <<= 16;
+ if (mqc->c < qeval) {
d = mqc_lpsexchange(mqc);
- mqc_renormd(mqc);
} else {
- mqc->c -= (*mqc->curctx)->qeval << 16;
+ mqc->c -= qeval;
if ((mqc->a & 0x8000) == 0) {
d = mqc_mpsexchange(mqc);
- mqc_renormd(mqc);
} else {
- d = (*mqc->curctx)->mps;
+ return (*mqc->curctx)->mps;
}
}
-
+ mqc_renormd(mqc);
return d;
}
+106
View File
@@ -0,0 +1,106 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>openjpeg</Name>
<Homepage>http://www.openjpeg.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>BSD</License>
<IsA>library</IsA>
<IsA>app:console</IsA>
<Summary>JPEG2000 decoding library</Summary>
<Description>openjpeg is an open-source JPEG 2000 codec written in C. It has been developed in order to promote the use of JPEG 2000, the new still-image compression standard from the Joint Photographic Experts Group (JPEG).</Description>
<Archive sha1sum="496e99ff1d37b73bbce6a066dd9bd3576ebca0a2" type="targz">http://downloads.sourceforge.net/project/openjpeg.mirror/1.5.2/openjpeg-1.5.2.tar.gz</Archive>
<BuildDependencies>
<!--<Dependency>lcms2-devel</Dependency>
<Dependency>lcms2-32bit</Dependency>-->
<Dependency>tiff-devel</Dependency>
<Dependency>doxygen</Dependency>
<Dependency>libpng-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">openjpeg-20070717svn-mqc-optimize.patch</Patch>
</Patches>
</Source>
<Package>
<Name>openjpeg</Name>
<RuntimeDependencies>
<Dependency>libpng</Dependency>
<Dependency>tiff</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/pkgconfig/</Path>
<Path fileType="data">/usr/share/openjpeg-1.5</Path>
<Path fileType="data">/usr/share/man/man1</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<Package>
<Name>openjpeg-devel</Name>
<Summary>Development files for openjpeg</Summary>
<RuntimeDependencies>
<Dependency release="current">openjpeg</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
<Path fileType="header">/usr/include</Path>
<Path fileType="man">/usr/share/man/man3</Path>
</Files>
</Package>
<Package>
<Name>openjpeg-32bit</Name>
<Summary>32-bit shared libraries for openjpeg</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>glibc-32bit</Dependency>
<Dependency>libpng-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">openjpeg</Dependency>
<Dependency>glibc-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<History>
<Update release="4">
<Date>2014-05-22</Date>
<Version>1.5.2</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2014-03-09</Date>
<Version>1.5.1</Version>
<Comment>Rebuild.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-07-28</Date>
<Version>1.5.1</Version>
<Comment>Fix pc file for emul32</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-18</Date>
<Version>1.5.1</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>openjpeg</Name>
<Summary xml:lang="tr">JPEG2000 çözme kütüphanesi</Summary>
<Summary xml:lang="pl">Biblioteka implementująca kodek formatu JPEG 2000</Summary>
</Source>
<Package>
<Name>openjpeg-devel</Name>
<Summary xml:lang="tr">openjpeg için geliştirme dosyaları</Summary>
<Summary xml:lang="pl">Pliki nagłówkowe do openjpeg</Summary>
</Package>
</PISI>