I used this (without the COMPILER_LANGS line) to fix scrypt in the current sparc64 build. I saw I should have used COMPILER_LANGS too after the fact.
--Kurt Index: Makefile =================================================================== RCS file: /cvs/ports/security/scrypt/Makefile,v retrieving revision 1.10 diff -u -p -r1.10 Makefile --- Makefile 31 Dec 2019 07:26:59 -0000 1.10 +++ Makefile 1 Jan 2020 17:46:23 -0000 @@ -18,6 +18,9 @@ WANTLIB = c crypto MASTER_SITES = ${HOMEPAGE} EXTRACT_SUFX = .tgz +COMPILER = base-clang ports-gcc base-gcc +COMPILER_LANGS = c + CONFIGURE_STYLE = gnu CONFIGURE_ARGS = --enable-libscrypt-kdf