summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/exempi/package.py
blob: e9b5ecfa1bb7058a609bb6a0408d173e71da874d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class Exempi(AutotoolsPackage):
    """exempi is a port of Adobe XMP SDK to work on UNIX and to be build with
    GNU automake.

    It includes XMPCore and XMPFiles, libexempi, a C-based API and exempi
    a command line tool.
    """

    homepage = "https://libopenraw.freedesktop.org/wiki/Exempi"
    url      = "https://libopenraw.freedesktop.org/download/exempi-2.5.2.tar.bz2"

    version('2.5.2', sha256='52f54314aefd45945d47a6ecf4bd21f362e6467fa5d0538b0d45a06bc6eaaed5')

    depends_on('zlib')
    depends_on('iconv')
    depends_on('boost@1.48.0:')
    depends_on('pkgconfig')

    conflicts('%gcc@:4.5')

    def configure_args(self):
        args = ['--with-boost={0}'.format(self.spec['boost'].prefix)]

        if self.spec.satisfies('polatform=darwin'):
            args += ['--with-darwinports', '--with-fink']

        return args