summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd
diff options
context:
space:
mode:
authorsbd <sbd>2011-12-07 20:39:19 +0000
committersbd <sbd>2011-12-07 20:39:19 +0000
commit8a5a01643d213d6b4fb11d02ce83aed361748465 (patch)
tree96739f3d5ffd79466f943b3908bc11f8fecc964e /mail/cyrus-imapd
parent09dc4fe1142d3a0308181318b6c775b94ca4aa66 (diff)
downloadpkgsrc-8a5a01643d213d6b4fb11d02ce83aed361748465.tar.gz
If a package Makefile is going to try and detect a builtin libraray it
should honor the PREFER* variables.
Diffstat (limited to 'mail/cyrus-imapd')
-rw-r--r--mail/cyrus-imapd/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/cyrus-imapd/Makefile b/mail/cyrus-imapd/Makefile
index 6f9dc0fde46..c65f7e7d907 100644
--- a/mail/cyrus-imapd/Makefile
+++ b/mail/cyrus-imapd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.88 2011/08/14 13:25:21 obache Exp $
+# $NetBSD: Makefile,v 1.89 2011/12/07 20:39:19 sbd Exp $
DISTNAME= cyrus-imapd-2.2.13p1
PKGREVISION= 5
@@ -89,6 +89,12 @@ PLIST.ldap= yes
COMERRBASE?= /usr
.endif
.if defined(COMERRBASE)
+# As com_err is a library the PREFER_* user variables should be honored.
+#
+BUILTIN_PKG:= com_err
+.include "../../mk/buildlink3/bsd.builtin.mk"
+.endif
+.if defined(PREFER.com_err) && ${PREFER.com_err} != "pkgsrc"
. if exists(${COMERRBASE}/include/krb5/com_err.h)
CPPFLAGS+= -I${COMERRBASE}/include/krb5
. endif