summaryrefslogtreecommitdiff
path: root/editors/emacs
diff options
context:
space:
mode:
authoruebayasi <uebayasi@pkgsrc.org>2007-10-29 12:40:02 +0000
committeruebayasi <uebayasi@pkgsrc.org>2007-10-29 12:40:02 +0000
commit75635c82f9b48902b02b85d1871fbdaac7598347 (patch)
treea1cdf092626eccf72ecf1035d4c35e194b5648e5 /editors/emacs
parentcce6d782c4945a87236575df98be6b8a949c1c05 (diff)
downloadpkgsrc-75635c82f9b48902b02b85d1871fbdaac7598347.tar.gz
Initial addition of buildlink3.mk fragments for Emacs / XEmacs programs.
Diffstat (limited to 'editors/emacs')
-rw-r--r--editors/emacs/buildlink3.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/editors/emacs/buildlink3.mk b/editors/emacs/buildlink3.mk
new file mode 100644
index 00000000000..231eceaf891
--- /dev/null
+++ b/editors/emacs/buildlink3.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.1 2007/10/29 12:40:03 uebayasi Exp $
+#
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+EMACS_BUILDLINK3_MK:= ${EMACS_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= emacs
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nemacs}
+BUILDLINK_PACKAGES+= emacs
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}emacs
+
+.if ${EMACS_BUILDLINK3_MK} == "+"
+.include "../../mk/emacs.mk"
+BUILDLINK_API_DEPENDS.emacs+= ${_EMACS_REQD.emacs22}
+BUILDLINK_PKGSRCDIR.emacs?= ${_EMACS_DEP.emacs22}
+.endif # EMACS_BUILDLINK3_MK
+
+BUILDLINK_CONTENTS_FILTER.emacs= ${EGREP} '.*\.el$$|.*\.elc$$'
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}