1 # $NetBSD: builtin.mk,v 1.1 2007/12/17 14:24:06 tron Exp $
5 BUILTIN_FIND_FILES_VAR
:= H_SM
6 BUILTIN_FIND_FILES.H_SM
= ${X11BASE}/include/X11
/SM
/SM.h
8 .
include "../../mk/buildlink3/bsd.builtin.mk"
11 ### Determine if there is a built-in implementation of the package and
12 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
14 .if
${X11BASE} == ${LOCALBASE}
16 .elif
!defined
(IS_BUILTIN.libSM
)
18 . if empty
(H_SM
:M__nonexistent__
)
22 MAKEVARS
+= IS_BUILTIN.libSM
25 ### Determine whether we should use the built-in implementation if it
26 ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
28 .if
!defined
(USE_BUILTIN.libSM
)
29 . if
${PREFER.libSM
} == "pkgsrc"
32 USE_BUILTIN.libSM
= ${IS_BUILTIN.libSM
}
33 . if defined
(BUILTIN_PKG.libSM
) && \
34 !empty
(IS_BUILTIN.libSM
:M
[yY
][eE
][sS
])
35 USE_BUILTIN.libSM
= yes
36 . for _dep_ in
${BUILDLINK_API_DEPENDS.libSM
}
37 . if
!empty
(USE_BUILTIN.libSM
:M
[yY
][eE
][sS
])
39 if
${PKG_ADMIN} pmatch
${_dep_
:Q
} ${BUILTIN_PKG.libSM
:Q
}; then \
47 .
endif # PREFER.libSM
49 MAKEVARS
+= USE_BUILTIN.libSM
51 .
include "../../mk/x11.builtin.mk"