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"
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.Xcomposite
)
16 . if empty
(H_XCOMPOSITE
:M__nonexistent__
)
17 IS_BUILTIN.Xcomposite
= yes
19 IS_BUILTIN.Xcomposite
= no
22 MAKEVARS
+= IS_BUILTIN.Xcomposite
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.Xcomposite
)
29 . if
${PREFER.Xcomposite
} == "pkgsrc"
30 USE_BUILTIN.Xcomposite
= no
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 \
47 .
endif # PREFER.Xcomposite
49 MAKEVARS
+= USE_BUILTIN.Xcomposite
51 .
include "../../mk/x11.builtin.mk"