- Detect needed libs on installed sendmail package

8.11.6 and 8.12.1 tested.
This commit is contained in:
Dirk Meyer 2001-10-12 10:13:49 +00:00
parent c1dd86b94f
commit 3d1ed214aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48706

View file

@ -21,7 +21,14 @@ CTARGETS+= vbsfilter-${PORTVERSION}
CFLAGS+= -Wall -I$(LOCALBASE)/include ${PTHREAD_CFLAGS:S=""==}
FLAGS+= ${PTHREAD_LIBS}
LDFLAGS+= -L$(LOCALBASE)/lib
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/libmilter/mfdef.h)
LIBS+= -lmilter -lsm -lsmutil
.else
LIBS+= -lmilter -lsmutil
.endif
.if defined(BATCH)
SENDMAIL_WITH_MILTER= yes
@ -60,4 +67,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/vbsfilter.sh \
${PREFIX}/etc/rc.d/vbsfilter.sh.sample
.include <bsd.port.mk>
.include <bsd.port.post.mk>