diff options
author | glarkin <glarkin@FreeBSD.org> | 2012-10-11 02:45:26 +0800 |
---|---|---|
committer | glarkin <glarkin@FreeBSD.org> | 2012-10-11 02:45:26 +0800 |
commit | b0825bd66de11ce58cb1fef3dd237eb10ff39abe (patch) | |
tree | 3db99d2bbe2ebc1abe5afd0334794a3ffd7bea7a /mail/ezmlm-idx | |
parent | c0d3a8e9fc65fdd741d0cf89a0708f85af360556 (diff) | |
download | freebsd-ports-gnome-b0825bd66de11ce58cb1fef3dd237eb10ff39abe.tar.gz freebsd-ports-gnome-b0825bd66de11ce58cb1fef3dd237eb10ff39abe.tar.zst freebsd-ports-gnome-b0825bd66de11ce58cb1fef3dd237eb10ff39abe.zip |
- Converted to OptionsNG
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> |