def METHOD_NAME(self):
    spec = self.spec
    config_args = ["--enable-pic", "--cc={0}".format(spack_cc), "--cxx={0}".format(spack_cxx)]
    # '+X' meta variant #
    xlib_opts = []
    if spec.satisfies("@2.5:"):
        xlib_opts.extend(["libxcb", "libxcb-shape", "libxcb-shm", "libxcb-xfixes", "xlib"])
    config_args += self.enable_or_disable_meta("X", xlib_opts)
    # '+drawtext' meta variant #
    drawtext_opts = [
        "{0}fontconfig".format("lib" if spec.satisfies("@3:") else ""),
        "libfreetype",
    ]
    if spec.satisfies("@2.3:"):
        drawtext_opts.append("libfribidi")
    config_args += self.enable_or_disable_meta("drawtext", drawtext_opts)
    # other variants #
    variant_opts = [
        "bzlib",
        "gpl",
        "libmp3lame",
        "libopenjpeg",
        "libopus",
        "libspeex",
        "libvorbis",
        "libvpx",
        "libx264",
        "nonfree",
        "openssl",
        "shared",
        "version3",
        "avresample",
        "libzmq",
        "libssh",
        "libwebp",
        "lzma",
        "libsnappy",
        "sdl2",
        "libaom",
        "libxml2",
    ]
    for variant_opt in variant_opts:
        config_args += self.enable_or_disable(variant_opt)
    return config_args