openexr: changed build system to autotools (#20209)

This commit is contained in:
ketsubouchi 2020-12-02 19:10:47 +09:00 committed by GitHub
parent 0d988700ba
commit 47ac7da244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@
from spack import * from spack import *
class Openexr(Package): class Openexr(AutotoolsPackage):
"""OpenEXR Graphics Tools (high dynamic-range image file format)""" """OpenEXR Graphics Tools (high dynamic-range image file format)"""
homepage = "http://www.openexr.com/" homepage = "http://www.openexr.com/"
@ -39,9 +39,9 @@ class Openexr(Package):
depends_on('ilmbase') depends_on('ilmbase')
depends_on('zlib', type=('build', 'link')) depends_on('zlib', type=('build', 'link'))
def install(self, spec, prefix): def configure_args(self):
configure_options = ['--prefix={0}'.format(prefix)] configure_options = []
if '+debug' not in spec:
configure_options.append('--disable-debug') configure_options += self.enable_or_disable('debug')
configure(*configure_options)
make('install') return configure_options