Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / libICE / builtin.mk
blob22d68ccf5560e56d7155554756f705880fefe295
1 # $NetBSD: builtin.mk,v 1.1 2007/12/17 13:27:29 tron Exp $
3 BUILTIN_PKG:= libICE
5 BUILTIN_FIND_FILES_VAR:= H_ICE
6 BUILTIN_FIND_FILES.H_ICE= ${X11BASE}/include/X11/ICE/ICE.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.libICE= no
16 .elif !defined(IS_BUILTIN.libICE)
17 IS_BUILTIN.libICE= no
18 . if empty(H_ICE:M__nonexistent__)
19 IS_BUILTIN.libICE= yes
20 . endif
21 .endif
22 MAKEVARS+= IS_BUILTIN.libICE
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.libICE)
29 . if ${PREFER.libICE} == "pkgsrc"
30 USE_BUILTIN.libICE= no
31 . else
32 USE_BUILTIN.libICE= ${IS_BUILTIN.libICE}
33 . if defined(BUILTIN_PKG.libICE) && \
34 !empty(IS_BUILTIN.libICE:M[yY][eE][sS])
35 USE_BUILTIN.libICE= yes
36 . for _dep_ in ${BUILDLINK_API_DEPENDS.libICE}
37 . if !empty(USE_BUILTIN.libICE:M[yY][eE][sS])
38 USE_BUILTIN.libICE!= \
39 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libICE:Q}; then \
40 ${ECHO} yes; \
41 else \
42 ${ECHO} no; \
44 . endif
45 . endfor
46 . endif
47 . endif # PREFER.libICE
48 .endif
49 MAKEVARS+= USE_BUILTIN.libICE
51 .include "../../mk/x11.builtin.mk"