summaryrefslogtreecommitdiff
path: root/editors/mule-ucs/buildlink3.mk
diff options
context:
space:
mode:
Diffstat (limited to 'editors/mule-ucs/buildlink3.mk')
-rw-r--r--editors/mule-ucs/buildlink3.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/editors/mule-ucs/buildlink3.mk b/editors/mule-ucs/buildlink3.mk
new file mode 100644
index 00000000000..7c994a4bdb2
--- /dev/null
+++ b/editors/mule-ucs/buildlink3.mk
@@ -0,0 +1,32 @@
+# $NetBSD: buildlink3.mk,v 1.1 2007/10/29 12:41:17 uebayasi Exp $
+#
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+MULE_UCS_BUILDLINK3_MK:= ${MULE_UCS_BUILDLINK3_MK}+
+
+#
+# Only for older GNU Emacs. Emacs 22 or later doesn't need this because it
+# incorporated Unicode support.
+#
+
+.include "../../mk/emacs.mk"
+.if ${EMACS_FLAVOR} == "emacs" && ${EMACS_VERSION_MAJOR} < 22
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= mule-ucs
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nmule-ucs}
+BUILDLINK_PACKAGES+= mule-ucs
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}mule-ucs
+
+.if ${MULE_UCS_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.mule-ucs+= ${EMACS_PKGNAME_PREFIX}Mule-UCS>=0.84
+BUILDLINK_PKGSRCDIR.mule-ucs?= ../../editors/mule-ucs
+.endif # MULE_UCS_BUILDLINK3_MK
+
+BUILDLINK_CONTENTS_FILTER.mule-ucs= ${EGREP} '.*\.el$$|.*\.elc$$'
+
+.endif
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}