[Bug 266310] Mk/bsd.ccache.mk: Add CCACHE_ENABLED variable for ports' convenience

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 09 Sep 2022 06:56:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266310

            Bug ID: 266310
           Summary: Mk/bsd.ccache.mk: Add CCACHE_ENABLED variable for
                    ports' convenience
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: yuri@freebsd.org
                CC: ports-bugs@FreeBSD.org

Created attachment 236447
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=236447&action=edit
patch

bsd.ccache.mk can disable ccache in some situations.
Ports should be able to know when ccache is enabled but there is no single
variable for this.

I propose that bsd.ccache.mk would always set the variable CCACHE_ENABLED with
values yes/no.

For example, cmake based ports would be able to pass it to cmake:
> CMAKE_ARGS+=-DUSE_CCACHE:BOOL=${CCACHE_ENABLED:tu}

Currently there is no easy way to do this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.