Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / libSM / builtin.mk
blobf15db5f78212673f1c15d3e31e313c2efa2a6e42
1 # $NetBSD: builtin.mk,v 1.1 2007/12/17 14:24:06 tron Exp $
3 BUILTIN_PKG:= libSM
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"
10 ###
11 ### Determine if there is a built-in implementation of the package and
12 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
13 ###
14 .if ${X11BASE} == ${LOCALBASE}
15 IS_BUILTIN.libSM= no
16 .elif !defined(IS_BUILTIN.libSM)
17 IS_BUILTIN.libSM= no
18 . if empty(H_SM:M__nonexistent__)
19 IS_BUILTIN.libSM= yes
20 . endif
21 .endif
22 MAKEVARS+= IS_BUILTIN.libSM
24 ###
25 ### Determine whether we should use the built-in implementation if it
26 ### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
27 ###
28 .if !defined(USE_BUILTIN.libSM)
29 . if ${PREFER.libSM} == "pkgsrc"
30 USE_BUILTIN.libSM= no
31 . else
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])
38 USE_BUILTIN.libSM!= \
39 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libSM:Q}; then \
40 ${ECHO} yes; \
41 else \
42 ${ECHO} no; \
44 . endif
45 . endfor
46 . endif
47 . endif # PREFER.libSM
48 .endif
49 MAKEVARS+= USE_BUILTIN.libSM
51 .include "../../mk/x11.builtin.mk"