add libJpegXL.
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
#
|
||||||
|
# Licensed under the GNU General Public License, version 3.
|
||||||
|
# See the file https://www.gnu.org/licenses/gpl-3.0.txt
|
||||||
|
|
||||||
|
from pisi.actionsapi import shelltools, cmaketools, pisitools, get
|
||||||
|
|
||||||
|
i = ''.join([
|
||||||
|
' -DCMAKE_BUILD_TYPE=Release',
|
||||||
|
' -DBUILD_TESTING=false',
|
||||||
|
' -DBUILD_SHARED_LIBS=true',
|
||||||
|
' -DJPEGXL_FORCE_SYSTEM_LCMS2=true',
|
||||||
|
' -DJPEGXL_FORCE_SYSTEM_HWY=true',
|
||||||
|
' -DJPEGXL_FORCE_SYSTEM_GTEST=true',
|
||||||
|
' -DJPEGXL_FORCE_SYSTEM_BROTLI=true',
|
||||||
|
' -DJPEGXL_ENABLE_SKCMS=false',
|
||||||
|
' -DJPEGXL_ENABLE_SJPEG=false',
|
||||||
|
' -DJPEGXL_ENABLE_BENCHMARK=false',
|
||||||
|
' -DJPEGXL_ENABLE_EXAMPLES=false',
|
||||||
|
' -DJPEGXL_ENABLE_FUZZERS=false',
|
||||||
|
' -B_build -Wno-dev -L '
|
||||||
|
])
|
||||||
|
|
||||||
|
def setup():
|
||||||
|
cmaketools.configure(i)
|
||||||
|
|
||||||
|
def build():
|
||||||
|
# fix incorrect g++ options
|
||||||
|
shelltools.system("find . -iname 'link.txt' -exec sed -i 's: -R: -Wl,-R:g' {} \;")
|
||||||
|
cmaketools.make("-C _build")
|
||||||
|
|
||||||
|
def install():
|
||||||
|
cmaketools.install("-C _build")
|
||||||
|
|
||||||
|
pisitools.dodoc("AUTHORS", "CHANGELOG.md")
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||||
|
<PISI>
|
||||||
|
<Source>
|
||||||
|
<Name>libjxl</Name>
|
||||||
|
<Homepage>https://jpegxl.info/</Homepage>
|
||||||
|
<Packager>
|
||||||
|
<Name>fury</Name>
|
||||||
|
<Email>uglyside@yandex.ru</Email>
|
||||||
|
</Packager>
|
||||||
|
<License>BSD-3-Clause</License>
|
||||||
|
<IsA>library</IsA>
|
||||||
|
<PartOf>multimedia.graphics</PartOf>
|
||||||
|
<Summary>JPEG XL image format reference implementation.</Summary>
|
||||||
|
<Description>A reference implementation of JPEG XL (encoder and decoder), called libjxl.</Description>
|
||||||
|
<Archive sha1sum="43f9515e0c50dc1049de7a55fea1df9b033b0069" type="targz">
|
||||||
|
https://github.com/libjxl/libjxl/archive/refs/tags/v0.7.0.tar.gz
|
||||||
|
</Archive>
|
||||||
|
<BuildDependencies>
|
||||||
|
<Dependency>cmake</Dependency>
|
||||||
|
<Dependency>gtest-devel</Dependency>
|
||||||
|
<Dependency>lcms2-devel</Dependency>
|
||||||
|
<Dependency>brotli-devel</Dependency>
|
||||||
|
<Dependency>libhwy-devel</Dependency>
|
||||||
|
</BuildDependencies>
|
||||||
|
<Patches>
|
||||||
|
<!-- <Patch level='1'></Patch> -->
|
||||||
|
</Patches>
|
||||||
|
</Source>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>libjxl</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>lcms2</Dependency>
|
||||||
|
<Dependency>brotli</Dependency>
|
||||||
|
<Dependency>libhwy</Dependency>
|
||||||
|
<Dependency>libgcc</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
|
<Path fileType="library">/usr/lib</Path>
|
||||||
|
<Path fileType="data">/usr/share</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<Package>
|
||||||
|
<Name>libjxl-devel</Name>
|
||||||
|
<RuntimeDependencies>
|
||||||
|
<Dependency>lcms2-devel</Dependency>
|
||||||
|
<Dependency>brotli-devel</Dependency>
|
||||||
|
<Dependency>libhwy-devel</Dependency>
|
||||||
|
<Dependency release="current">libjxl</Dependency>
|
||||||
|
</RuntimeDependencies>
|
||||||
|
<Files>
|
||||||
|
<Path fileType="headers">/usr/include</Path>
|
||||||
|
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||||
|
</Files>
|
||||||
|
</Package>
|
||||||
|
|
||||||
|
<History>
|
||||||
|
<Update release="1">
|
||||||
|
<Date>2023-01-06</Date>
|
||||||
|
<Version>0.7.0</Version>
|
||||||
|
<Comment>First build.</Comment>
|
||||||
|
<Name>fury</Name>
|
||||||
|
<Email>uglyside@yandex.ru</Email>
|
||||||
|
</Update>
|
||||||
|
</History>
|
||||||
|
</PISI>
|
||||||
Reference in New Issue
Block a user