1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Convert to optionsNG

- Remove LICENSE_FILE
- Remove shlib version from LIB_DEPENDS

PR:		ports/169575
Submitted by:	Jason E. Hale <bsdkaffee@gmail.com> (maintainer)
Approved by:	flo (mentor)
This commit is contained in:
Jase Thew 2012-07-09 12:58:55 +00:00
parent 7427df0fcf
commit 84dc3eb214
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=300670

View File

@ -15,14 +15,23 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= bsdkaffee@gmail.com
COMMENT= Outgoing SMTP mail processor
LICENSE= GPLv3
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
USE_RC_SUBR= anubis
USE_AUTOTOOLS= aclocal autoheader autoconf automake
ACLOCAL_ARGS= -I m4 -I am
AUTOMAKE_ARGS= --force
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
MAN1= anubis.1
INFO= anubis
PORTEXAMPLES= 1anubisrc 2anubisrc
@ -31,100 +40,81 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
OPTIONS= NLS "Native language support" on \
GUILE "Guile support" on \
GPGME "GPG support via gpgme" on \
GNUTLS "GNU TLS support" on \
GSASL "GSASL support (required for databases)" on \
GDBM "GDBM database support" off \
MYSQL "MySQL database support" off \
PGSQL "PostgreSQL database support" off \
PCRE "Perl-style regular expressions" off \
PAM "PAM support" off \
SOCKS "SOCKS proxy support" off \
TCPWRAP "TCP wrappers" off
.include <bsd.port.options.mk>
# Default requirement for anubis rc script
_REQUIRE= mail
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
.if ${PORT_OPTIONS:MNLS}
USE_ICONV= yes
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if defined(WITHOUT_GUILE)
CONFIGURE_ARGS+=--without-guile
PLIST_SUB+= GUILE="@comment "
.else
.if ${PORT_OPTIONS:MGUILE}
LIB_DEPENDS+= guile:${PORTSDIR}/lang/guile
PORTEXAMPLES+= anubis.scm anubisrc.guile
PLIST_SUB+= GUILE=""
.else
CONFIGURE_ARGS+=--without-guile
PLIST_SUB+= GUILE="@comment "
.endif
.if defined(WITHOUT_GPGME)
.if ${PORT_OPTIONS:MGPGME}
LIB_DEPENDS+= gpgme:${PORTSDIR}/security/gpgme
.else
CONFIGURE_ARGS+=--without-gpgme
.else
LIB_DEPENDS+= gpgme.19:${PORTSDIR}/security/gpgme
.endif
.if defined(WITHOUT_GNUTLS)
.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
.else
CONFIGURE_ARGS+=--without-gnutls
.else
LIB_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls
.endif
.if defined(WITH_GDBM)
.undef WITHOUT_GSASL
WITH_GSASL= yes
.if ${PORT_OPTIONS:MGSASL} || ${PORT_OPTIONS:MGDBM} || ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL}
LIB_DEPENDS+= gsasl:${PORTSDIR}/security/gsasl
PLIST_SUB+= GSASL=""
.else
CONFIGURE_ARGS+=--without-gsasl
PLIST_SUB+= GSASL="@comment "
.endif
.if ${PORT_OPTIONS:MGDBM}
LIB_DEPENDS+= gdbm:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+=--with-gdbm
.endif
.if defined(WITH_MYSQL)
.undef WITHOUT_GSASL
WITH_GSASL= yes
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
CONFIGURE_ARGS+=--with-mysql
_REQUIRE+= mysql
.endif
.if defined(WITH_PGSQL)
.undef WITHOUT_GSASL
WITH_GSASL= yes
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
CONFIGURE_ARGS+=--with-postgres
_REQUIRE+= postgresql
.endif
.if defined(WITHOUT_GSASL)
CONFIGURE_ARGS+=--without-gsasl
PLIST_SUB+= GSASL="@comment "
.else
LIB_DEPENDS+= gsasl.16:${PORTSDIR}/security/gsasl
PLIST_SUB+= GSASL=""
.endif
.if defined(WITH_PCRE)
.if ${PORT_OPTIONS:MPCRE}
LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre
CONFIGURE_ARGS+=--with-pcre
.endif
.if defined(WITH_PAM) && exists(/usr/lib/libpam.so)
.if ${PORT_OPTIONS:MPAM} && exists(/usr/lib/libpam.so)
CONFIGURE_ARGS+=--with-pam
PORTEXAMPLES+= pam
.endif
.if defined(WITH_TCPWRAP) && exists(/usr/include/tcpd.h)
.if ${PORT_OPTIONS:MLIBWRAP} && exists(/usr/include/tcpd.h)
CONFIGURE_ARGS+=--with-tcp-wrappers
.endif
.if defined(WITH_SOCKS)
.if ${PORT_OPTIONS:MSOCKS}
CONFIGURE_ARGS+=--with-socks-proxy
.endif
@ -133,18 +123,18 @@ SUB_LIST+= REQUIRE="${_REQUIRE}"
post-patch:
@${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/src/headers.h
.if !defined(NOPORTEXAMPLES)
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*rc ${EXAMPLESDIR}
.if defined(WITH_GUILE)
. if ${PORT_OPTIONS:MGUILE}
cd ${WRKSRC}/examples && \
${INSTALL_DATA} anubis.scm anubisrc.guile ${EXAMPLESDIR}
.endif
.if defined(WITH_PAM)
. endif
. if ${PORT_OPTIONS:MPAM}
@${MKDIR} ${EXAMPLESDIR}/pam
${INSTALL_DATA} ${WRKSRC}/examples/pam/anubis* ${EXAMPLESDIR}/pam
.endif
. endif
.endif
.include <bsd.port.mk>