Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / Xcomposite / builtin.mk
blob544508e420163c204d1b85737fe775ec4de10a76
1 # $NetBSD: builtin.mk,v 1.13 2008/10/05 21:36:32 cube Exp $
3 BUILTIN_PKG:= Xcomposite
5 BUILTIN_FIND_FILES_VAR:= H_XCOMPOSITE
6 BUILTIN_FIND_FILES.H_XCOMPOSITE= \
7 ${X11BASE}/include/X11/extensions/Xcomposite.h
9 .include "../../mk/buildlink3/bsd.builtin.mk"
11 ###
12 ### Determine if there is a built-in implementation of the package and
13 ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
14 ###
15 .if !defined(IS_BUILTIN.Xcomposite)
16 . if empty(H_XCOMPOSITE:M__nonexistent__)
17 IS_BUILTIN.Xcomposite= yes
18 . else
19 IS_BUILTIN.Xcomposite= no
20 . endif
21 .endif
22 MAKEVARS+= IS_BUILTIN.Xcomposite
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.Xcomposite)
29 . if ${PREFER.Xcomposite} == "pkgsrc"
30 USE_BUILTIN.Xcomposite= no
31 . else
32 USE_BUILTIN.Xcomposite= ${IS_BUILTIN.Xcomposite}
33 . if defined(BUILTIN_PKG.Xcomposite) && \
34 !empty(IS_BUILTIN.Xcomposite:M[yY][eE][sS])
35 USE_BUILTIN.Xcomposite= yes
36 . for _dep_ in ${BUILDLINK_API_DEPENDS.Xcomposite}
37 . if !empty(USE_BUILTIN.Xcomposite:M[yY][eE][sS])
38 USE_BUILTIN.Xcomposite!= \
39 if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.Xcomposite:Q}; then \
40 ${ECHO} yes; \
41 else \
42 ${ECHO} no; \
44 . endif
45 . endfor
46 . endif
47 . endif # PREFER.Xcomposite
48 .endif
49 MAKEVARS+= USE_BUILTIN.Xcomposite
51 .include "../../mk/x11.builtin.mk"