pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/MesaLib18 graphics/MesaLib18: import MesaLib-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7c4ded1eb39
branches:  trunk
changeset: 386103:a7c4ded1eb39
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sun Oct 07 23:49:31 2018 +0000

description:
graphics/MesaLib18: import MesaLib-18.2.0 from wip/MesaLib

MesaLib is a 3-D graphics library with an API which is very similar to
that of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
or state machine, it is being used with authorization from Silicon Graphics,
Inc.  However, the author makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with Silicon Graphics, Inc.

diffstat:

 graphics/MesaLib18/DESCR                                                                |    5 +
 graphics/MesaLib18/Makefile                                                             |  104 +++
 graphics/MesaLib18/PLIST                                                                |  100 +++
 graphics/MesaLib18/buildlink3.mk                                                        |   52 +
 graphics/MesaLib18/builtin.mk                                                           |   87 ++
 graphics/MesaLib18/distinfo                                                             |   64 ++
 graphics/MesaLib18/dri.mk                                                               |   34 +
 graphics/MesaLib18/files/patch-manual_fdo90311                                          |  111 +++
 graphics/MesaLib18/options.mk                                                           |  311 ++++++++++
 graphics/MesaLib18/patches/patch-configure                                              |  122 +++
 graphics/MesaLib18/patches/patch-configure.ac                                           |   82 ++
 graphics/MesaLib18/patches/patch-include_GL_internal_dri__interface.h                   |   27 +
 graphics/MesaLib18/patches/patch-src_amd_vulkan_winsys_amdgpu_radv__amdgpu__cs.c        |   19 +
 graphics/MesaLib18/patches/patch-src_compiler_builtin__type__macros.h                   |   25 +
 graphics/MesaLib18/patches/patch-src_compiler_glsl_glsl__parser__extras.cpp             |   18 +
 graphics/MesaLib18/patches/patch-src_egl_drivers_dri2_platform__drm.c                   |   16 +
 graphics/MesaLib18/patches/patch-src_egl_drivers_dri2_platform__x11.c                   |   60 +
 graphics/MesaLib18/patches/patch-src_egl_main_eglglobals.c                              |   53 +
 graphics/MesaLib18/patches/patch-src_gallium_auxiliary_drivers_trace_tr__dump.c         |   50 +
 graphics/MesaLib18/patches/patch-src_gallium_auxiliary_pipe-loader_pipe__loader__drm.c  |  127 ++++
 graphics/MesaLib18/patches/patch-src_gallium_auxiliary_util_u__format__tests.c          |   17 +
 graphics/MesaLib18/patches/patch-src_gallium_drivers_nouveau_nouveau__vp3__video.c      |   18 +
 graphics/MesaLib18/patches/patch-src_gallium_drivers_nouveau_nv50_nv84__video.c         |   18 +
 graphics/MesaLib18/patches/patch-src_gallium_drivers_vc4_vc4__bufmgr.c                  |   18 +
 graphics/MesaLib18/patches/patch-src_gallium_include_pipe_p__config.h                   |   31 +
 graphics/MesaLib18/patches/patch-src_gallium_state__trackers_clover_llvm_invocation.cpp |   40 +
 graphics/MesaLib18/patches/patch-src_gallium_state__trackers_clover_llvm_metadata.hpp   |   21 +
 graphics/MesaLib18/patches/patch-src_gallium_state__trackers_clover_util_range.hpp      |   40 +
 graphics/MesaLib18/patches/patch-src_gbm_Makefile.am                                    |   12 +
 graphics/MesaLib18/patches/patch-src_gbm_Makefile.in                                    |   13 +
 graphics/MesaLib18/patches/patch-src_glx_apple_apple__glapi.c                           |   24 +
 graphics/MesaLib18/patches/patch-src_glx_dri__glx.c                                     |   43 +
 graphics/MesaLib18/patches/patch-src_glx_glxclient.h                                    |   19 +
 graphics/MesaLib18/patches/patch-src_glx_glxcurrent.c                                   |   40 +
 graphics/MesaLib18/patches/patch-src_glx_glxext.c                                       |   47 +
 graphics/MesaLib18/patches/patch-src_intel_Makefile.in                                  |   14 +
 graphics/MesaLib18/patches/patch-src_intel_Makefile.tools.am                            |   14 +
 graphics/MesaLib18/patches/patch-src_intel_compiler_brw__fs__bank__conflicts.cpp        |   23 +
 graphics/MesaLib18/patches/patch-src_intel_tools_aubinator.c                            |   36 +
 graphics/MesaLib18/patches/patch-src_intel_tools_aubinator__error__decode.c             |   19 +
 graphics/MesaLib18/patches/patch-src_intel_vulkan_anv__allocator.c                      |   62 +
 graphics/MesaLib18/patches/patch-src_intel_vulkan_anv__device.c                         |   47 +
 graphics/MesaLib18/patches/patch-src_intel_vulkan_anv__gem.c                            |   19 +
 graphics/MesaLib18/patches/patch-src_intel_vulkan_anv__queue.c                          |   25 +
 graphics/MesaLib18/patches/patch-src_mapi_entry__x86-64__tls.h                          |   32 +
 graphics/MesaLib18/patches/patch-src_mapi_entry__x86__tls.h                             |   40 +
 graphics/MesaLib18/patches/patch-src_mapi_glapi_gen_gl__gentable.py                     |   15 +
 graphics/MesaLib18/patches/patch-src_mapi_u__current.c                                  |   31 +
 graphics/MesaLib18/patches/patch-src_mapi_u__current.h                                  |   16 +
 graphics/MesaLib18/patches/patch-src_mesa_drivers_dri_i915_intel__screen.c              |   44 +
 graphics/MesaLib18/patches/patch-src_mesa_drivers_dri_i965_brw__performance__query.c    |   16 +
 graphics/MesaLib18/patches/patch-src_mesa_drivers_dri_i965_intel__screen.c              |   44 +
 graphics/MesaLib18/patches/patch-src_mesa_drivers_dri_i965_intel__tiled__memcpy.c       |   22 +
 graphics/MesaLib18/patches/patch-src_mesa_drivers_dri_swrast_swrast.c                   |   19 +
 graphics/MesaLib18/patches/patch-src_mesa_main_context.c                                |   57 +
 graphics/MesaLib18/patches/patch-src_mesa_main_extensions.c                             |   31 +
 graphics/MesaLib18/patches/patch-src_mesa_main_macros.h                                 |   18 +
 graphics/MesaLib18/patches/patch-src_mesa_main_shader__query.cpp                        |   58 +
 graphics/MesaLib18/patches/patch-src_mesa_tnl_t__pipeline.c                             |   21 +
 graphics/MesaLib18/patches/patch-src_mesa_x86_common__x86.c                             |   24 +
 graphics/MesaLib18/patches/patch-src_util_build__id.c                                   |   25 +
 graphics/MesaLib18/patches/patch-src_util_futex.h                                       |   53 +
 graphics/MesaLib18/patches/patch-src_util_ralloc.c                                      |   25 +
 graphics/MesaLib18/patches/patch-src_util_strndup.h                                     |   15 +
 graphics/MesaLib18/patches/patch-src_util_u__atomic.h                                   |   30 +
 graphics/MesaLib18/patches/patch-src_util_u__queue.c                                    |   44 +
 graphics/MesaLib18/patches/patch-src_util_xmlconfig.c                                   |   31 +
 67 files changed, 2838 insertions(+), 0 deletions(-)

diffs (truncated from 3106 to 300 lines):

diff -r 8c4cd7ef1882 -r a7c4ded1eb39 graphics/MesaLib18/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib18/DESCR  Sun Oct 07 23:49:31 2018 +0000
@@ -0,0 +1,5 @@
+MesaLib is a 3-D graphics library with an API which is very similar to
+that of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
+or state machine, it is being used with authorization from Silicon Graphics,
+Inc.  However, the author makes no claim that Mesa is in any way a
+compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
diff -r 8c4cd7ef1882 -r a7c4ded1eb39 graphics/MesaLib18/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib18/Makefile       Sun Oct 07 23:49:31 2018 +0000
@@ -0,0 +1,104 @@
+# $NetBSD: Makefile,v 1.1 2018/10/07 23:49:31 ryoon Exp $
+
+DISTNAME=      mesa-18.2.0
+PKGNAME=       ${DISTNAME:S/mesa/MesaLib/}
+CATEGORIES=    graphics x11
+MASTER_SITES=  ftp://ftp.freedesktop.org/pub/mesa/
+# MASTER_SITES=        ftp://ftp.freedesktop.org/pub/mesa/${PKGVERSION_NOREV}/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.mesa3d.org/
+COMMENT=       The Mesa 3D Graphics Library
+LICENSE=       mit
+
+GNU_CONFIGURE= yes
+USE_TOOLS+=    bison pkg-config gmake flex
+USE_LANGUAGES= c99 c++
+USE_LIBTOOL=   yes
+
+PKGCONFIG_OVERRIDE+=   src/egl/main/egl.pc.in
+PKGCONFIG_OVERRIDE+=   src/gallium/targets/d3dadapter9/d3d.pc.in
+PKGCONFIG_OVERRIDE+=   src/gallium/targets/osmesa/osmesa.pc.in
+PKGCONFIG_OVERRIDE+=   src/gallium/targets/xa/xatracker.pc.in
+PKGCONFIG_OVERRIDE+=   src/gbm/main/gbm.pc.in
+PKGCONFIG_OVERRIDE+=   src/mapi/es1api/glesv1_cm.pc.in
+PKGCONFIG_OVERRIDE+=   src/mapi/es2api/glesv2.pc.in
+PKGCONFIG_OVERRIDE+=   src/mesa/drivers/dri/dri.pc.in
+PKGCONFIG_OVERRIDE+=   src/mesa/drivers/osmesa/osmesa.pc.in
+PKGCONFIG_OVERRIDE+=   src/mesa/gl.pc.in
+
+CONFIGURE_ARGS+=               --enable-shared-glapi
+
+# Work around a buildlink and/or libtool bug:
+# In the libtool install/relink stage, if we want to link with two static
+# archives named libglapi.la but in different directories, bad things happen.
+SUBST_CLASSES+=                        wrapper-bug
+SUBST_STAGE.wrapper-bug=       pre-configure
+SUBST_MESSAGE.wrapper-bug=     Renaming glapi-shared/libglapi in Makefiles
+SUBST_FILES.wrapper-bug=       src/gbm/Makefile.in
+SUBST_FILES.wrapper-bug+=      src/glx/Makefile.in
+SUBST_FILES.wrapper-bug+=      src/mapi/Makefile.in
+SUBST_FILES.wrapper-bug+=      src/mesa/drivers/x11/Makefile.in
+SUBST_FILES.wrapper-bug+=      src/mesa/drivers/osmesa/Makefile.in
+SUBST_SED.wrapper-bug=         -e 's,shared-glapi/libglapi.la,shared-glapi/libglapi_tmp_rename.la,g'
+SUBST_SED.wrapper-bug+=                -e 's,libglapi.la,libglapi_impl.la,g'
+SUBST_SED.wrapper-bug+=                -e 's,libglapi_tmp_rename.la,libglapi.la,g'
+
+# Replace /etc/drirc with ${PREFIX}/etc/drirc
+SUBST_CLASSES+=                        drirc
+SUBST_STAGE.drirc=             pre-configure
+SUBST_MESSAGE.drirc=           Fixing hardcoded /etc/drirc references
+SUBST_FILES.drirc+=            src/util/xmlconfig.c
+SUBST_SED.drirc+=               -e 's|/etc|${PREFIX}/etc|g'
+
+# Required due to clang defaulting to strict C standard by default (no strdup).
+CFLAGS.SunOS+= -D__EXTENSIONS__
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+.include "options.mk"
+
+.if ${MACHINE_ARCH} == "i386"
+CONFIGURE_ARGS+=       --enable-glx-read-only-text
+.endif
+
+PYTHON_FOR_BUILD_ONLY= yes
+PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36 37 # as of 11.2.2
+BUILD_DEPENDS+=                ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
+CONFIGURE_ENV+=                ac_cv_prog_PYTHON2=${PYTHONBIN}
+.include "../../lang/python/tool.mk"
+
+# On NetBSD < 6 we need to compile with GCC from pkgsrc.
+# But GCC from pkgsrc does not add implicit -lc like base GCC does,
+# which breaks the build with -Wl,--no-undefined.
+# So we piggy back on -lpthread and inject -lc after it.
+.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
+BUILDLINK_TRANSFORM+=   l:pthread:pthread:c l:m:m:c
+.endif
+
+# Handle platforms without exp2
+.if !empty(MACHINE_PLATFORM:MNetBSD-[1-5].*-*)
+CPPFLAGS+=     -Dexp2\(x\)=exp\(\(x\)\*M_LN2\)
+CPPFLAGS+=     -Dexp2f\(x\)=expf\(\(x\)\*M_LN2\)
+.endif
+
+# Manual patch for FDO bug 90311. Don't apply if not on Darwin as there could
+# be side effects.
+.if ${OPSYS} == "Darwin"
+pre-configure: ${WRKDIR}/.manual_patch_done
+${WRKDIR}/.manual_patch_done:
+       cd ${WRKSRC} && ${TOOLS_PATCH} -z .manual -p0 < ${FILESDIR}/patch-manual_fdo90311
+       touch ${.TARGET}
+.endif
+
+INSTALLATION_DIRS+=    share/examples/MesaLib
+
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/src/util/drirc ${DESTDIR}${PREFIX}/share/examples/MesaLib
+
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libxcb/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 8c4cd7ef1882 -r a7c4ded1eb39 graphics/MesaLib18/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib18/PLIST  Sun Oct 07 23:49:31 2018 +0000
@@ -0,0 +1,100 @@
+@comment $NetBSD: PLIST,v 1.1 2018/10/07 23:49:31 ryoon Exp $
+etc/drirc
+${PLIST.dri}include/EGL/egl.h
+${PLIST.dri}include/EGL/eglext.h
+${PLIST.dri}include/EGL/eglextchromium.h
+${PLIST.dri}include/EGL/eglmesaext.h
+${PLIST.dri}include/EGL/eglplatform.h
+include/GL/gl.h
+include/GL/gl_mangle.h
+include/GL/glcorearb.h
+include/GL/glext.h
+include/GL/glx.h
+include/GL/glx_mangle.h
+include/GL/glxext.h
+${PLIST.osmesa}include/GL/osmesa.h
+${PLIST.dri}include/GL/internal/dri_interface.h
+${PLIST.glesv1}include/GLES/egl.h
+${PLIST.glesv1}include/GLES/gl.h
+${PLIST.glesv1}include/GLES/glext.h
+${PLIST.glesv1}include/GLES/glplatform.h
+${PLIST.glesv2}include/GLES2/gl2.h
+${PLIST.glesv2}include/GLES2/gl2ext.h
+${PLIST.glesv2}include/GLES2/gl2platform.h
+${PLIST.glesv2}include/GLES3/gl3.h
+${PLIST.glesv2}include/GLES3/gl31.h
+${PLIST.glesv2}include/GLES3/gl32.h
+${PLIST.glesv2}include/GLES3/gl3ext.h
+${PLIST.glesv2}include/GLES3/gl3platform.h
+${PLIST.dri}include/KHR/khrplatform.h
+${PLIST.gbm}include/gbm.h
+${PLIST.xatracker}include/xa_composite.h
+${PLIST.xatracker}include/xa_context.h
+${PLIST.xatracker}include/xa_tracker.h
+@comment ${PLIST.vaapi}lib/dri/gallium_drv_video.la
+@comment ${PLIST.vaapi}lib/dri/gallium_drv_video.so
+${PLIST.i915_dri}lib/dri/i915_dri.so
+${PLIST.i965_dri}lib/dri/i965_dri.so
+@comment ${PLIST.ilo}lib/dri/ilo_dri.so
+${PLIST.freedreno}lib/dri/kgsl_dri.so
+${PLIST.swrast}lib/dri/kms_swrast_dri.so
+${PLIST.freedreno}lib/dri/msm_dri.so
+${PLIST.nouveau}lib/dri/nouveau_dri.so
+${PLIST.nouveau_dri}lib/dri/nouveau_vieux_dri.so
+${PLIST.r200_dri}lib/dri/r200_dri.so
+${PLIST.r300}lib/dri/r300_dri.so
+${PLIST.r600}lib/dri/r600_dri.so
+${PLIST.radeon_dri}lib/dri/radeon_dri.so
+${PLIST.radeonsi}lib/dri/radeonsi_dri.so
+${PLIST.swrast_dri}lib/dri/swrast_dri.so
+${PLIST.vc4}lib/dri/vc4_dri.so
+${PLIST.svga}lib/dri/vmwgfx_dri.so
+${PLIST.dri}lib/libEGL.la
+lib/libGL.la
+${PLIST.glesv1}lib/libGLESv1_CM.la
+${PLIST.glesv2}lib/libGLESv2.la
+${PLIST.osmesa}lib/libOSMesa.la
+${PLIST.xvmc}${PLIST.nouveau}lib/libXvMCnouveau.so
+${PLIST.xvmc}${PLIST.nouveau}lib/libXvMCnouveau.so.1
+${PLIST.xvmc}${PLIST.nouveau}lib/libXvMCnouveau.so.1.0
+${PLIST.xvmc}${PLIST.nouveau}lib/libXvMCnouveau.so.1.0.0
+${PLIST.xvmc}${PLIST.r600}lib/libXvMCr600.so
+${PLIST.xvmc}${PLIST.r600}lib/libXvMCr600.so.1
+${PLIST.xvmc}${PLIST.r600}lib/libXvMCr600.so.1.0
+${PLIST.xvmc}${PLIST.r600}lib/libXvMCr600.so.1.0.0
+${PLIST.gbm}lib/libgbm.la
+lib/libglapi.la
+${PLIST.wayland}lib/libwayland-egl.la
+${PLIST.xatracker}lib/libxatracker.la
+${PLIST.dri}lib/pkgconfig/dri.pc
+${PLIST.dri}lib/pkgconfig/egl.pc
+${PLIST.gbm}lib/pkgconfig/gbm.pc
+${PLIST.osmesa}lib/pkgconfig/osmesa.pc
+lib/pkgconfig/gl.pc
+${PLIST.glesv1}lib/pkgconfig/glesv1_cm.pc
+${PLIST.glesv2}lib/pkgconfig/glesv2.pc
+${PLIST.wayland}lib/pkgconfig/wayland-egl.pc
+${PLIST.xatracker}lib/pkgconfig/xatracker.pc
+${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so
+${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1
+${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1.0
+${PLIST.nouveau}${PLIST.vdpau}lib/vdpau/libvdpau_nouveau.so.1.0.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r300.so.1.0.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1.0
+${PLIST.vdpau}lib/vdpau/libvdpau_r600.so.1.0.0
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1.0
+${PLIST.vdpau}lib/vdpau/libvdpau_radeonsi.so.1.0.0
+@comment ${PLIST.vdpau}lib/dri/nouveau_drv_video.la
+${PLIST.nouveau}${PLIST.vaapi}lib/dri/nouveau_drv_video.so
+@comment ${PLIST.vdpau}lib/dri/r600_drv_video.la
+${PLIST.vaapi}lib/dri/r600_drv_video.so
+@comment ${PLIST.vdpau}lib/dri/radeonsi_drv_video.la
+${PLIST.vaapi}lib/dri/radeonsi_drv_video.so
+share/examples/MesaLib/drirc
diff -r 8c4cd7ef1882 -r a7c4ded1eb39 graphics/MesaLib18/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib18/buildlink3.mk  Sun Oct 07 23:49:31 2018 +0000
@@ -0,0 +1,52 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/10/07 23:49:31 ryoon 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
+
+.if ${X11_TYPE} == "modular"
+.include "../../devel/libpthread-stubs/buildlink3.mk"
+.endif
+
+.include "../../x11/libXext/buildlink3.mk"
+.endif # MESALIB_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -MesaLib
diff -r 8c4cd7ef1882 -r a7c4ded1eb39 graphics/MesaLib18/builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/MesaLib18/builtin.mk     Sun Oct 07 23:49:31 2018 +0000
@@ -0,0 +1,87 @@
+# $NetBSD: builtin.mk,v 1.1 2018/10/07 23:49:31 ryoon Exp $
+
+BUILTIN_PKG:=  MesaLib
+
+BUILTIN_FIND_FILES_VAR:=       H_MESALIB PC_GL
+BUILTIN_FIND_FILES.H_MESALIB=  ${X11BASE}/include/GL/glx.h
+BUILTIN_FIND_FILES.PC_GL=      ${X11BASE}/lib/pkgconfig/gl.pc
+BUILTIN_FIND_FILES.PC_GL+=     ${X11BASE}/lib${LIBABISUFFIX}/pkgconfig/gl.pc
+
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+###
+### Determine if there is a built-in implementation of the package and
+### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
+###
+.if !defined(IS_BUILTIN.MesaLib)
+.  if empty(PC_GL:M__nonexistent__)
+IS_BUILTIN.MesaLib=    yes
+.  elif empty(H_MESALIB:M__nonexistent__)



Home | Main Index | Thread Index | Old Index