diff options
author | Sajid Ali <30510036+s-sajid-ali@users.noreply.github.com> | 2018-05-13 22:01:36 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-05-13 22:01:36 -0500 |
commit | 36b4c899fbd06a99f671948160182d185b61b04f (patch) | |
tree | 1ea472c258fadd81eff0059d86366849604a0fbf | |
parent | 9f4c2a65a888f7eda9bbe7d86bb24f345c05994c (diff) | |
download | spack-36b4c899fbd06a99f671948160182d185b61b04f.tar.gz spack-36b4c899fbd06a99f671948160182d185b61b04f.tar.bz2 spack-36b4c899fbd06a99f671948160182d185b61b04f.tar.xz spack-36b4c899fbd06a99f671948160182d185b61b04f.zip |
Add cmake for newer version of libjpeg-turbo (#8102)
* modified: package.py
* add official build reference.
* Update package.py
* Update package.py
* Update package.py
* fixed with pep8online.com
* update make to make()
* change homepage
-rw-r--r-- | var/spack/repos/builtin/packages/libjpeg-turbo/package.py | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/libjpeg-turbo/package.py b/var/spack/repos/builtin/packages/libjpeg-turbo/package.py index 109a68e996..a9e7e235ea 100644 --- a/var/spack/repos/builtin/packages/libjpeg-turbo/package.py +++ b/var/spack/repos/builtin/packages/libjpeg-turbo/package.py @@ -25,15 +25,16 @@ from spack import * -class LibjpegTurbo(AutotoolsPackage): +class LibjpegTurbo(Package): """libjpeg-turbo is a fork of the original IJG libjpeg which uses SIMD to accelerate baseline JPEG compression and decompression. libjpeg is a library that implements JPEG image encoding, decoding and transcoding.""" + # https://github.com/libjpeg-turbo/libjpeg-turbo/blob/master/BUILDING.md + homepage = "https://libjpeg-turbo.org/" + url = "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/1.5.90.tar.gz" - homepage = "http://libjpeg-turbo.virtualgl.org" - url = "https://sourceforge.net/projects/libjpeg-turbo/files/1.5.3/libjpeg-turbo-1.5.3.tar.gz" - + version('1.5.90', '85f7f9c377b70cbf48e61726097d4efa') version('1.5.3', '7c82f0f6a3130ec06b8a4d0b321cbca3') version('1.5.0', '3fc5d9b6a8bce96161659ae7a9939257') version('1.3.1', '2c3a68129dac443a72815ff5bb374b05') @@ -46,3 +47,19 @@ class LibjpegTurbo(AutotoolsPackage): # TODO: Implement the selection between two supported assemblers. # depends_on("yasm", type='build') depends_on("nasm", type='build') + depends_on('cmake', type='build', when="@1.5.90:") + + @when('@:1.5.3') + def install(self, spec, prefix): + configure('--prefix=%s' % prefix) + make() + make('install') + + @when('@1.5.90:') + def install(self, spec, prefix): + cmake_args = ['-GUnix Makefiles'] + cmake_args.extend(std_cmake_args) + with working_dir('spack-build', create=True): + cmake('..', *cmake_args) + make() + make('install') |