pkgsrc/security/cyrus-sasl/buildlink3.mk
jlam 1b5734f517 Create a pam.buildlink3.mk file that is used by PAM-using packages.
It includes the correct buildlink3.mk file from either Linux-PAM
(security/PAM) or OpenPAM (security/openpam) and eventually will
support solaris-pam.  pam.buildlink3.mk will:

	* set PAMBASE to the base directory of the PAM files;
	* set PAM_TYPE to the PAM implementation used.

There are two variables that can be used to tweak the selection of
the PAM implementation:

PAM_DEFAULT is a user-settable variable whose value is the default
	PAM implementation to use.

PAM_ACCEPTED is a package-settable list of PAM implementations
	that may be used by the package.

Modify most packages that include PAM/buildlink3.mk to include
pam.buildlink3.mk instead.
2005-01-14 05:15:39 +00:00

30 lines
887 B
Makefile

# $NetBSD: buildlink3.mk,v 1.6 2005/01/14 05:15:39 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
CYRUS_SASL_BUILDLINK3_MK:= ${CYRUS_SASL_BUILDLINK3_MK}+
.include "../../mk/bsd.prefs.mk"
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= cyrus-sasl
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ncyrus-sasl}
BUILDLINK_PACKAGES+= cyrus-sasl
.if !empty(CYRUS_SASL_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.cyrus-sasl+= cyrus-sasl>=1.5.27nb3
BUILDLINK_RECOMMENDED.cyrus-sasl+= cyrus-sasl>=1.5.27nb7
BUILDLINK_PKGSRCDIR.cyrus-sasl?= ../../security/cyrus-sasl
.endif # CYRUS_SASL_BUILDLINK3_MK
PKG_OPTIONS.cyrus-sasl?= ${PKG_DEFAULT_OPTIONS}
.if !empty(PKG_OPTIONS.cyrus-sasl:MPAM)
. include "../../mk/pam.buildlink3.mk"
.endif
# Cyrus SASL mechanisms are shared modules loaded via dlopen().
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}