[packages/gpac] - added directfb bcond

charles charles at pld-linux.org
Sun Jul 22 13:43:59 CEST 2012


commit 57e5083b3f9a76c20e69c7486d344abfbfffc547
Author: Karol Krenski <charles at pld-linux.org>
Date:   Sun Jul 22 13:43:53 2012 +0200

    - added directfb bcond

 gpac.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gpac.spec b/gpac.spec
index 60efda2..71709d9 100644
--- a/gpac.spec
+++ b/gpac.spec
@@ -6,6 +6,7 @@
 #
 # Conditional build:
 %bcond_with	amr		# AMR-NB and AMR-WB (floating-point) support
+%bcond_without	directfb	# DirectFB support
 %bcond_without	faad		# AAC decoding support
 %bcond_without	ffmpeg		# ffmpeg support
 %bcond_without	freetype	# freetype support
@@ -35,7 +36,7 @@ Patch6:		%{name}-js.patch
 Patch7:		%{name}-apps.patch
 Patch8:		%{name}-export.patch
 URL:		http://gpac.sourceforge.net/
-BuildRequires:	DirectFB-devel
+%{?with_directfb:BuildRequires:	DirectFB-devel}
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	SDL-devel
 BuildRequires:	a52dec-libs-devel
@@ -193,6 +194,8 @@ chmod a+x configure
 	%{!?with_xvid:--use-xvid=no} \
 	--xulsdk-path="/usr/include/xulrunner -I/usr/include/nspr"
 
+%{!?with_directfb: sed -i 's/CONFIG_DIRECTFB.*/CONFIG_DIRECTFB=no/' config.mak}
+
 %{__make} -j1
 
 %install


More information about the pld-cvs-commit mailing list