mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add an option: SENDMAIL_MILTER_IN_BASE=yes
This does not build yet, as the ports need more than libmilter. PR: 37908
This commit is contained in:
parent
b90c5cf707
commit
2029c61d64
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58846
3 changed files with 18 additions and 7 deletions
|
@ -15,7 +15,6 @@ MAINTAINER= dinoex@FreeBSD.org
|
|||
BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
|
||||
|
||||
CFLAGS+= ${PTHREAD_CFLAGS:S=""==}
|
||||
FLAGS+= ${PTHREAD_LIBS}
|
||||
GNU_CONFIGURE= yes
|
||||
MAN8= noattach.8
|
||||
DOCSFILES= AUTHORS THANKS COPYING INSTALL NEWS README TODO ChangeLog
|
||||
|
|
|
@ -13,12 +13,17 @@ DISTNAME= rays-filter-${PORTVERSION}
|
|||
|
||||
MAINTAINER= dinoex@FreeBSD.org
|
||||
|
||||
.if !defined(SENDMAIL_MILTER_IN_BASE)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
|
||||
.endif
|
||||
|
||||
CTARGETS+= rays-filter
|
||||
CFLAGS+= -Wall -I$(LOCALBASE)/include ${PTHREAD_CFLAGS:S=""==}
|
||||
FLAGS+= ${PTHREAD_LIBS}
|
||||
CFLAGS+= -Wall ${PTHREAD_CFLAGS:S=""==}
|
||||
LIBS+= ${PTHREAD_LIBS}
|
||||
.if !defined(SENDMAIL_MILTER_IN_BASE)
|
||||
CFLAGS+= -I$(LOCALBASE)/include
|
||||
LDFLAGS+= -L$(LOCALBASE)/lib
|
||||
.endif
|
||||
ETCFILES= header-list.conf mail-filter.conf string-list.conf
|
||||
BINFILES= mf-reset mf-start mf-stop mf-archive mf-analyze mf-memory
|
||||
DOCSFILES= rays-filter.html install.html configure.html operate.html \
|
||||
|
@ -26,7 +31,8 @@ DOCSFILES= rays-filter.html install.html configure.html operate.html \
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if exists(${LOCALBASE}/include/libmilter/mfdef.h)
|
||||
.if exists(${LOCALBASE}/include/libmilter/mfdef.h) \
|
||||
|| defined(SENDMAIL_MILTER_IN_BASE)
|
||||
LIBS+= -lmilter -lsm -lsmutil
|
||||
.else
|
||||
LIBS+= -lmilter -lsmutil
|
||||
|
|
|
@ -15,16 +15,22 @@ EXTRACT_ONLY= # empty
|
|||
|
||||
MAINTAINER= dinoex@FreeBSD.org
|
||||
|
||||
.if !defined(SENDMAIL_MILTER_IN_BASE)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
|
||||
.endif
|
||||
|
||||
CTARGETS+= vbsfilter-${PORTVERSION}
|
||||
CFLAGS+= -Wall -I$(LOCALBASE)/include ${PTHREAD_CFLAGS:S=""==}
|
||||
FLAGS+= ${PTHREAD_LIBS}
|
||||
LIBS+= ${PTHREAD_LIBS}
|
||||
CFLAGS+= -Wall ${PTHREAD_CFLAGS:S=""==}
|
||||
.if !defined(SENDMAIL_MILTER_IN_BASE)
|
||||
CFLAGS+= -I$(LOCALBASE)/include
|
||||
LDFLAGS+= -L$(LOCALBASE)/lib
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if exists(${LOCALBASE}/include/libmilter/mfdef.h)
|
||||
.if exists(${LOCALBASE}/include/libmilter/mfdef.h) \
|
||||
|| defined(SENDMAIL_MILTER_IN_BASE)
|
||||
LIBS+= -lmilter -lsm -lsmutil
|
||||
.else
|
||||
LIBS+= -lmilter -lsmutil
|
||||
|
|
Loading…
Add table
Reference in a new issue