head	1.2;
access;
symbols
	pkgsrc-2013Q2:1.2.0.48
	pkgsrc-2013Q2-base:1.2
	pkgsrc-2012Q4:1.2.0.46
	pkgsrc-2012Q4-base:1.2
	pkgsrc-2011Q4:1.2.0.44
	pkgsrc-2011Q4-base:1.2
	pkgsrc-2011Q2:1.2.0.42
	pkgsrc-2011Q2-base:1.2
	pkgsrc-2009Q4:1.2.0.40
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2008Q4:1.2.0.38
	pkgsrc-2008Q4-base:1.2
	pkgsrc-2008Q3:1.2.0.36
	pkgsrc-2008Q3-base:1.2
	cube-native-xorg:1.2.0.34
	cube-native-xorg-base:1.2
	pkgsrc-2008Q2:1.2.0.32
	pkgsrc-2008Q2-base:1.2
	pkgsrc-2008Q1:1.2.0.30
	pkgsrc-2008Q1-base:1.2
	pkgsrc-2007Q4:1.2.0.28
	pkgsrc-2007Q4-base:1.2
	pkgsrc-2007Q3:1.2.0.26
	pkgsrc-2007Q3-base:1.2
	pkgsrc-2007Q2:1.2.0.24
	pkgsrc-2007Q2-base:1.2
	pkgsrc-2007Q1:1.2.0.22
	pkgsrc-2007Q1-base:1.2
	pkgsrc-2006Q4:1.2.0.20
	pkgsrc-2006Q4-base:1.2
	pkgsrc-2006Q3:1.2.0.18
	pkgsrc-2006Q3-base:1.2
	pkgsrc-2006Q2:1.2.0.16
	pkgsrc-2006Q2-base:1.2
	pkgsrc-2006Q1:1.2.0.14
	pkgsrc-2006Q1-base:1.2
	pkgsrc-2005Q4:1.2.0.12
	pkgsrc-2005Q4-base:1.2
	pkgsrc-2005Q3:1.2.0.10
	pkgsrc-2005Q3-base:1.2
	pkgsrc-2005Q2:1.2.0.8
	pkgsrc-2005Q2-base:1.2
	pkgsrc-2005Q1:1.2.0.6
	pkgsrc-2005Q1-base:1.2
	pkgsrc-2004Q4:1.2.0.4
	pkgsrc-2004Q4-base:1.2
	pkgsrc-2004Q3:1.2.0.2
	pkgsrc-2004Q3-base:1.2;
locks; strict;
comment	@# @;


1.2
date	2004.08.05.03.04.33;	author jlam;	state dead;
branches;
next	1.1;

1.1
date	2004.07.31.05.53.44;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Rename Makefile.options to options.mk in the packages that I maintain.
This follows the example of the mail/dovecot package, as suggested by
<schmonz>.
@
text
@# $NetBSD: Makefile.options,v 1.1 2004/07/31 05:53:44 jlam Exp $

# Global and legacy options
#
# XXX Support for the following variables will be removed after the
# XXX pkgsrc-2004Q3 branch is released:
# XXX
# XXX	POSTFIX_USE_INET6	POSTFIX_USE_TLS
# XXX	POSTFIX_USE_PCRE	POSTFIX_USE_MYSQL
# XXX	POSTFIX_USE_PGSQL	POSTFIX_OPTIONS
# XXX	POSTFIX_USE_SASL_AUTH
#
.if defined(USE_SASL) || defined(USE_SASL2) || defined(USE_OPENLDAP) || \
    defined(POSTFIX_USE_INET6) || defined(POSTFIX_USE_TLS) || \
    defined(POSTFIX_USE_PCRE) || defined(POSTFIX_USE_MYSQL) || \
    defined(POSTFIX_USE_PGSQL) || defined(POSTFIX_USE_SASL_AUTH) || \
    defined(POSTFIX_OPTIONS)
.  if !defined(PKG_OPTIONS.postfix)
.    if defined(USE_SASL) && !empty(USE_SASL:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	sasl
.    endif
.    if defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	sasl
.    endif
.    if defined(USE_OPENLDAP) && !empty(USE_OPENLDAP:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	ldap
.    endif
.    if defined(POSTFIX_USE_INET6) && !empty(POSTFIX_USE_INET6:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	inet6
.    endif
.    if defined(POSTFIX_USE_TLS) && !empty(POSTFIX_USE_TLS:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	tls
.    endif
.    if defined(POSTFIX_USE_PCRE) && !empty(POSTFIX_USE_PCRE:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	pcre 
.    endif
.    if defined(POSTFIX_USE_MYSQL) && !empty(POSTFIX_USE_MYSQL:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	mysql
.    endif
.    if defined(POSTFIX_USE_PGSQL) && !empty(POSTFIX_USE_PGSQL:M[yY][eE][sS])
PKG_OPTIONS.postfix+=	pgsql
.    endif
.    if defined(POSTFIX_USE_SASL_AUTH) && defined(POSTFIX_USE_SASL_AUTH)
PKG_OPTIONS.postfix+=	sasl
.    endif
.    if defined(POSTFIX_OPTIONS)
PKG_OPTIONS.postfix=	${POSTFIX_OPTIONS}
.    endif
.  endif
.endif

PKG_OPTIONS_VAR=	PKG_OPTIONS.postfix
#PKG_SUPPORTED_OPTIONS=	inet6 ldap mysql mysql4 pcre pgsql sasl tls
PKG_SUPPORTED_OPTIONS=	ldap mysql mysql4 pcre pgsql sasl
.include "../../mk/bsd.options.mk"

# ###
# ### IPv6 and STARTTLS support (http://www.ipnet6.org/postfix/)
# ###
# .if !empty(PKG_OPTIONS:Minet6) || !empty(PKG_OPTIONS:Mtls)
# .  include "../../security/openssl/buildlink3.mk"
# PATCHFILES+=		tls+ipv6-1.25-pf-2.2-20040616.patch.gz
# PATCH_SITES+=		ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.25/
# PATCH_DIST_STRIP=	-p1
# 
# CCARGS+=	-DHAS_SSL
# AUXLIBS+=	-L${BUILDLINK_PREFIX.openssl}/lib			\
# 		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib	\
# 		-lssl -lcrypto
# 
# PLIST_SRC+=	${PKGDIR}/PLIST.tls
# MESSAGE_SRC+=	${PKGDIR}/MESSAGE.tls
# .endif

###
### Support "pcre" map type for regular expressions.
###
.if !empty(PKG_OPTIONS:Mpcre)
.  include "../../devel/pcre/buildlink3.mk"
CCARGS+=	-DHAS_PCRE
AUXLIBS+=	-L${BUILDLINK_PREFIX.pcre}/lib				\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.pcre}/lib		\
		-lpcre
.else
CCARGS+=	-DNO_PCRE
.endif

###
### Support LDAP directories for table lookups.
###
.if !empty(PKG_OPTIONS:Mldap)
.  include "../../databases/openldap/buildlink3.mk"
CCARGS+=	-DHAS_LDAP
AUXLIBS+=	-L${BUILDLINK_PREFIX.openldap}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.openldap}/lib	\
		-lldap -llber
.  if ${OPSYS} != "Linux"
.    include "../../databases/db4/buildlink3.mk"
CCARGS+=	-I${BUILDLINK_PREFIX.db4}/include/db4
AUXLIBS+=	-L${BUILDLINK_PREFIX.db4}/lib				\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db4}/lib		\
		-ldb4
.  endif
.endif

###
### Support using a MySQL database server for table lookups.
###
.if !empty(PKG_OPTIONS:Mmysql4)
.  include "../../databases/mysql4-client/buildlink3.mk"
CCARGS+=	-DHAS_MYSQL
CCARGS+=	`${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config --include`
AUXLIBS+=	`${BUILDLINK_PREFIX.mysql-client}/bin/mysql_config --libs`
.elif !empty(PKG_OPTIONS:Mmysql)
.  include "../../databases/mysql-client/buildlink3.mk"
CCARGS+=	-DHAS_MYSQL -I${BUILDLINK_PREFIX.mysql-client}/include/mysql
AUXLIBS+=	-L${BUILDLINK_PREFIX.mysql-client}/lib/mysql		\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib/mysql \
		-lmysqlclient -lz -lm
.endif

###
### Support using a PostgreSQL database server for table lookups.
###
.if !empty(PKG_OPTIONS:Mpgsql)
.  include "../../mk/pgsql.buildlink3.mk"
.  include "../../security/openssl/buildlink3.mk"
CCARGS+=	-DHAS_PGSQL -I${PGSQL_PREFIX}/include/pgsql
AUXLIBS+=	-L${PGSQL_PREFIX}/lib -lpq \
		-L${BUILDLINK_PREFIX.openssl}/lib -lcrypt -lssl -lcrypto
.endif

###
### SASL support for SMTP authentication.  If neither SASLv1 or SASLv2 is
### explicitly specified, then build with SASLv2.
###
.if !empty(PKG_OPTIONS:Msasl)
.  if !defined(USE_SASL2) && !defined(USE_SASL)
.    include "../../security/cyrus-sasl2/buildlink3.mk"
SASLLIBDIR=	${PREFIX}/lib/sasl2
PWCHECK_METHOD=	auxprop
CCARGS+=	-DUSE_SASL2_AUTH
AUXLIBS+=	-L${BUILDLINK_PREFIX.cyrus-sasl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib	\
		-lsasl2
.  elif defined(USE_SASL2) && !empty(USE_SASL2:M[yY][eE][sS])
.    include "../../security/cyrus-sasl2/buildlink3.mk"
SASLLIBDIR=	${PREFIX}/lib/sasl2
PWCHECK_METHOD=	auxprop
CCARGS+=	-DUSE_SASL2_AUTH
AUXLIBS+=	-L${BUILDLINK_PREFIX.cyrus-sasl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib	\
		-lsasl2
.  elif defined(USE_SASL) && !empty(USE_SASL:M[yY][eE][sS])
.    include "../../security/cyrus-sasl/buildlink3.mk"
SASLLIBDIR=	${PREFIX}/lib/sasl
PWCHECK_METHOD=	sasldb
CCARGS+=	-DUSE_SASL_AUTH
AUXLIBS+=	-L${BUILDLINK_PREFIX.cyrus-sasl}/lib			\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.cyrus-sasl}/lib	\
		-lsasl
.  endif
PLIST_SRC+=	${PKGDIR}/PLIST.sasl
MESSAGE_SRC+=	${PKGDIR}/MESSAGE.sasl
MESSAGE_SUBST+=	PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
MESSAGE_SUBST+=	SASLLIBDIR=${SASLLIBDIR}
.endif

.if ${OPSYS} == "Linux"
.  include "../../databases/db/buildlink3.mk"
CCARGS+=	-I${BUILDLINK_PREFIX.db2}/include/db2
AUXLIBS+=	-L${BUILDLINK_PREFIX.db2}/lib				\
		-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db2}/lib		\
		-ldb2
.endif
@


1.1
log
@Minimize diffs with pkgsrc/mail/postfix to simplify maintenance of this
package.
@
text
@d1 1
a1 1
# $NetBSD$
@

