Add files from parent branch HEAD:
[pkgsrc.git] / security / cyrus-sasl / Makefile.common
1 # $NetBSD: Makefile.common,v 1.12 2008/01/22 10:56:16 obache Exp $
2 #
3 # This file is currently included by:
4 #
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
16 #
17 # This Makefile fragment should be included _below_ any SASL_PLUGIN
18 # definition and _above_ any CONFIGURE_ARGS definitions.
19
20 DISTNAME=       cyrus-sasl-2.1.22
21 CATEGORIES=     security
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/
26
27 MAINTAINER=     pkgsrc-users@NetBSD.org
28 HOMEPAGE=       http://asg.web.cmu.edu/sasl/
29
30 DISTINFO_FILE=          ${.CURDIR}/../cyrus-sasl/distinfo
31 PATCHDIR=               ${.CURDIR}/../cyrus-sasl/patches
32
33 .include "../../mk/bsd.prefs.mk"
34
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
40 .endif
41
42 GNU_CONFIGURE=          yes
43 USE_TOOLS+=             gmake
44
45 USE_LIBTOOL=            yes
46 MAKE_ENV+=              SHLIBTOOL=${SHLIBTOOL:Q}
47
48 DOCDIR=                 ${PREFIX}/share/doc/cyrus-sasl
49 PLUGINDIR=              ${PREFIX}/lib/sasl2
50
51 CONFIGURE_ARGS+=        --with-plugindir=${PLUGINDIR:Q}
52 CONFIGURE_ARGS+=        --disable-java
53
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
74
75 # Left here as reference for patch makers...
76 # clean up a bit to help package maintainer produce patch files
77 #
78 #USE_TOOLS+=    automake
79 #
80 #post-extract:
81 #       ${_PKG_SILENT}${_PKG_DEBUG}                                     \
82 #       ${FIND} ${WRKSRC} -type f -name "*.orig" -print | ${XARGS} ${RM} -f
83 #
84 #pre-configure:
85 #       cd ${WRKSRC};                                                   \
86 #       aclocal -I cmulocal -I config;                                  \
87 #       autoheader;                                                     \
88 #       automake -a --gnu -i ;                                          \
89 #       autoconf