summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/libdrm.spec32
1 files changed, 30 insertions, 2 deletions
diff --git a/packaging/libdrm.spec b/packaging/libdrm.spec
index cd3cc145..496b1505 100644
--- a/packaging/libdrm.spec
+++ b/packaging/libdrm.spec
@@ -58,19 +58,36 @@ Summary: Userspace interface to intel graphics kernel DRM buffer manageme
%description intel
Userspace interface to intel graphics kernel DRM buffer management files
+%package freedreno
+Summary: Userspace interface to freedreno graphics kernel drm buffer management
+requires: libdrm = %{version}-%{release}
+
+%description freedreno
+Userspace interface to freedreno graphics kernel drm buffer management files
+
+%package freedreno-devel
+Summary: headers and developement files for freedreno drm services
+requires: libdrm = %{version}-%{release}
+requires: libdrm-devel = %{version}-%{release}
+requires: libkms = %{version}-%{release}
+
+%description freedreno-devel
+Direct rendering manager headers and development related files for freedreno.
+
%prep
%setup -q
cp %{SOURCE1001} .
%build
-export CFLAGS+=" -fPIE -Wno-format-truncation"
+export CFLAGS+=" -fPIE -Wno-format-truncation -fno-strict-aliasing"
meson setup --prefix /usr --libdir %{_libdir} \
-Dudev=true \
-Dlibkms=true \
-Dradeon=false \
-Damdgpu=false \
-Dnouveau=false \
- -Dfreedreno=false \
+ -Dfreedreno=true \
+ -Dfreedreno-kgsl=true \
%ifarch i586 i686 %ix86 x86_64
-Dintel=true \
%endif
@@ -107,6 +124,7 @@ ninja -C builddir install
%{_libdir}/libdrm_exynos.so.*
%{_libdir}/libdrm_vigs.so.*
%{_libdir}/libdrm_nexell.so.*
+%{_libdir}/libdrm_freedreno.so.*
%files tools
%manifest %{name}.manifest
@@ -163,3 +181,13 @@ ninja -C builddir install
%manifest %{name}.manifest
%{_libdir}/libdrm_intel.so.*
%endif
+
+%files freedreno
+%{_libdir}/libdrm_freedreno.so.*
+
+%files freedreno-devel
+%manifest %{name}.manifest
+%dir %{_includedir}/freedreno
+%{_includedir}/freedreno/*.h
+%{_libdir}/libdrm_freedreno.so
+%{_libdir}/pkgconfig/libdrm_freedreno.pc