From 1c9f7b5917b97726323bc175994775d7f239605c Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 26 Sep 2003 20:15:58 +0000 Subject: Allow building with sendmail from ports --- mail/sentinel/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'mail/sentinel') diff --git a/mail/sentinel/Makefile b/mail/sentinel/Makefile index bc0433dee513..d3c81a1baaba 100644 --- a/mail/sentinel/Makefile +++ b/mail/sentinel/Makefile @@ -19,8 +19,14 @@ LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre USE_REINPLACE= yes -.if !exists(/usr/lib/libmilter.a) -IGNORE= requires Sendmail 8.12; upgrade the base system +.include + +.if !exists(/usr/lib/libmilter.a) && !exists(${LOCALBASE}/lib/libmilter.a) +IGNORE= requires Sendmail 8.12 +.endif +.if exists(${LOCALBASE}/lib/libmilter.a) +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib .endif post-patch: @@ -47,4 +53,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include +.include -- cgit v1.2.3