| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: builtin.mk,v 1.13 2008/10/05 21:36:34 cube Exp $ | | 1 | # $NetBSD: builtin.mk,v 1.14 2008/10/07 18:03:55 cube Exp $ |
2 | | | 2 | |
3 | BUILTIN_PKG:= expat | | 3 | BUILTIN_PKG:= expat |
4 | | | 4 | |
5 | BUILTIN_FIND_FILES_VAR:= H_EXPAT | | 5 | BUILTIN_FIND_FILES_VAR:= H_EXPAT |
6 | BUILTIN_FIND_FILES.H_EXPAT= ${X11BASE}/include/expat.h /usr/include/expat.h | | 6 | BUILTIN_FIND_FILES.H_EXPAT= ${X11BASE}/include/expat.h /usr/include/expat.h |
7 | | | 7 | |
8 | .include "../../mk/buildlink3/bsd.builtin.mk" | | 8 | .include "../../mk/buildlink3/bsd.builtin.mk" |
9 | | | 9 | |
10 | ### | | 10 | ### |
11 | ### Determine if there is a built-in implementation of the package and | | 11 | ### Determine if there is a built-in implementation of the package and |
12 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). | | 12 | ### set IS_BUILTIN.<pkg> appropriately ("yes" or "no"). |
13 | ### | | 13 | ### |
14 | .if !defined(IS_BUILTIN.expat) | | 14 | .if !defined(IS_BUILTIN.expat) |
| @@ -68,22 +68,22 @@ USE_BUILTIN.expat!= \ | | | @@ -68,22 +68,22 @@ USE_BUILTIN.expat!= \ |
68 | . endif # PREFER.expat | | 68 | . endif # PREFER.expat |
69 | .endif | | 69 | .endif |
70 | MAKEVARS+= USE_BUILTIN.expat | | 70 | MAKEVARS+= USE_BUILTIN.expat |
71 | | | 71 | |
72 | ### | | 72 | ### |
73 | ### The section below only applies if we are not including this file | | 73 | ### The section below only applies if we are not including this file |
74 | ### solely to determine whether a built-in implementation exists. | | 74 | ### solely to determine whether a built-in implementation exists. |
75 | ### | | 75 | ### |
76 | CHECK_BUILTIN.expat?= no | | 76 | CHECK_BUILTIN.expat?= no |
77 | .if !empty(CHECK_BUILTIN.expat:M[nN][oO]) | | 77 | .if !empty(CHECK_BUILTIN.expat:M[nN][oO]) |
78 | | | 78 | |
79 | . if !empty(USE_BUILTIN.expat:M[nN][oO]) | | 79 | . if !empty(USE_BUILTIN.expat:M[nN][oO]) |
80 | BUILDLINK_API_DEPENDS.expat+= expat>=1.95.4 | | 80 | BUILDLINK_API_DEPENDS.expat+= expat>=1.95.4 |
81 | . endif | | | |
82 | | | | |
83 | . if !empty(H_EXPAT:M${X11BASE}/*) | | | |
84 | . include "../../mk/x11.builtin.mk" | | | |
85 | . else | | 81 | . else |
| | | 82 | . if !empty(H_EXPAT:M${X11BASE}/*) |
| | | 83 | . include "../../mk/x11.builtin.mk" |
| | | 84 | . else |
86 | BUILDLINK_PREFIX.expat= /usr | | 85 | BUILDLINK_PREFIX.expat= /usr |
| | | 86 | . endif |
87 | . endif | | 87 | . endif |
88 | | | 88 | |
89 | .endif # CHECK_BUILTIN.expat | | 89 | .endif # CHECK_BUILTIN.expat |