| @@ -1,34 +1,34 @@ | | | @@ -1,34 +1,34 @@ |
1 | # $NetBSD: buildlink3.mk,v 1.15 2008/09/16 12:38:38 tron Exp $ | | 1 | # $NetBSD: buildlink3.mk,v 1.16 2008/10/05 21:37:39 cube Exp $ |
2 | # | | 2 | # |
3 | # Don't include this file manually! It will be included as necessary | | 3 | # Don't include this file manually! It will be included as necessary |
4 | # by bsd.buildlink3.mk. | | 4 | # by bsd.buildlink3.mk. |
5 | | | 5 | |
6 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ | | 6 | BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ |
7 | X11_LINKS_BUILDLINK3_MK:= ${X11_LINKS_BUILDLINK3_MK}+ | | 7 | X11_LINKS_BUILDLINK3_MK:= ${X11_LINKS_BUILDLINK3_MK}+ |
8 | | | 8 | |
9 | .if !empty(BUILDLINK_DEPTH:M+) | | 9 | .if !empty(BUILDLINK_DEPTH:M+) |
10 | BUILDLINK_DEPENDS+= x11-links | | 10 | BUILDLINK_DEPENDS+= x11-links |
11 | .endif | | 11 | .endif |
12 | | | 12 | |
13 | # x11-links must come first so that packages listed later can overwrite | | 13 | # x11-links must come first so that packages listed later can overwrite |
14 | # any symlinks created by buildlinking x11-links. | | 14 | # any symlinks created by buildlinking x11-links. |
15 | # | | 15 | # |
16 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nx11-links} | | 16 | BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nx11-links} |
17 | BUILDLINK_PACKAGES:= x11-links ${BUILDLINK_PACKAGES} | | 17 | BUILDLINK_PACKAGES:= x11-links ${BUILDLINK_PACKAGES} |
18 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}x11-links | | 18 | BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}x11-links |
19 | | | 19 | |
20 | .if !empty(X11_LINKS_BUILDLINK3_MK:M+) | | 20 | .if !empty(X11_LINKS_BUILDLINK3_MK:M+) |
21 | BUILDLINK_API_DEPENDS.x11-links+= x11-links>=0.38 | | 21 | BUILDLINK_API_DEPENDS.x11-links+= x11-links>=0.39 |
22 | BUILDLINK_PKGSRCDIR.x11-links?= ../../pkgtools/x11-links | | 22 | BUILDLINK_PKGSRCDIR.x11-links?= ../../pkgtools/x11-links |
23 | BUILDLINK_DEPMETHOD.x11-links?= build | | 23 | BUILDLINK_DEPMETHOD.x11-links?= build |
24 | | | 24 | |
25 | # Force all of the headers and libraries to be symlinked into | | 25 | # Force all of the headers and libraries to be symlinked into |
26 | # ${BUILDLINK_X11_DIR}, even in the "pkgviews" case. | | 26 | # ${BUILDLINK_X11_DIR}, even in the "pkgviews" case. |
27 | # | | 27 | # |
28 | BUILDLINK_CONTENTS_FILTER.x11-links= \ | | 28 | BUILDLINK_CONTENTS_FILTER.x11-links= \ |
29 | ${EGREP} '(include.*/|\.h$$|\.pc$$|/lib[^/]*$$)' | | 29 | ${EGREP} '(include.*/|\.h$$|\.pc$$|/lib[^/]*$$)' |
30 | | | 30 | |
31 | # Rename the symlinks so that they appear in ${BUILDLINK_X11_DIR}/include | | 31 | # Rename the symlinks so that they appear in ${BUILDLINK_X11_DIR}/include |
32 | # and ${BUILDLINK_X11_DIR}/lib. | | 32 | # and ${BUILDLINK_X11_DIR}/lib. |
33 | # | | 33 | # |
34 | BUILDLINK_FNAME_TRANSFORM.x11-links+= -e "s|/share/x11-links/|/|" | | 34 | BUILDLINK_FNAME_TRANSFORM.x11-links+= -e "s|/share/x11-links/|/|" |