don't provide libpthread stubs. Note that the name is misleading, libpthread stubs refers to a library that only pulls in libpthread if a set of functions is not available as stubs as libc. It is only a pkgconfig file that answers the question "pull in libpthread? Y/N". Replace non-existent libpthread stubs buildlink3.mk with the pthread buildlink3.mk, we should be linking with libpthread for most (all?) OSes.
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.2 2018/10/10 11:03:02 maya Exp $
|
|
|
|
BUILDLINK_TREE+= MesaLib
|
|
|
|
.if !defined(MESALIB_BUILDLINK3_MK)
|
|
MESALIB_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.MesaLib+= MesaLib>=3.4.2
|
|
BUILDLINK_ABI_DEPENDS.MesaLib+= MesaLib>=7.11.2
|
|
BUILDLINK_PKGSRCDIR.MesaLib?= ../../graphics/MesaLib
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
.if ${X11_TYPE} == "modular"
|
|
BUILDLINK_ABI_DEPENDS.MesaLib+= MesaLib>=10.5.3
|
|
# This is needed to avoid linking conflicting libstdc++ versions
|
|
. if defined(USE_LANGUAGES) && !empty(USE_LANGUAGES:Mc++)
|
|
GCC_REQD+= 4.2
|
|
. endif
|
|
.endif
|
|
|
|
# See <http://developer.apple.com/qa/qa2007/qa1567.html>.
|
|
.if ${X11_TYPE} == "native" && !empty(MACHINE_PLATFORM:MDarwin-[9].*-*)
|
|
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
|
|
.endif
|
|
|
|
pkgbase:= MesaLib
|
|
.include "../../mk/pkg-build-options.mk"
|
|
|
|
.if ${X11_TYPE} == "native" && ${OPSYS} != "Cygwin" && exists(${X11BASE}/lib/pkgconfig/dri.pc)
|
|
PKG_BUILD_OPTIONS.MesaLib+= dri
|
|
.endif
|
|
|
|
.if !empty(PKG_BUILD_OPTIONS.MesaLib:Mdri)
|
|
. include "../../graphics/MesaLib/dri.mk"
|
|
.endif
|
|
|
|
.if ${X11_TYPE} == "modular" && !empty(PKG_BUILD_OPTIONS.MesaLib:Mdri) || \
|
|
${X11_TYPE} == "native" && exists(${X11BASE}/include/EGL/egl.h)
|
|
MESALIB_SUPPORTS_EGL= yes
|
|
.else
|
|
MESALIB_SUPPORTS_EGL= no
|
|
.endif
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.endif # MESALIB_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -MesaLib
|