1 # $NetBSD: buildlink3.mk,v 1.44 2012/10/02 12:17:10 tron Exp $
3 # Don't include this file manually! It will be included as necessary
4 # by bsd.buildlink3.mk.
6 # x11-links is sorted first in mk/buildlink3/bsd.buildlink3.mk,
7 # so that symlinks created from it can be overriden by other packages.
10 BUILDLINK_TREE
+= x11-links
12 .if
!defined
(X11_LINKS_BUILDLINK3_MK
)
13 X11_LINKS_BUILDLINK3_MK
:=
15 BUILDLINK_API_DEPENDS.x11-links
+= x11-links
>=0.72
16 BUILDLINK_PKGSRCDIR.x11-links?
= ..
/..
/pkgtools
/x11-links
17 BUILDLINK_DEPMETHOD.x11-links?
= build
19 # Force all of the helper programs, headers and libraries to be symlinked
20 # into ${BUILDLINK_X11_DIR}, even in the "pkgviews" case.
22 BUILDLINK_CONTENTS_FILTER.x11-links
= \
23 ${EGREP} '(bin/.*|include.*/|\.h$$|\.pc$$|/lib[^/]*$$)'
25 # Rename the symlinks so that they appear in ${BUILDLINK_X11_DIR}/include
26 # and ${BUILDLINK_X11_DIR}/lib.
28 BUILDLINK_FNAME_TRANSFORM.x11-links
+= -e
"s|/share/x11-links/|/|"
29 .
endif # X11_LINKS_BUILDLINK3_MK
31 BUILDLINK_TREE
+= -x11-links