git: 42254d38fc21 - main - sysutils/screen: Socket directory location option

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Mon, 09 May 2022 18:11:13 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=42254d38fc21ae531687824fe6b12d5d52acf3e7

commit 42254d38fc21ae531687824fe6b12d5d52acf3e7
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-04-04 16:05:21 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-05-09 17:48:13 +0000

    sysutils/screen: Socket directory location option
    
    Allow the user to specify the location of the socket directory through a
    make.conf or make command line option called SCREEN_SOCKET_DIR. Simply
    add SCREEN_SOCKET_DIR= to make.conf or put it on the command line.
---
 sysutils/screen/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile
index 53d60822795b..34625ae2bf9d 100644
--- a/sysutils/screen/Makefile
+++ b/sysutils/screen/Makefile
@@ -82,6 +82,11 @@ CFLAGS+=	-DNONETHACK
 CONFIGURE_ARGS+=	--disable-socket-dir
 .endif
 
+.if defined(SCREEN_SOCKET_DIR)
+CONFIGURE_ARGS+=	--with-socket-dir=${SCREEN_SOCKET_DIR}
+.endif
+
+
 post-patch:
 	@${RM} ${WRKSRC}/doc/screen.info*