]> git.pld-linux.org Git - packages/gpac.git/commitdiff
- added directfb bcond
authorKarol Krenski <charles@pld-linux.org>
Sun, 22 Jul 2012 11:43:53 +0000 (13:43 +0200)
committerKarol Krenski <charles@pld-linux.org>
Sun, 22 Jul 2012 11:43:53 +0000 (13:43 +0200)
gpac.spec

index 60efda27648c05c86f27bcfcafdcb0f0d558005c..71709d949676abda353b2308771773f668be4990 100644 (file)
--- 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
This page took 0.104423 seconds and 4 git commands to generate.