Skip to content

Commit 014cdc8

Browse files
committed
libs::libdrm: add option to enable intel KMS API.
1 parent 2fb39d1 commit 014cdc8

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

recipes/libs/libdrm.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,25 @@ metaEnvironment:
44
PKG_VERSION: "2.4.131"
55
PKG_LICENSE: "MIT"
66

7+
Config:
8+
LIBDRM_INTEL:
9+
type: choice
10+
default: disabled
11+
help: Enable support for Intel's KMS API.
12+
choice:
13+
auto:
14+
enabled:
15+
disabled:
16+
717
depends:
18+
- name: libs::xorg::libpciaccess-dev
19+
if: "$(not,$(eq,${LIBDRM_INTEL},disabled))"
820
- virtual::core::udev-dev
921

1022
- use: []
1123
depends:
24+
- name: libs::xorg::libpciaccess-tgt
25+
if: "$(not,$(eq,${LIBDRM_INTEL},disabled))"
1226
- virtual::core::udev-tgt
1327

1428
checkoutSCM:
@@ -17,11 +31,12 @@ checkoutSCM:
1731
digestSHA256: 45ba9983b51c896406a3d654de81d313b953b76e6391e2797073d543c5f617d5
1832
stripComponents: 1
1933

34+
buildVars: [LIBDRM_INTEL]
2035
buildScript: |
2136
mesonBuild $1 \
2237
-Dcairo-tests=disabled \
2338
-Dman-pages=disabled \
24-
-Dintel=disabled \
39+
-Dintel=${LIBDRM_INTEL} \
2540
-Dradeon=disabled \
2641
-Damdgpu=disabled \
2742
-Dnouveau=disabled \

0 commit comments

Comments
 (0)