pkgsrc/mail/ezmlm-idx/options.mk
schmonz a48a08d4c7 Update to 0.43. From the changelog:
-Added per-post sender confirmation patch from Tullio Andreatta.
 See the documentation for ezmlm-make -y for details.
-Changed all example domain names in text files to the RFC 2606 mandated
 example.com domain name.
-Several documentation and comment fixes.  Thanks Tullio Andreatta.
-Added conf-sub control file, used to choose which subscriber
 mechanism to use.  This replaces the "make std/mysql/pgsql" mechanism.
 Adapted from patch by Tullio Andreatta.
-Got rid of the frivolous uses of /bin/sh to exec ezmlm-send.
-Always reject bounce messages in ezmlm-reject.
-Substitute <#r#> in (un)subscribe confirm messages with just the local
part of the reply address (for web-based confirmation).
2004-12-21 03:42:25 +00:00

44 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.5 2004/12/21 03:42:25 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ezmlm-idx
PKG_SUPPORTED_OPTIONS= mysql pgsql
.include "../../mk/bsd.options.mk"
###
### We can't compile support for both MySQL and PostgreSQL.
###
.if !empty(PKG_OPTIONS:Mmysql) && !empty(PKG_OPTIONS:Mpgsql)
PKG_FAIL_REASON+= "MySQL and PostgreSQL cannot both be compiled in." \
"Please change ${PKG_OPTIONS_VAR} to one or the other."
.endif
###
### MySQL support
###
.if !empty(PKG_OPTIONS:Mmysql)
. include "../../mk/mysql.buildlink3.mk"
. if !target(post-configure)
post-configure:
${ECHO} -I${BUILDLINK_PREFIX.mysql-client}/include/mysql > ${WRKSRC}/sub_mysql/conf-sqlcc
${ECHO} -L${BUILDLINK_PREFIX.mysql-client}/lib/mysql -Wl,-R${BUILDLINK_PREFIX.mysql-client}/lib/mysql -lmysqlclient > ${WRKSRC}/sub_mysql/conf-sqlld
${ECHO} mysql > ${WRKSRC}/conf-sub
. else
PKG_FAIL_REASON+= "mysql: can't define post-configure target"
. endif
.endif
###
### PostgreSQL support
###
.if !empty(PKG_OPTIONS:Mpgsql)
. include "../../mk/pgsql.buildlink3.mk"
. if !target(post-configure)
post-configure:
${ECHO} -I${PGSQL_PREFIX}/include > ${WRKSRC}/sub_pgsql/conf-sqlcc
${ECHO} -L${PGSQL_PREFIX}/lib -Wl,-R${PGSQL_PREFIX}/lib -lpq > ${WRKSRC}/sub_pgsql/conf-sqlld
${ECHO} pgsql > ${WRKSRC}/conf-sub
. else
PKG_FAIL_REASON+= "pgsql: can't define post-configure target"
. endif
.endif