summaryrefslogtreecommitdiff
path: root/security/PAM/buildlink3.mk
blob: eca8411f143d1f0efb0df68d755287287b199511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $NetBSD: buildlink3.mk,v 1.10 2004/02/12 02:35:07 jlam Exp $

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH}+
PAM_BUILDLINK3_MK:=	${PAM_BUILDLINK3_MK}+

.include "../../mk/bsd.prefs.mk"

.if !empty(PAM_BUILDLINK3_MK:M+)
BUILDLINK_PACKAGES+=		pam
BUILDLINK_DEPENDS.pam+=		PAM>=0.75
BUILDLINK_PKGSRCDIR.pam?=	../../security/PAM
.endif	# PAM_BUILDLINK3_MK

BUILDLINK_CHECK_BUILTIN.pam?=	NO

.if !defined(BUILDLINK_IS_BUILTIN.pam)
BUILDLINK_IS_BUILTIN.pam=	NO
.  if exists(/usr/include/security/pam_appl.h)
BUILDLINK_IS_BUILTIN.pam=	YES
.  endif
.endif

.if !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam=	YES
.else
BUILDLINK_USE_BUILTIN.pam=	NO
.endif

.if !empty(PREFER_NATIVE:M[yY][eE][sS]) && \
    !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam=	YES
.endif
.if !empty(PREFER_PKGSRC:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam=	NO
.endif
.if !empty(PREFER_NATIVE:Mpam) && \
    !empty(BUILDLINK_IS_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam=	YES
.endif
.if !empty(PREFER_PKGSRC:Mpam)
BUILDLINK_USE_BUILTIN.pam=	NO
.endif

.if !empty(BUILDLINK_CHECK_BUILTIN.pam:M[yY][eE][sS])
BUILDLINK_USE_BUILTIN.pam=	YES
.endif

.if !empty(BUILDLINK_USE_BUILTIN.pam:M[nN][oO])
.  if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=	pam
.  endif
.endif

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH:S/+$//}