1 # $NetBSD: solaris-pam.builtin.mk,v 1.3 2005/06/01 18:03:06 jlam Exp $
3 BUILTIN_PKG
:= solaris-pam
5 BUILTIN_FIND_FILES_VAR
:= H_SOLARIS_PAM
6 BUILTIN_FIND_FILES.H_SOLARIS_PAM
= /usr
/include/security
/pam_appl.h
7 BUILTIN_FIND_GREP.H_SOLARIS_PAM
= Copyright.
*Sun Microsystems
9 .
include "../../mk/buildlink3/bsd.builtin.mk"
12 ### Determine if there is a built-in implementation of the package and
13 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
15 .if
!defined
(IS_BUILTIN.solaris-pam
)
16 IS_BUILTIN.solaris-pam
= no
17 . if empty
(H_SOLARIS_PAM
:M
${LOCALBASE}/*) && exists
(${H_SOLARIS_PAM})
18 IS_BUILTIN.solaris-pam
= yes
21 MAKEVARS
+= IS_BUILTIN.solaris-pam
24 ### Determine whether we should use the built-in implementation if it
25 ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
27 .if
!defined
(USE_BUILTIN.solaris-pam
)
28 . if
${PREFER.solaris-pam
} == "pkgsrc"
29 USE_BUILTIN.solaris-pam
= no
31 USE_BUILTIN.solaris-pam
= ${IS_BUILTIN.solaris-pam
}
32 . if defined
(BUILTIN_PKG.solaris-pam
) && \
33 !empty
(IS_BUILTIN.solaris-pam
:M
[yY
][eE
][sS
])
34 USE_BUILTIN.solaris-pam
= yes
35 . for _dep_ in
${BUILDLINK_API_DEPENDS.solaris-pam
}
36 . if
!empty
(USE_BUILTIN.solaris-pam
:M
[yY
][eE
][sS
])
37 USE_BUILTIN.solaris-pam
!= \
38 if
${PKG_ADMIN} pmatch
${_dep_
:Q
} ${BUILTIN_PKG.solaris-pam
:Q
}; then \
46 .
endif # PREFER.solaris-pam
48 MAKEVARS
+= USE_BUILTIN.solaris-pam