pkgsrc/x11/libdrm/Makefile
wiz b51dd95244 libdrm: update to 2.4.114.
Alex Deucher (5):
      amdgpu.ids: use consistent formatting for RID
      amdgpu.ids: sort the file
      amdgpu.ids: update to the latest marketing name
      amdgpu_ids: add MI marketing names
      amdgpu: Add a default marketing name if none is found

Eli Schwartz (1):
      meson: fast-fail on unsupported OSes

Jordan Justen (2):
      include/drm/drm_fourcc.h: Update from Linux v6.0-rc7
      include/drm/i915_drm.h: Update from Linux v6.0-rc7

Marco Felsch (1):
      tests/util: add imx-lcdif driver

Simon Ser (9):
      intel: move declarations to top in drm_intel_gem_bo_unreference()
      build: automatically disable Intel if pciaccess is not found
      xf86drm: handle DRM_FORMAT_BIG_ENDIAN in drmGetFormatName()
      amdgpu: silence uninitialized variable warning
      xf86drmMode: add helpers for dumb buffers
      modetest: drop unused offset field in struct bo
      modetest: use sized integers in struct bo
      modetest: use dumb buffer helpers
      build: bump version to 2.4.114
2022-11-03 08:43:27 +00:00

88 lines
2.5 KiB
Makefile

# $NetBSD: Makefile,v 1.105 2022/11/03 08:43:27 wiz Exp $
DISTNAME= libdrm-2.4.114
CATEGORIES= x11 graphics
MASTER_SITES= https://dri.freedesktop.org/libdrm/
EXTRACT_SUFX= .tar.xz
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= https://dri.freedesktop.org/wiki/DRM
COMMENT= Userspace interface to kernel DRM services
LICENSE= mit
# Platforms with kernel support for DRM
ONLY_FOR_PLATFORM= NetBSD-*-* DragonFly-*-* FreeBSD-*-* OpenBSD-*-* \
Linux-*-* SunOS-*-*
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= amdgpu/libdrm_amdgpu.pc.in
PKGCONFIG_OVERRIDE+= etnaviv/libdrm_etnaviv.pc.in
PKGCONFIG_OVERRIDE+= exynos/libdrm_exynos.pc.in
PKGCONFIG_OVERRIDE+= freedreno/libdrm_freedreno.pc.in
PKGCONFIG_OVERRIDE+= intel/libdrm_intel.pc.in
PKGCONFIG_OVERRIDE+= nouveau/libdrm_nouveau.pc.in
PKGCONFIG_OVERRIDE+= omap/libdrm_omap.pc.in
PKGCONFIG_OVERRIDE+= radeon/libdrm_radeon.pc.in
PKGCONFIG_OVERRIDE+= tegra/libdrm_tegra.pc.in
PKGCONFIG_OVERRIDE+= libdrm.pc.in
.include "../../mk/bsd.prefs.mk"
SUBST_CLASSES+= atomic
SUBST_FILES.atomic= xf86drm.h
SUBST_MESSAGE.atomic= Configuring atomic operations in xf86drm.h
SUBST_STAGE.atomic= pre-configure
SUBST_VARS.atomic= ATOMIC_OPS_CHECK
ATOMIC_OPS_CHECK= 0
.if exists(${_CROSS_DESTDIR}/usr/include/sys/atomic.h)
ATOMIC_OPS_CHECK= 1
.else
. include "../../devel/libatomic_ops/buildlink3.mk"
.endif
PLIST_VARS+= intel arm
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
MESON_ARGS+= -Dintel=enabled
MESON_ARGS+= -Dvmwgfx=enabled
.include "../../sysutils/libpciaccess/buildlink3.mk"
PLIST.intel= yes
.else
MESON_ARGS+= -Dintel=disabled
MESON_ARGS+= -Dvmwgfx=disabled
.endif
MESON_ARGS+= -Dradeon=enabled
MESON_ARGS+= -Damdgpu=enabled
MESON_ARGS+= -Dnouveau=enabled
.if ${MACHINE_ARCH:Marm*} || \
${MACHINE_ARCH:Mearm*} || \
${MACHINE_ARCH} == "aarch64"
MESON_ARGS+= -Detnaviv=enabled
MESON_ARGS+= -Dexynos=enabled
MESON_ARGS+= -Dfreedreno=enabled
MESON_ARGS+= -Dvc4=enabled
MESON_ARGS+= -Domap=enabled
MESON_ARGS+= -Dtegra=enabled
PLIST.arm= yes
.else
MESON_ARGS+= -Detnaviv=disabled
MESON_ARGS+= -Dexynos=disabled
MESON_ARGS+= -Dfreedreno=disabled
MESON_ARGS+= -Domap=disabled
MESON_ARGS+= -Dtegra=disabled
MESON_ARGS+= -Dvc4=disabled
.endif
MESON_ARGS+= -Dman-pages=disabled
MESON_ARGS+= -Dvalgrind=disabled
LDFLAGS.NetBSD+= -lpci
CPPFLAGS.SunOS+= -D__EXTENSIONS__ # posix_memalign, ...
X11_LIB_NAME?= libdrm
.include "../../meta-pkgs/modular-xorg/avoid-duplicate.mk"
.include "../../devel/meson/build.mk"
.include "../../mk/bsd.pkg.mk"