aboutsummaryrefslogtreecommitdiff
path: root/editors/kakoune/Makefile.include
diff options
context:
space:
mode:
Diffstat (limited to 'editors/kakoune/Makefile.include')
-rw-r--r--editors/kakoune/Makefile.include17
1 files changed, 17 insertions, 0 deletions
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