def METHOD_NAME(self):
    # Remove flags not recognized by the NVIDIA compilers
    if self.spec.satisfies("%nvhpc"):
        filter_file("-std=c99", "-c99", "src/apps/CMakeLists.txt")
    # set up some defaults
    filter_file(
        r"(#define DEFAULTQSUBLOCATION).*",
        r'\1 "{0}"'.format(join_path(self.spec.prefix.bin, "relion_qsub.csh")),
        join_path("src", "pipeline_jobs.h"),
    )
    filter_file(
        r"(#define DEFAULTCTFFINDLOCATION).*",
        r'\1 "{0}"'.format(join_path(self.spec["ctffind"].prefix.bin, "ctffind")),
        join_path("src", "pipeline_jobs.h"),
    )
    if "+external_motioncor2" in self.spec:
        filter_file(
            r"(#define DEFAULTMOTIONCOR2LOCATION).*",
            r'\1 "{0}"'.format(join_path(self.spec["motioncor2"].prefix.bin, "MotionCor2")),
            join_path("src", "pipeline_jobs.h"),
        )