def METHOD_NAME(self, spec, prefix):
    # Configure
    # Don't hide build commands
    filter_file("^\t@", "\t", "Makefile")
    makeflags = [
        "PREFIX=%s" % prefix,
        "COLORS=0",
        "CFITSIOPATH=%s" % spec["cfitsio"].prefix,
        "CC=cc",
        "FC=fc",
        "IFORTLIBPATH=",
        "IFORTRUNTIME=-lintlc -limf -lsvml -liomp5 -lifportmt -lifcoremt",
        "GFORTRANLIBPATH=",
        "GFORTRANRUNTIME=-lgfortran -lgomp",
        "LAPACKLIBPATH=",
        "LAPACK=%s" % (spec["lapack"].libs + spec["blas"].libs).ld_flags,
        "COPENMP=%s" % self.compiler.openmp_flag,
        "FOPENMP=%s" % self.compiler.openmp_flag,
    ]
    # Build
    make(*makeflags)
    # Install
    make("install", *makeflags)
    fix_darwin_install_name(prefix.lib)
    dirs = ["plc_2.0"]
    if "+lensing-ext" in spec:
        dirs.append("lensing_ext")
    if "+plik-DS" in spec:
        dirs.append("plik_DS")
    if "+plik-HM-ext" in spec:
        dirs.append("plik_HM_ext")
    if "+plik-unbinned" in spec:
        dirs.append("plik_unbinned")
    for dir in dirs:
        install_tree(dir, join_path(prefix, "share", "clik", dir))