| @@ -1,51 +1,7 @@ | | | @@ -1,51 +1,7 @@ |
1 | # $NetBSD: builtin.mk,v 1.2 2008/10/05 21:36:33 cube Exp $ | | 1 | # $NetBSD: builtin.mk,v 1.3 2014/02/06 05:51:54 obache Exp $ |
2 | | | 2 | |
3 | BUILTIN_PKG:= libXrender | | 3 | BUILTIN_PKG:= libXrender |
| | | 4 | PKGCONFIG_FILE.libXrender= ${X11BASE}/lib/pkgconfig/xrender.pc |
4 | | | 5 | |
5 | BUILTIN_FIND_FILES_VAR:= H_XRENDER | | 6 | .include "../../mk/buildlink3/pkgconfig-builtin.mk" |
6 | BUILTIN_FIND_FILES.H_XRENDER= ${X11BASE}/include/X11/extensions/Xrender.h | | | |
7 | | | | |
8 | .include "../../mk/buildlink3/bsd.builtin.mk" | | | |
9 | | | | |
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.libXrender= no | | | |
16 | .elif !defined(IS_BUILTIN.libXrender) | | | |
17 | IS_BUILTIN.libXrender= no | | | |
18 | . if empty(H_XRENDER:M__nonexistent__) | | | |
19 | IS_BUILTIN.libXrender= yes | | | |
20 | . endif | | | |
21 | .endif | | | |
22 | MAKEVARS+= IS_BUILTIN.libXrender | | | |
23 | | | | |
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.libXrender) | | | |
29 | . if ${PREFER.libXrender} == "pkgsrc" | | | |
30 | USE_BUILTIN.libXrender= no | | | |
31 | . else | | | |
32 | USE_BUILTIN.libXrender= ${IS_BUILTIN.libXrender} | | | |
33 | . if defined(BUILTIN_PKG.libXrender) && \ | | | |
34 | !empty(IS_BUILTIN.libXrender:M[yY][eE][sS]) | | | |
35 | USE_BUILTIN.libXrender= yes | | | |
36 | . for _dep_ in ${BUILDLINK_API_DEPENDS.libXrender} | | | |
37 | . if !empty(USE_BUILTIN.libXrender:M[yY][eE][sS]) | | | |
38 | USE_BUILTIN.libXrender!= \ | | | |
39 | if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libXrender:Q}; then \ | | | |
40 | ${ECHO} yes; \ | | | |
41 | else \ | | | |
42 | ${ECHO} no; \ | | | |
43 | fi | | | |
44 | . endif | | | |
45 | . endfor | | | |
46 | . endif | | | |
47 | . endif # PREFER.libXrender | | | |
48 | .endif | | | |
49 | MAKEVARS+= USE_BUILTIN.libXrender | | | |
50 | | | | |
51 | .include "../../mk/x11.builtin.mk" | | 7 | .include "../../mk/x11.builtin.mk" |