From 9a1db8ec4ee4ede35348104ab72459011d6cee33 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 27 Apr 2012 14:00:03 +0200 Subject: [PATCH] plymouth: Disable requirement of libdrm_intel on non x86-arches. --- plymouth/plymouth.nm | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/plymouth/plymouth.nm b/plymouth/plymouth.nm index 7d77e6f39..c46ceb71c 100644 --- a/plymouth/plymouth.nm +++ b/plymouth/plymouth.nm @@ -5,7 +5,7 @@ name = plymouth version = 0.8.4 -release = 1 +release = 2 groups = System/Base url = http://www.freedesktop.org/wiki/Software/Plymouth @@ -29,13 +29,24 @@ build cairo-devel glib2-devel pkgconfig(libdrm) - pkgconfig(libdrm_intel) pkgconfig(libdrm_radeon) pkgconfig(libdrm_nouveau) libpng-devel pango-devel end + enable_libdrm_intel = 0 + + if "%{DISTRO_MACHINE}" == "x86_64" + enable_libdrm_intel = 1 + requires += pkgconfig(libdrm_intel) + end + + if "%{DISTRO_MACHINE}" == "i686" + enable_libdrm_intel = 1 + requires += pkgconfig(libdrm_intel) + end + CFLAGS += -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include configure_options += \ @@ -52,6 +63,10 @@ build --without-rhgb-compat-link \ --without-log-viewer + if "%{enable_libdrm_intel}" == "0" + configure_options += --disable-libdrm_intel + end + prepare_cmds autoreconf -vfi end -- 2.39.2