1 # $NetBSD: buildlink3.mk,v 1.47 2009/03/20 19:24:36 joerg Exp $
3 BUILDLINK_TREE
+= MesaLib
5 .if
!defined
(MESALIB_BUILDLINK3_MK
)
6 MESALIB_BUILDLINK3_MK
:=
8 BUILDLINK_API_DEPENDS.MesaLib
+= MesaLib
>=3.4.2
9 BUILDLINK_ABI_DEPENDS.MesaLib
+= MesaLib
>=7.0.3
10 BUILDLINK_PKGSRCDIR.MesaLib?
= ..
/..
/graphics
/MesaLib
12 .
include "../../mk/bsd.fast.prefs.mk"
14 # See <http://developer.apple.com/qa/qa2007/qa1567.html>.
15 .if
!empty
(MACHINE_PLATFORM
:MDarwin-
[9].
*-*)
16 BUILDLINK_LDFLAGS.MesaLib
+= -Wl
,-dylib_file
,/System
/Library
/Frameworks
/OpenGL.framework
/Versions
/A
/Libraries
/libGL.dylib
:/System
/Library
/Frameworks
/OpenGL.framework
/Versions
/A
/Libraries
/libGL.dylib
20 .
include "../../mk/pkg-build-options.mk"
22 .if
${X11_TYPE} == "native" && exists
(${X11BASE}/lib
/pkgconfig
/dri.
pc)
23 PKG_BUILD_OPTIONS.MesaLib
+= dri
26 .if
!empty
(PKG_BUILD_OPTIONS.MesaLib
:Mdri
)
27 .
include "../../graphics/MesaLib/dri.mk"
30 .if
!empty
(MACHINE_PLATFORM
:MNetBSD-
[12].
*)
31 .
include "../../devel/pthread-stublib/buildlink3.mk"
34 .
include "../../x11/libXext/buildlink3.mk"
35 .
endif # MESALIB_BUILDLINK3_MK
37 BUILDLINK_TREE
+= -MesaLib