Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2015 16:27:10 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r395509 - head/mail/dovecot2
Message-ID:  <201508281627.t7SGRASm062936@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Fri Aug 28 16:27:09 2015
New Revision: 395509
URL: https://svnweb.freebsd.org/changeset/ports/395509

Log:
  Use new _VARS option helpers. Still can't remove bsd.port.options.mk inclusion
  though.

Modified:
  head/mail/dovecot2/Makefile

Modified: head/mail/dovecot2/Makefile
==============================================================================
--- head/mail/dovecot2/Makefile	Fri Aug 28 16:21:24 2015	(r395508)
+++ head/mail/dovecot2/Makefile	Fri Aug 28 16:27:09 2015	(r395509)
@@ -95,7 +95,6 @@ KQUEUE_CONFIGURE_ON=	--with-ioloop=kqueu
 
 LDAP_USE=		OPENLDAP=yes
 LDAP_CONFIGURE_WITH=	ldap
-LDAP_RC_REQUIRE=	slapd
 
 LIBWRAP_CONFIGURE_WITH=	libwrap
 
@@ -106,11 +105,9 @@ LZ4_LIB_DEPENDS=	liblz4.so:${PORTSDIR}/a
 
 MYSQL_USE=		MYSQL=yes
 MYSQL_CONFIGURE_WITH=	mysql
-MYSQL_RC_REQUIRE=	mysql
 
 PGSQL_USES=		pgsql
 PGSQL_CONFIGURE_WITH=	pgsql
-PGSQL_RC_REQUIRE=	postgresql
 
 SOLR_CONFIGURE_WITH=	solr
 SOLR_BUILD_DEPENDS=	curl:${PORTSDIR}/ftp/curl
@@ -131,21 +128,21 @@ DOCS=		AUTHORS COPYING COPYING.LGPL COPY
 PORTDOCS=	*
 PORTEXAMPLES=	*
 
-.include <bsd.port.options.mk>
-
-CPPFLAGS+=	-I${LOCALBASE}/include -I${OPENSSLINC}
-LDFLAGS+=	-L${LOCALBASE}/lib -I${OPENSSLLIB}
-
 # Default requirement for dovecot rc script
 _REQUIRE=	LOGIN
 
-.for opt in ${PORT_OPTIONS}
-_REQUIRE+=	${${opt}_RC_REQUIRE}
-.endfor
+LDAP_VARS=	_REQUIRE+=slapd
+MYSQL_VARS=	_REQUIRE+=mysql
+PGSQL_VARS=	_REQUIRE+=postgresql
+
+.include <bsd.port.options.mk>
 
 SUB_LIST+=	REQUIRE="${_REQUIRE}"
 SUB_FILES+=	pkg-message
 
+CPPFLAGS+=	-I${LOCALBASE}/include -I${OPENSSLINC}
+LDFLAGS+=	-L${LOCALBASE}/lib -I${OPENSSLLIB}
+
 post-patch:
 	@${REINPLACE_CMD} -e 's,/etc/dovecot,${PREFIX}/etc/dovecot,g; \
 		s,sysconfdir=/etc,sysconfdir=${PREFIX}/etc,g' \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508281627.t7SGRASm062936>