git: 7ae32726c05e - main - editors/kakoune: Add scaffolding for plugin ports

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Fri, 19 Sep 2025 19:49:18 UTC
The branch main has been updated by ashish:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7ae32726c05ecb2940d2d802e2835cc6c9fe4359

commit 7ae32726c05ecb2940d2d802e2835cc6c9fe4359
Author:     seafork <seafork@disroot.org>
AuthorDate: 2025-08-01 03:02:33 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2025-09-19 19:44:51 +0000

    editors/kakoune: Add scaffolding for plugin ports
    
    PR:             288588
---
 editors/kakoune/Makefile.include | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/editors/kakoune/Makefile.include b/editors/kakoune/Makefile.include
new file mode 100644
index 000000000000..ec84688b9a56
--- /dev/null
+++ b/editors/kakoune/Makefile.include
@@ -0,0 +1,17 @@
+# Makefile for defining variables used by other kakoune related ports.
+
+KAKPKGNAMEPREFIX?=	kakoune-
+KAKDIR?=		${LOCALBASE}/share/kak
+
+.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == ${KAKPKGNAMEPREFIX} && \
+	defined(OPTIONSMKINCLUDED)
+.  error include before <bsd.port.options.mk> if using KAKPKGNAMEPREFIX
+.endif
+
+MAKE_ENV+=	KAKDIR="${KAKDIR}"
+PLIST_SUB+=	KAKDIR="${KAKDIR:S/${LOCALBASE}\///}"
+SUB_LIST+=	KAKDIR="${KAKDIR}"
+
+.if ${PORTNAME} != "kakoune"
+RUN_DEPENDS+=	kakoune>0:editors/kakoune
+.endif