1 # $NetBSD: Makefile.common,v 1.12 2008/01/22 10:56:16 obache Exp $
3 # This file is currently included by:
5 # security/cyrus-sasl/Makefile
6 # security/cy2-anonymous/Makefile
7 # security/cy2-crammd5/Makefile
8 # security/cy2-digestmd5/Makefile
9 # security/cy2-gssapi/Makefile
10 # security/cy2-ldapdb/Makefile
11 # security/cy2-login/Makefile
12 # security/cy2-ntlm/Makefile
13 # security/cy2-otp/Makefile
14 # security/cy2-plain/Makefile
15 # security/cy2-sql/Makefile
17 # This Makefile fragment should be included _below_ any SASL_PLUGIN
18 # definition and _above_ any CONFIGURE_ARGS definitions.
20 DISTNAME= cyrus-sasl-2.1.22
22 MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
23 ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/ \
24 http://ftp.andrew.cmu.edu/pub/cyrus-mail/ \
25 http://ftp.andrew.cmu.edu/pub/cyrus-mail/OLD-VERSIONS/sasl/
27 MAINTAINER= pkgsrc-users@NetBSD.org
28 HOMEPAGE= http://asg.web.cmu.edu/sasl/
30 DISTINFO_FILE= ${.CURDIR}/../cyrus-sasl/distinfo
31 PATCHDIR= ${.CURDIR}/../cyrus-sasl/patches
33 .include "../../mk/bsd.prefs.mk"
35 .if defined(SASL_PLUGIN) && !empty(SASL_PLUGIN:M[yY][eE][sS])
36 BUILDLINK_ABI_DEPENDS.cyrus-sasl+= \
37 cyrus-sasl>=${PKGVERSION:C/nb[0-9]*$//}
38 . include "../../security/cyrus-sasl/buildlink3.mk"
39 CPPFLAGS+= -I${BUILDLINK_PREFIX.cyrus-sasl}/include/sasl
46 MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q}
48 DOCDIR= ${PREFIX}/share/doc/cyrus-sasl
49 PLUGINDIR= ${PREFIX}/lib/sasl2
51 CONFIGURE_ARGS+= --with-plugindir=${PLUGINDIR:Q}
52 CONFIGURE_ARGS+= --disable-java
54 # Authentication mechanisms
55 CONFIGURE_ARGS+= --disable-anon # ANONYMOUS
56 CONFIGURE_ARGS+= --disable-checkapop # CHECKAPOP
57 CONFIGURE_ARGS+= --disable-cram # CRAM-MD5
58 CONFIGURE_ARGS+= --disable-digest # DIGEST-MD5
59 CONFIGURE_ARGS+= --disable-gssapi # GSSAPI
60 CONFIGURE_ARGS+= --disable-krb4 # KERBEROS_V4
61 CONFIGURE_ARGS+= --disable-ldapdb # LDAP
62 CONFIGURE_ARGS+= --disable-login # LOGIN
63 CONFIGURE_ARGS+= --disable-ntlm # NTLM
64 CONFIGURE_ARGS+= --disable-otp # OTP
65 CONFIGURE_ARGS+= --disable-passdss # PASSDSS
66 CONFIGURE_ARGS+= --disable-plain # PLAIN
67 CONFIGURE_ARGS+= --disable-sql # SQL
68 CONFIGURE_ARGS+= --disable-srp # SRP
69 CONFIGURE_ARGS+= --disable-srp-setpass
70 CONFIGURE_ARGS+= --with-dblib=none
71 CONFIGURE_ARGS+= --without-openssl
72 CONFIGURE_ARGS+= --without-pam
73 CONFIGURE_ARGS+= --without-saslauthd
75 # Left here as reference for patch makers...
76 # clean up a bit to help package maintainer produce patch files
81 # ${_PKG_SILENT}${_PKG_DEBUG} \
82 # ${FIND} ${WRKSRC} -type f -name "*.orig" -print | ${XARGS} ${RM} -f
86 # aclocal -I cmulocal -I config; \
88 # automake -a --gnu -i ; \