libjpeg-turbo-2.0.1:ver.bump

This commit is contained in:
Rmys
2019-01-09 11:58:44 +03:00
parent 09ed8d12b1
commit f1a7a55130
2 changed files with 43 additions and 16 deletions
+31 -14
View File
@@ -1,26 +1,43 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# 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 get
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
autotools.autoreconf("-fi")
if not get.buildTYPE() == "emul32":
autotools.configure("--with-jpeg8")
else:
pisitools.dosed("configure", "(NAFLAGS='-fel)f64( -DELF -D__x86_64__)", "\\1f32\\2")
autotools.configure("--with-jpeg8 --without-simd")
options = "-DCMAKE_BUILD_TYPE=Release \
-DWITH_JPEG8=TRUE \
-DCMAKE_INSTALL_DEFAULT_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr"
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():
autotools.make()
cmaketools.make()
def check():
cmaketools.make("test")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32": return
cmaketools.rawInstall("DESTDIR=%s" % get.installDIR())
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
pisitools.insinto("/usr/lib/include", "jpegint.h")