ian 74f70ddb77 Unbreak for shared arches with -nodefaultlibs, and bump.
Cluestick and "looks ok" from matthew@; OK ajacoutot@
2013-08-09 18:06:52 +00:00

46 lines
885 B
Makefile

# $OpenBSD: Makefile,v 1.54 2013/08/09 18:06:52 ian Exp $
COMMENT= sendmail milter to scan messages for viruses and spam
DISTNAME= smtp-vilter-1.3.8
REVISION= 1
CATEGORIES= mail
HOMEPAGE= http://www.etc.msys.ch/software/smtp-vilter/
SHARED_ONLY= Yes
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c m pthread milter
MASTER_SITES= ${HOMEPAGE}
EXTRACT_SUFX= .tgz
NO_TEST= Yes
FLAVORS= ldap
FLAVOR?=
.if ${FLAVOR:Mldap}
MAKE_FLAGS+= -DENABLE_LDAP
LIB_DEPENDS+= databases/openldap
WANTLIB += ldap_r lber
.endif
FAKE_FLAGS= BINDIR=${PREFIX}/sbin \
LIBDIR=${PREFIX}/lib/smtp-vilter \
MANDIR=${PREFIX}/man/man \
SPATH=${PREFIX}/share/examples/smtp-vilter
pre-configure:
${SUBST_CMD} ${WRKSRC}/etc/smtp-vilter/smtp-vilter.conf
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
cp -r ${WRKSRC}/etc/smtp-vilter ${PREFIX}/share/examples/
.include <bsd.port.mk>