summaryrefslogtreecommitdiff
path: root/mail/cyrus-imapd23
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2011-12-07 20:39:19 +0000
committersbd <sbd@pkgsrc.org>2011-12-07 20:39:19 +0000
commit5b10cb7b7fc4750e31c2a7646cf6fb4582797062 (patch)
tree96739f3d5ffd79466f943b3908bc11f8fecc964e /mail/cyrus-imapd23
parent7b9a9e5280596a0197eaac40e71d680d35e6e73c (diff)
downloadpkgsrc-5b10cb7b7fc4750e31c2a7646cf6fb4582797062.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-imapd23')
-rw-r--r--mail/cyrus-imapd23/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/cyrus-imapd23/Makefile b/mail/cyrus-imapd23/Makefile
index dea09f6a35c..a0a20289899 100644
--- a/mail/cyrus-imapd23/Makefile
+++ b/mail/cyrus-imapd23/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2011/10/05 01:22:57 obache Exp $
+# $NetBSD: Makefile,v 1.16 2011/12/07 20:39:19 sbd Exp $
DISTNAME= cyrus-imapd-2.3.18
CATEGORIES= mail
@@ -59,6 +59,12 @@ CONFIGURE_ARGS+= --enable-replication
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