pkgsrc/graphics/MesaLib18/Makefile
tnn 28ec41d81c mesa: update to 18.3.4
Bug fixes
  Bug 109107 - gallium/st/va: change va max_profiles when using Radeon VCN Hardware
  Bug 109401 - [DXVK] Project Cars rendering problems
  Bug 109543 - After upgrade mesa to 19.0.0~rc1 all vulkan based application stop working ["vulkan-cube" received SIGSEGV in radv_pipeline_init_blend_state at ../src/amd/vulkan/radv_pipeline.c:699]
  Bug 109603 - nir_instr_as_deref: Assertion `parent && parent->type == nir_instr_type_deref' failed.

Changes
  gallium-xlib: query MIT-SHM before using it.
  radv: Only look at pImmutableSamples if the descriptor has a sampler.
  amd/common: Use correct writemask for shared memory stores.
  get-pick-list: Add --pretty=medium to the arguments for Cc patches
  meson: Add dependency on genxml to anvil
  docs: add sha256 checksums for 18.3.3
  cherry-ignore: nv50,nvc0: add explicit settings for recent caps
  cherry-ignore: add more 19.0 only nominations from Ilia
  cherry-ignore: radv: fix using LOAD_CONTEXT_REG with old GFX ME firmwares on GFX8
  Update version to 18.3.4
  vc4: Fix copy-and-paste fail in backport of NEON asm fixes.
  xvmc: fix string comparison
  xvmc: fix string comparison
  vc4: Fix leak in HW queries error path
  v3d: Fix leak in resource setup error path
  intel/compiler: do not copy-propagate strided regions to ddx/ddy arguments
  nvc0: we have 16k-sized framebuffers, fix default scissors
  intel/fs: Handle IMAGE_SIZE in size_read() and is_send_from_grf()
  intel/fs: Do the grf127 hack on SIMD8 instructions in SIMD16 mode
  nir/deref: Rematerialize parents in rematerialize_derefs_in_use_blocks
  anv/cmd_buffer: check for NULL framebuffer
  st/mesa: Limit GL_MAX_[NATIVE_]PROGRAM_PARAMETERS_ARB to 2048
  freedreno/a6xx: Emit blitter dst with OUT_RELOCW
  st/va: fix the incorrect max profiles report
  st/va/vp9: set max reference as default of VP9 reference number
  meson: drop the xcb-xrandr version requirement
  gallium/u_threaded: fix EXPLICIT_FLUSH for flush offsets > 0
  radeonsi: fix EXPLICIT_FLUSH for flush offsets > 0
  winsys/amdgpu: don't drop manually added fence dependencies
  egl/wayland: Allow client->server format conversion for PRIME offload. (v2)
  egl/wayland-drm: Only announce formats via wl_drm which the driver supports.
  radeonsi: Fix guardband computation for large render targets
  freedreno: stop frob'ing pipe_resource::nr_samples
  intel: Add more PCI Device IDs for Coffee Lake and Ice Lake.
  radv: fix compiler issues with GCC 9
  radv: always export gl_SampleMask when the fragment shader uses it
2019-02-22 15:40:35 +00:00

108 lines
4 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2019/02/22 15:40:35 tnn Exp $
DISTNAME= mesa-18.3.4
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
HOMEPAGE= https://www.mesa3d.org/
COMMENT= The Mesa 3D Graphics Library
LICENSE= mit
GNU_CONFIGURE= yes
USE_TOOLS+= autoconf automake autoreconf 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/glx/windows/windowsdriproto.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 non-shared libglapi.la in Makefiles
SUBST_FILES.wrapper-bug= src/gallium/targets/libgl-xlib/Makefile.am
SUBST_FILES.wrapper-bug+= src/gallium/targets/osmesa/Makefile.am
SUBST_FILES.wrapper-bug+= src/glx/Makefile.am
SUBST_FILES.wrapper-bug+= src/mapi/Makefile.am
SUBST_FILES.wrapper-bug+= src/mesa/drivers/osmesa/Makefile.am
SUBST_FILES.wrapper-bug+= src/mesa/drivers/x11/Makefile.am
SUBST_SED.wrapper-bug= -e 's,shared-glapi/libglapi\.la,shared-glapi/libglapi_tmp_rename.la,g'
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_la,libglapi_impl_la,g'
SUBST_SED.wrapper-bug+= -e 's,libglapi_tmp_rename\.la,libglapi.la,g'
SUBST_SED.wrapper-bug+= -e 's,libglapi_tmp_rename_la,libglapi_la,g'
# Replace /etc/drirc.d with ${PREFIX}/etc/drirc.d
SUBST_CLASSES+= drirc
SUBST_STAGE.drirc= pre-configure
SUBST_MESSAGE.drirc= Fixing hardcoded /etc/drirc.d references
SUBST_FILES.drirc+= src/util/xmlconfig.c
SUBST_SED.drirc+= -e 's|/etc|${PREFIX}/etc|g'
CFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
CXXFLAGS.SunOS+= -Drestrict=__restrict__
LDFLAGS.SunOS+= -lsocket -lnsl
.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
BUILD_DEPENDS+= ${PYPKGPREFIX}-mako-[0-9]*:../../devel/py-mako
# needed to build vulkan support
BUILD_DEPENDS+= ${PYPKGPREFIX}-cElementTree-[0-9]*:../../textproc/py-cElementTree
CONFIGURE_ENV+= PYTHON=${PYTHONBIN}
.include "../../lang/python/tool.mk"
# 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
# Work around Xorg segfaulting in radeon driver due to wrong alloca being used
CFLAGS.NetBSD+= -Dalloca=__builtin_alloca
CXXFLAGS.NetBSD+= -Dalloca=__builtin_alloca
pre-configure:
touch ${WRKSRC}/src/glx/apple_dummy.cpp
cd ${WRKSRC} && autoreconf -vif
DRIRC_DIR= ${PKG_SYSCONFDIR}/drirc.d
EGDIR= ${PREFIX}/share/examples/mesa
OWN_DIRS+= ${DRIRC_DIR}
INSTALLATION_DIRS+= ${EGDIR}
CONF_FILES+= ${EGDIR}/00-mesa-defaults.conf \
${DRIRC_DIR}/00-mesa-defaults.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/src/util/00-mesa-defaults.conf ${DESTDIR}${EGDIR}
.include "../../devel/zlib/buildlink3.mk"
.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"