def METHOD_NAME(self):
    options = [
        self.define("BLAS_LIBRARIES", self.spec["blas"].libs.joined(";")),
        self.define("LAPACK_LIBRARIES", self.spec["lapack"].libs.joined(";")),
        self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
        self.define_from_variant("PLASMA_DETECT_LUA", "lua"),
    ]
    for package, provider in (
        ("openblas", "openblas"),
        ("intel-mkl", "mkl"),
        ("netlib-lapack", "netlib"),
    ):
        if package in self.spec:
            for lib in ("CBLAS", "LAPACKE"):
                options.append(self.define("{}_PROVIDER".format(lib), provider))
    if "cray-libsci" in self.spec:
        for lib in ("CBLAS", "LAPACKE"):
            libsci_prefix = self.spec["cray-libsci"].package.external_prefix
            options.append(self.define("{}_PROVIDER".format(lib), "generic"))
            options.append(
                self.define("{}_INCLUDE_DIRS".format(lib), join_path(libsci_prefix, "include"))
            )
            options.append(
                self.define("{}_LIBRARIES".format(lib), self.spec["blas"].libs.joined(";"))
            )
        options.append(self.define("CBLAS_ADD_TYPEDEF", True))
    return options