Convert Jaspert to AutotoolsPackage (#3212)
This commit is contained in:
parent
52fab8fff3
commit
539a454900
1 changed files with 7 additions and 12 deletions
|
@ -25,7 +25,7 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Jasper(Package):
|
class Jasper(AutotoolsPackage):
|
||||||
"""Library for manipulating JPEG-2000 images"""
|
"""Library for manipulating JPEG-2000 images"""
|
||||||
|
|
||||||
homepage = "https://www.ece.uvic.ca/~frodo/jasper/"
|
homepage = "https://www.ece.uvic.ca/~frodo/jasper/"
|
||||||
|
@ -45,19 +45,14 @@ class Jasper(Package):
|
||||||
# see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
|
# see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
|
||||||
patch('fix_alpha_channel_assert_fail.patch')
|
patch('fix_alpha_channel_assert_fail.patch')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
configure_options = [
|
spec = self.spec
|
||||||
'--prefix={0}'.format(prefix),
|
args = ['--mandir={0}'.format(spec.prefix.man)]
|
||||||
'--mandir={0}'.format(spec.prefix.man),
|
|
||||||
]
|
|
||||||
|
|
||||||
if '+shared' in spec:
|
if '+shared' in spec:
|
||||||
configure_options.append('--enable-shared')
|
args.append('--enable-shared')
|
||||||
|
|
||||||
if '+debug' not in spec:
|
if '+debug' not in spec:
|
||||||
configure_options.append('--disable-debug')
|
args.append('--disable-debug')
|
||||||
|
|
||||||
configure(*configure_options)
|
return args
|
||||||
|
|
||||||
make()
|
|
||||||
make('install')
|
|
||||||
|
|
Loading…
Reference in a new issue