pkgsrc/misc/bbdb/buildlink3.mk

32 lines
759 B
Makefile

# $NetBSD: buildlink3.mk,v 1.1 2007/10/29 12:41:18 uebayasi Exp $
#
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
BBDB_BUILDLINK3_MK:= ${BBDB_BUILDLINK3_MK}+
.include "../../mk/emacs.mk"
.if ${EMACS_FLAVOR} == "emacs"
.if ${BUILDLINK_DEPTH} == "+"
BUILDLINK_DEPENDS+= bbdb
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nbbdb}
BUILDLINK_PACKAGES+= bbdb
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}bbdb
.if ${BBDB_BUILDLINK3_MK} == "+"
BUILDLINK_API_DEPENDS.bbdb+= ${EMACS_PKGNAME_PREFIX}bbdb>=2
BUILDLINK_PKGSRCDIR.bbdb?= ../../misc/bbdb
.endif # BBDB_BUILDLINK3_MK
BUILDLINK_CONTENTS_FILTER.bbdb= ${EGREP} '.*\.el$$|.*\.elc$$'
.else
# XEmacs has bbdb in xemacs-packages
EMACS_MODULES+= base
.endif
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}