Add libjpeg-turbo 2.0.3 (#13152)

This commit is contained in:
Adam J. Stewart 2019-10-12 19:55:44 -05:00 committed by GitHub
parent 1e2754f0d2
commit 94d57446c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,8 +13,9 @@ class LibjpegTurbo(Package):
transcoding.""" transcoding."""
# https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/BUILDING.md # https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/BUILDING.md
homepage = "https://libjpeg-turbo.org/" homepage = "https://libjpeg-turbo.org/"
url = "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/2.0.2.tar.gz" url = "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/2.0.3.tar.gz"
version('2.0.3', sha256='a69598bf079463b34d45ca7268462a18b6507fdaa62bb1dfd212f02041499b5d')
version('2.0.2', sha256='b45255bd476c19c7c6b198c07c0487e8b8536373b82f2b38346b32b4fa7bb942') version('2.0.2', sha256='b45255bd476c19c7c6b198c07c0487e8b8536373b82f2b38346b32b4fa7bb942')
version('1.5.90', sha256='cb948ade92561d8626fd7866a4a7ba3b952f9759ea3dd642927bc687470f60b7') version('1.5.90', sha256='cb948ade92561d8626fd7866a4a7ba3b952f9759ea3dd642927bc687470f60b7')
version('1.5.3', sha256='1a17020f859cb12711175a67eab5c71fc1904e04b587046218e36106e07eabde') version('1.5.3', sha256='1a17020f859cb12711175a67eab5c71fc1904e04b587046218e36106e07eabde')
@ -27,16 +28,16 @@ class LibjpegTurbo(Package):
# only nasm is used. In order to use yasm an environmental variable # only nasm is used. In order to use yasm an environmental variable
# NASM must be set. # NASM must be set.
# TODO: Implement the selection between two supported assemblers. # TODO: Implement the selection between two supported assemblers.
# depends_on("yasm", type='build') # depends_on('yasm', type='build')
depends_on("nasm", type='build') depends_on('nasm', type='build')
depends_on('autoconf', type='build', when="@1.3.1:1.5.3") depends_on('autoconf', type='build', when='@1.3.1:1.5.3')
depends_on('automake', type='build', when="@1.3.1:1.5.3") depends_on('automake', type='build', when='@1.3.1:1.5.3')
depends_on('libtool', type='build', when="@1.3.1:1.5.3") depends_on('libtool', type='build', when='@1.3.1:1.5.3')
depends_on('cmake', type='build', when="@1.5.90:") depends_on('cmake', type='build', when='@1.5.90:')
@property @property
def libs(self): def libs(self):
return find_libraries("libjpeg*", root=self.prefix, recursive=True) return find_libraries('libjpeg*', root=self.prefix, recursive=True)
def flag_handler(self, name, flags): def flag_handler(self, name, flags):
if self.spec.satisfies('@1.5.90:'): if self.spec.satisfies('@1.5.90:'):