From owner-svn-ports-all@FreeBSD.ORG Wed Oct 10 18:45:26 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB34D7DB; Wed, 10 Oct 2012 18:45:26 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9BECF8FC12; Wed, 10 Oct 2012 18:45:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9AIjQAU080638; Wed, 10 Oct 2012 18:45:26 GMT (envelope-from glarkin@svn.freebsd.org) Received: (from glarkin@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9AIjQV2080636; Wed, 10 Oct 2012 18:45:26 GMT (envelope-from glarkin@svn.freebsd.org) Message-Id: <201210101845.q9AIjQV2080636@svn.freebsd.org> From: Greg Larkin Date: Wed, 10 Oct 2012 18:45:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r305678 - head/mail/ezmlm-idx X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2012 18:45:26 -0000 Author: glarkin Date: Wed Oct 10 18:45:26 2012 New Revision: 305678 URL: http://svn.freebsd.org/changeset/ports/305678 Log: - Converted to OptionsNG Modified: head/mail/ezmlm-idx/Makefile Modified: head/mail/ezmlm-idx/Makefile ============================================================================== --- head/mail/ezmlm-idx/Makefile Wed Oct 10 18:20:21 2012 (r305677) +++ head/mail/ezmlm-idx/Makefile Wed Oct 10 18:45:26 2012 (r305678) @@ -25,28 +25,35 @@ CONFLICTS= ezmlm-0.* SUB_FILES= pkg-message -OPTIONS= MYSQL "Build MySQL extensions" off \ - PGSQL "Build PostgreSQL extensions" off \ - SQLITE "Build SQLite3 extensions" off +OPTIONS_DEFINE= DB DOCS +OPTIONS_SINGLE= DB +OPTIONS_SINGLE_DB= MYSQL PGSQL SQLITE +DB_DESC= Enable database extension support +MYSQL_DESC= Build the MySQL extension +PGSQL_DESC= Build the PostgreSQL extension +SQLITE_DESC= Build the SQLite3 extension -.include +.include ALL_TARGET= it -# If WITH_MYSQL is defined, build with MySQL extensions -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes EXTRACT_INCLUDE+= -I${LOCALBASE}/include/mysql EXTRACT_LIB+= -L${LOCALBASE}/lib/mysql -lmysqlclient -lm ALL_TARGET+= mysql PLIST_SUB+= MYSQL="" PGSQL="@comment " SQLITE="@comment " -.elif defined(WITH_PGSQL) +.endif + +.if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes EXTRACT_INCLUDE+= -I${LOCALBASE}/include EXTRACT_LIB+= -L${LOCALBASE}/lib -lpq -lcrypt ALL_TARGET+= pgsql PLIST_SUB+= MYSQL="@comment " PGSQL="" SQLITE="@comment " -.elif defined(WITH_SQLITE) +.endif + +.if ${PORT_OPTIONS:MSQLITE} USE_SQLITE= yes EXTRACT_INCLUDE+= -I${LOCALBASE}/include EXTRACT_LIB+= -L${LOCALBASE}/lib -lsqlite3 @@ -100,10 +107,10 @@ post-install: .for file in ${CONFIG} @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/etc/ezmlm/${file}.sample .endfor -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} -.include +.include