- Detect needed libs on installed sendmail package
8.11.6 and 8.12.1 tested.
This commit is contained in:
parent
c1dd86b94f
commit
3d1ed214aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48706
1 changed files with 8 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue