commit e03499dd5ca672539317e632e0de3be1f6175fed
Author: Elan Ruusamäe <g...@pld-linux.org>
Date:   Tue Nov 27 17:02:58 2018 +0200

    add freeimage bcond

 megacmd.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/megacmd.spec b/megacmd.spec
index 68cd4c0..0e8b293 100644
--- a/megacmd.spec
+++ b/megacmd.spec
@@ -1,8 +1,9 @@
 #
 # Conditional build:
+%bcond_without ffmpeg                  # build with ffmpeg for thumbnails and 
previews
+%bcond_without freeimage               # build with freeimage to manage 
thumbnails/previews
 %bcond_without fuse                    # build megafuse
 %bcond_without libmediainfo    # build with libmediainfo for media file 
attributes
-%bcond_without ffmpeg                  # build with ffmpeg for thumbnails and 
previews
 
 Summary:       Command Line Interactive and Scriptable Application to access 
MEGA
 Name:          megacmd
@@ -17,7 +18,7 @@ Source1:      
https://github.com/meganz/sdk/archive/f3a3b810/mega-sdk-v3.4.0-216-gf3a
 # Source1-md5: dccc60aa2ac5680a719b74bc0968984f
 Patch0:                libtool.patch
 URL:           https://mega.nz/
-BuildRequires: FreeImage-devel
+%{?with_freeimage:BuildRequires:       FreeImage-devel}
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: c-ares-devel
@@ -82,6 +83,7 @@ autoreconf -vif
 %configure \
        ac_cv_prog_HAVE_CPPCHECK=/usr/bin/cppcheck \
        %{__with_without ffmpeg} \
+       %{__with_without freeimage} \
        %{__with_without fuse} \
        %{__with_without libmediainfo} \
        --disable-silent-rules
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/megacmd.git/commitdiff/e03499dd5ca672539317e632e0de3be1f6175fed

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to