mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
138 lines
3.1 KiB
Makefile
138 lines
3.1 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= anubis
|
|
PORTVERSION= 4.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= mail
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= jhale@FreeBSD.org
|
|
COMMENT= Outgoing SMTP mail processor
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
OPTIONS_DEFINE= NLS EXAMPLES GUILE GPGME GNUTLS GSASL \
|
|
GDBM MYSQL PGSQL PCRE PAM SOCKS LIBWRAP
|
|
OPTIONS_DEFAULT=GUILE GPGME GNUTLS GSASL
|
|
NO_OPTIONS_SORT=yes
|
|
|
|
GPGME_DESC= GnuPG support via GPGME
|
|
GSASL_DESC= GSASL support (required for databases)
|
|
GDBM_DESC= GDBM backend
|
|
SOCKS_DESC= SOCKS proxy support
|
|
|
|
USES= charsetfix makeinfo pkgconfig shebangfix
|
|
CHARSETFIX_MAKEFILEIN= gnulib.mk
|
|
SHEBANG_FILES= contrib/msg2smtp.pl
|
|
USE_RC_SUBR= anubis
|
|
USE_AUTOTOOLS= aclocal autoheader autoconf automake
|
|
ACLOCAL_ARGS= -I m4 -I gint -I am
|
|
AUTOMAKE_ARGS= --force --add-missing
|
|
|
|
INFO= anubis
|
|
PORTEXAMPLES= 1anubisrc 2anubisrc
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
# Default requirement for anubis rc script
|
|
_REQUIRE= mail
|
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
USES+= gettext iconv
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGUILE}
|
|
LIB_DEPENDS+= libguile.so:${PORTSDIR}/lang/guile
|
|
PORTEXAMPLES+= anubis.scm anubisrc.guile
|
|
PLIST_SUB+= GUILE=""
|
|
.else
|
|
CONFIGURE_ARGS+=--without-guile
|
|
PLIST_SUB+= GUILE="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGPGME}
|
|
LIB_DEPENDS+= libgpgme.so:${PORTSDIR}/security/gpgme
|
|
.else
|
|
CONFIGURE_ARGS+=--without-gpgme
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGNUTLS}
|
|
LIB_DEPENDS+= libgnutls.so:${PORTSDIR}/security/gnutls
|
|
.else
|
|
CONFIGURE_ARGS+=--without-gnutls
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGSASL} || ${PORT_OPTIONS:MGDBM} || ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL}
|
|
LIB_DEPENDS+= libgsasl.so:${PORTSDIR}/security/gsasl
|
|
PLIST_SUB+= GSASL=""
|
|
.else
|
|
CONFIGURE_ARGS+=--without-gsasl
|
|
PLIST_SUB+= GSASL="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MGDBM}
|
|
LIB_DEPENDS+= libgdbm.so:${PORTSDIR}/databases/gdbm
|
|
CONFIGURE_ARGS+=--with-gdbm
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_MYSQL= yes
|
|
CONFIGURE_ARGS+=--with-mysql
|
|
_REQUIRE+= mysql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
USES+= pgsql
|
|
CONFIGURE_ARGS+=--with-postgres
|
|
_REQUIRE+= postgresql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPCRE}
|
|
LIB_DEPENDS+= libpcre.so:${PORTSDIR}/devel/pcre
|
|
CONFIGURE_ARGS+=--with-pcre
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPAM} && exists(/usr/lib/libpam.so)
|
|
CONFIGURE_ARGS+=--with-pam
|
|
PORTEXAMPLES+= pam
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MLIBWRAP} && exists(/usr/include/tcpd.h)
|
|
CONFIGURE_ARGS+=--with-tcp-wrappers
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MSOCKS}
|
|
CONFIGURE_ARGS+=--with-socks-proxy
|
|
.endif
|
|
|
|
SUB_LIST+= REQUIRE="${_REQUIRE}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/src/headers.h
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/*rc ${STAGEDIR}${EXAMPLESDIR}
|
|
. if ${PORT_OPTIONS:MGUILE}
|
|
cd ${WRKSRC}/examples && \
|
|
${INSTALL_DATA} anubis.scm anubisrc.guile ${STAGEDIR}${EXAMPLESDIR}
|
|
. endif
|
|
. if ${PORT_OPTIONS:MPAM}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/pam
|
|
${INSTALL_DATA} ${WRKSRC}/examples/pam/anubis* ${STAGEDIR}${EXAMPLESDIR}/pam
|
|
. endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|