summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/pkg-config/package.py
blob: a803bc3f9b8189210eca1c54b6b4acfb69b186a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from spack import *

class PkgConfig(Package):
    """pkg-config is a helper tool used when compiling applications and libraries"""
    homepage = "http://www.freedesktop.org/wiki/Software/pkg-config/"
    url      = "http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz"

    version('0.28', 'aa3c86e67551adc3ac865160e34a2a0d')

    parallel = False

    def install(self, spec, prefix):
        configure("--prefix=%s" %prefix,
                "--enable-shared",
                "--with-internal-glib") # There's a bootstrapping problem here;
                                        # glib uses pkg-config as well, so
                                        # break the cycle by using the internal
                                        # glib.

        make()
        make("install")