@@ -1,26 +1,43 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
# Licensed under the GNU General Public License, version 3.
|
# Licensed under the GNU General Public License, version 3.
|
||||||
# See the file http://www.gnu.org/copyleft/gpl.txt
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||||
|
|
||||||
from pisi.actionsapi import autotools
|
from pisi.actionsapi import cmaketools
|
||||||
from pisi.actionsapi import get
|
|
||||||
from pisi.actionsapi import pisitools
|
from pisi.actionsapi import pisitools
|
||||||
|
from pisi.actionsapi import shelltools
|
||||||
|
from pisi.actionsapi import get
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
autotools.autoreconf("-fi")
|
options = "-DCMAKE_BUILD_TYPE=Release \
|
||||||
if not get.buildTYPE() == "emul32":
|
-DWITH_JPEG8=TRUE \
|
||||||
autotools.configure("--with-jpeg8")
|
-DCMAKE_INSTALL_DEFAULT_LIBDIR=lib \
|
||||||
else:
|
-DCMAKE_INSTALL_PREFIX=/usr"
|
||||||
pisitools.dosed("configure", "(NAFLAGS='-fel)f64( -DELF -D__x86_64__)", "\\1f32\\2")
|
|
||||||
autotools.configure("--with-jpeg8 --without-simd")
|
if get.buildTYPE() == "emul32":
|
||||||
|
shelltools.export("CC", "gcc -m32")
|
||||||
|
shelltools.export("CXX", "g++ -m32")
|
||||||
|
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
||||||
|
|
||||||
|
options = "-DCMAKE_INSTALL_DEFAULT_LIBDIR=/usr/lib32 \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/emul32"
|
||||||
|
|
||||||
|
cmaketools.configure(options)
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
autotools.make()
|
cmaketools.make()
|
||||||
|
|
||||||
|
def check():
|
||||||
|
cmaketools.make("test")
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||||
if get.buildTYPE() == "emul32": return
|
|
||||||
|
if get.buildTYPE() == "emul32":
|
||||||
|
pisitools.removeDir("/emul32")
|
||||||
|
pisitools.dosed("%s/usr/lib32/pkgconfig/*.pc" % get.installDIR(), "emul32", "usr")
|
||||||
|
return
|
||||||
|
|
||||||
# provide jpegint.h as it is required by various software
|
# provide jpegint.h as it is required by various software
|
||||||
pisitools.insinto("/usr/lib/include", "jpegint.h")
|
pisitools.insinto("/usr/lib/include", "jpegint.h")
|
||||||
|
|||||||
@@ -13,7 +13,10 @@
|
|||||||
<IsA>app:gui</IsA>
|
<IsA>app:gui</IsA>
|
||||||
<Summary>MMX, SSE, and SSE2 SIMD accelerated JPEG library</Summary>
|
<Summary>MMX, SSE, and SSE2 SIMD accelerated JPEG library</Summary>
|
||||||
<Description>libjpeg-turbo is a derivative of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression. libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg v6b, all else being equal.</Description>
|
<Description>libjpeg-turbo is a derivative of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression. libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg v6b, all else being equal.</Description>
|
||||||
<Archive sha1sum="87ebf4cab2bb27fcb8e7ccb18ec4eb680e1f2c2d" type="targz">mirrors://sourceforge/libjpeg-turbo/1.5.3/libjpeg-turbo-1.5.3.tar.gz</Archive>
|
<Archive sha1sum="7ea4a288bccbb5a2d5bfad5fb328d4a839853f4e" type="targz">mirrors://sourceforge/libjpeg-turbo/2.0.1/libjpeg-turbo-2.0.1.tar.gz</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>cmake</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
<Patches>
|
<Patches>
|
||||||
<!--Patch>fix_doc.patch</Patch-->
|
<!--Patch>fix_doc.patch</Patch-->
|
||||||
</Patches>
|
</Patches>
|
||||||
@@ -42,7 +45,7 @@
|
|||||||
<Package>jpeg-devel</Package>
|
<Package>jpeg-devel</Package>
|
||||||
</Replaces>
|
</Replaces>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="data">/usr/include/</Path>
|
<Path fileType="header">/usr/include/</Path>
|
||||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
@@ -64,6 +67,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="7">
|
||||||
|
<Date>2019-01-05</Date>
|
||||||
|
<Version>2.0.1</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>Pisi Linux Community</Name>
|
||||||
|
<Email>admin@pisilinux.org</Email>
|
||||||
|
</Update>
|
||||||
<Update release="6">
|
<Update release="6">
|
||||||
<Date>2018-07-25</Date>
|
<Date>2018-07-25</Date>
|
||||||
<Version>1.5.3</Version>
|
<Version>1.5.3</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user