| @@ -1,88 +1,88 @@ | | | @@ -1,88 +1,88 @@ |
1 | # $NetBSD: Makefile,v 1.102 2022/06/03 08:30:34 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.103 2022/07/11 20:56:27 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= libdrm-2.4.111 | | 3 | DISTNAME= libdrm-2.4.112 |
4 | CATEGORIES= x11 graphics | | 4 | CATEGORIES= x11 graphics |
5 | MASTER_SITES= https://dri.freedesktop.org/libdrm/ | | 5 | MASTER_SITES= https://dri.freedesktop.org/libdrm/ |
6 | EXTRACT_SUFX= .tar.xz | | 6 | EXTRACT_SUFX= .tar.xz |
7 | | | 7 | |
8 | MAINTAINER= joerg@NetBSD.org | | 8 | MAINTAINER= joerg@NetBSD.org |
9 | HOMEPAGE= https://dri.freedesktop.org/wiki/DRM | | 9 | HOMEPAGE= https://dri.freedesktop.org/wiki/DRM |
10 | COMMENT= Userspace interface to kernel DRM services | | 10 | COMMENT= Userspace interface to kernel DRM services |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | # Platforms with kernel support for DRM | | 13 | # Platforms with kernel support for DRM |
14 | ONLY_FOR_PLATFORM= NetBSD-*-* DragonFly-*-* FreeBSD-*-* OpenBSD-*-* \ | | 14 | ONLY_FOR_PLATFORM= NetBSD-*-* DragonFly-*-* FreeBSD-*-* OpenBSD-*-* \ |
15 | Linux-*-* SunOS-*-* | | 15 | Linux-*-* SunOS-*-* |
16 | | | 16 | |
17 | USE_TOOLS+= pkg-config | | 17 | USE_TOOLS+= pkg-config |
18 | | | 18 | |
19 | PKGCONFIG_OVERRIDE+= amdgpu/libdrm_amdgpu.pc.in | | 19 | PKGCONFIG_OVERRIDE+= amdgpu/libdrm_amdgpu.pc.in |
20 | PKGCONFIG_OVERRIDE+= etnaviv/libdrm_etnaviv.pc.in | | 20 | PKGCONFIG_OVERRIDE+= etnaviv/libdrm_etnaviv.pc.in |
21 | PKGCONFIG_OVERRIDE+= exynos/libdrm_exynos.pc.in | | 21 | PKGCONFIG_OVERRIDE+= exynos/libdrm_exynos.pc.in |
22 | PKGCONFIG_OVERRIDE+= freedreno/libdrm_freedreno.pc.in | | 22 | PKGCONFIG_OVERRIDE+= freedreno/libdrm_freedreno.pc.in |
23 | PKGCONFIG_OVERRIDE+= intel/libdrm_intel.pc.in | | 23 | PKGCONFIG_OVERRIDE+= intel/libdrm_intel.pc.in |
24 | PKGCONFIG_OVERRIDE+= nouveau/libdrm_nouveau.pc.in | | 24 | PKGCONFIG_OVERRIDE+= nouveau/libdrm_nouveau.pc.in |
25 | PKGCONFIG_OVERRIDE+= omap/libdrm_omap.pc.in | | 25 | PKGCONFIG_OVERRIDE+= omap/libdrm_omap.pc.in |
26 | PKGCONFIG_OVERRIDE+= radeon/libdrm_radeon.pc.in | | 26 | PKGCONFIG_OVERRIDE+= radeon/libdrm_radeon.pc.in |
27 | PKGCONFIG_OVERRIDE+= tegra/libdrm_tegra.pc.in | | 27 | PKGCONFIG_OVERRIDE+= tegra/libdrm_tegra.pc.in |
28 | PKGCONFIG_OVERRIDE+= libdrm.pc.in | | 28 | PKGCONFIG_OVERRIDE+= libdrm.pc.in |
29 | | | 29 | |
30 | .include "../../mk/bsd.prefs.mk" | | 30 | .include "../../mk/bsd.prefs.mk" |
31 | | | 31 | |
32 | SUBST_CLASSES+= atomic | | 32 | SUBST_CLASSES+= atomic |
33 | SUBST_FILES.atomic= xf86drm.h | | 33 | SUBST_FILES.atomic= xf86drm.h |
34 | SUBST_MESSAGE.atomic= Configuring atomic operations in xf86drm.h | | 34 | SUBST_MESSAGE.atomic= Configuring atomic operations in xf86drm.h |
35 | SUBST_STAGE.atomic= pre-configure | | 35 | SUBST_STAGE.atomic= pre-configure |
36 | SUBST_VARS.atomic= ATOMIC_OPS_CHECK | | 36 | SUBST_VARS.atomic= ATOMIC_OPS_CHECK |
37 | | | 37 | |
38 | ATOMIC_OPS_CHECK= 0 | | 38 | ATOMIC_OPS_CHECK= 0 |
39 | .if exists(${_CROSS_DESTDIR}/usr/include/sys/atomic.h) | | 39 | .if exists(${_CROSS_DESTDIR}/usr/include/sys/atomic.h) |
40 | ATOMIC_OPS_CHECK= 1 | | 40 | ATOMIC_OPS_CHECK= 1 |
41 | .else | | 41 | .else |
42 | . include "../../devel/libatomic_ops/buildlink3.mk" | | 42 | . include "../../devel/libatomic_ops/buildlink3.mk" |
43 | .endif | | 43 | .endif |
44 | | | 44 | |
45 | PLIST_VARS+= intel arm | | 45 | PLIST_VARS+= intel arm |
46 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 46 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
47 | MESON_ARGS+= -Dintel=true | | 47 | MESON_ARGS+= -Dintel=true |
48 | MESON_ARGS+= -Dvmwgfx=true | | 48 | MESON_ARGS+= -Dvmwgfx=true |
49 | .include "../../sysutils/libpciaccess/buildlink3.mk" | | 49 | .include "../../sysutils/libpciaccess/buildlink3.mk" |
50 | PLIST.intel= yes | | 50 | PLIST.intel= yes |
51 | .else | | 51 | .else |
52 | MESON_ARGS+= -Dintel=false | | 52 | MESON_ARGS+= -Dintel=false |
53 | MESON_ARGS+= -Dvmwgfx=false | | 53 | MESON_ARGS+= -Dvmwgfx=false |
54 | .endif | | 54 | .endif |
55 | | | 55 | |
56 | MESON_ARGS+= -Dradeon=true | | 56 | MESON_ARGS+= -Dradeon=true |
57 | MESON_ARGS+= -Damdgpu=true | | 57 | MESON_ARGS+= -Damdgpu=true |
58 | MESON_ARGS+= -Dnouveau=true | | 58 | MESON_ARGS+= -Dnouveau=true |
59 | | | 59 | |
60 | .if !empty(MACHINE_ARCH:Marm*) || \ | | 60 | .if ${MACHINE_ARCH:Marm*} || \ |
61 | !empty(MACHINE_ARCH:Mearm*) || \ | | 61 | ${MACHINE_ARCH:Mearm*} || \ |
62 | ${MACHINE_ARCH} == "aarch64" | | 62 | ${MACHINE_ARCH} == "aarch64" |
63 | MESON_ARGS+= -Detnaviv=true | | 63 | MESON_ARGS+= -Detnaviv=true |
64 | MESON_ARGS+= -Dexynos=true | | 64 | MESON_ARGS+= -Dexynos=true |
65 | MESON_ARGS+= -Dfreedreno=true | | 65 | MESON_ARGS+= -Dfreedreno=true |
66 | MESON_ARGS+= -Dvc4=true | | 66 | MESON_ARGS+= -Dvc4=true |
67 | MESON_ARGS+= -Domap=true | | 67 | MESON_ARGS+= -Domap=true |
68 | MESON_ARGS+= -Dtegra=true | | 68 | MESON_ARGS+= -Dtegra=true |
69 | PLIST.arm= yes | | 69 | PLIST.arm= yes |
70 | .else | | 70 | .else |
71 | MESON_ARGS+= -Detnaviv=false | | 71 | MESON_ARGS+= -Detnaviv=false |
72 | MESON_ARGS+= -Dexynos=false | | 72 | MESON_ARGS+= -Dexynos=false |
73 | MESON_ARGS+= -Dfreedreno=false | | 73 | MESON_ARGS+= -Dfreedreno=false |
74 | MESON_ARGS+= -Domap=false | | 74 | MESON_ARGS+= -Domap=false |
75 | MESON_ARGS+= -Dtegra=false | | 75 | MESON_ARGS+= -Dtegra=false |
76 | MESON_ARGS+= -Dvc4=false | | 76 | MESON_ARGS+= -Dvc4=false |
77 | .endif | | 77 | .endif |
78 | | | 78 | |
79 | MESON_ARGS+= -Dman-pages=false | | 79 | MESON_ARGS+= -Dman-pages=false |
80 | MESON_ARGS+= -Dvalgrind=false | | 80 | MESON_ARGS+= -Dvalgrind=false |
81 | | | 81 | |
82 | LDFLAGS.NetBSD+= -lpci | | 82 | LDFLAGS.NetBSD+= -lpci |
83 | CPPFLAGS.SunOS+= -D__EXTENSIONS__ # posix_memalign, ... | | 83 | CPPFLAGS.SunOS+= -D__EXTENSIONS__ # posix_memalign, ... |
84 | | | 84 | |
85 | X11_LIB_NAME?= libdrm | | 85 | X11_LIB_NAME?= libdrm |
86 | .include "../../meta-pkgs/modular-xorg/avoid-duplicate.mk" | | 86 | .include "../../meta-pkgs/modular-xorg/avoid-duplicate.mk" |
87 | .include "../../devel/meson/build.mk" | | 87 | .include "../../devel/meson/build.mk" |
88 | .include "../../mk/bsd.pkg.mk" | | 88 | .include "../../mk/bsd.pkg.mk" |