summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/jasper/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/jasper/package.py')
-rw-r--r--var/spack/repos/builtin/packages/jasper/package.py27
1 files changed, 11 insertions, 16 deletions
diff --git a/var/spack/repos/builtin/packages/jasper/package.py b/var/spack/repos/builtin/packages/jasper/package.py
index f450c7d155..5739f902a1 100644
--- a/var/spack/repos/builtin/packages/jasper/package.py
+++ b/var/spack/repos/builtin/packages/jasper/package.py
@@ -1,13 +1,13 @@
##############################################################################
-# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-647188
#
-# For details, see https://github.com/llnl/spack
-# Please also see the LICENSE file for our notice and the LGPL.
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License (as
@@ -25,7 +25,7 @@
from spack import *
-class Jasper(Package):
+class Jasper(AutotoolsPackage):
"""Library for manipulating JPEG-2000 images"""
homepage = "https://www.ece.uvic.ca/~frodo/jasper/"
@@ -38,26 +38,21 @@ class Jasper(Package):
variant('debug', default=False,
description='Builds debug versions of the libraries')
- depends_on('libjpeg-turbo')
+ depends_on('jpeg')
# Fixes a bug (still in upstream as of v.1.900.1) where an assertion fails
# when certain JPEG-2000 files with an alpha channel are processed
# see: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469786
patch('fix_alpha_channel_assert_fail.patch')
- def install(self, spec, prefix):
- configure_options = [
- '--prefix={0}'.format(prefix),
- '--mandir={0}'.format(spec.prefix.man),
- ]
+ def configure_args(self):
+ spec = self.spec
+ args = ['--mandir={0}'.format(spec.prefix.man)]
if '+shared' in spec:
- configure_options.append('--enable-shared')
+ args.append('--enable-shared')
if '+debug' not in spec:
- configure_options.append('--disable-debug')
+ args.append('--disable-debug')
- configure(*configure_options)
-
- make()
- make('install')
+ return args