diff options
author | Greg Larkin <glarkin@FreeBSD.org> | 2012-10-10 18:45:26 +0000 |
---|---|---|
committer | Greg Larkin <glarkin@FreeBSD.org> | 2012-10-10 18:45:26 +0000 |
commit | df57fd844c436d436bfcaf146c55bbabf1d0f975 (patch) | |
tree | 3db99d2bbe2ebc1abe5afd0334794a3ffd7bea7a /mail/ezmlm-idx | |
parent | b7139dede39c54c4d5f376b66f08ce12bd8def9c (diff) | |
download | ports-df57fd844c436d436bfcaf146c55bbabf1d0f975.tar.gz ports-df57fd844c436d436bfcaf146c55bbabf1d0f975.zip |
Notes
Diffstat (limited to 'mail/ezmlm-idx')
-rw-r--r-- | mail/ezmlm-idx/Makefile | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/mail/ezmlm-idx/Makefile b/mail/ezmlm-idx/Makefile index 09d076a0e2c0..6884ab53d3a6 100644 --- a/mail/ezmlm-idx/Makefile +++ b/mail/ezmlm-idx/Makefile @@ -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 <bsd.port.pre.mk> +.include <bsd.port.options.mk> 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 <bsd.port.post.mk> +.include <bsd.port.mk> |