Skip to content

Commit 3d5bf67

Browse files
committed
libs::libdrm: add option to enable intel KMS API.
1 parent 1181c2b commit 3d5bf67

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

recipes/libs/libdrm.yaml

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

7+
Config:
8+
LIBDRM_INTEL:
9+
type: bool
10+
default: false
11+
help: Enable support for Intel's KMS API.
12+
713
depends:
14+
- name: libs::xorg::libpciaccess-dev
15+
if: "${LIBDRM_INTEL}"
816
- virtual::core::udev-dev
917

1018
- use: []
1119
depends:
20+
- name: libs::xorg::libpciaccess-tgt
21+
if: "${LIBDRM_INTEL}"
1222
- virtual::core::udev-tgt
1323

1424
checkoutSCM:
@@ -17,11 +27,14 @@ checkoutSCM:
1727
digestSHA256: 45ba9983b51c896406a3d654de81d313b953b76e6391e2797073d543c5f617d5
1828
stripComponents: 1
1929

30+
buildVars: [LIBDRM_INTEL]
2031
buildScript: |
32+
FEATURE=( disabled enabled )
33+
2134
mesonBuild $1 \
2235
-Dcairo-tests=disabled \
2336
-Dman-pages=disabled \
24-
-Dintel=disabled \
37+
-Dintel=${FEATURE[$LIBDRM_INTEL]} \
2538
-Dradeon=disabled \
2639
-Damdgpu=disabled \
2740
-Dnouveau=disabled \

0 commit comments

Comments
 (0)