]> git.pld-linux.org Git - packages/megacmd.git/commitdiff
add freeimage bcond
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Nov 2018 15:02:58 +0000 (17:02 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 27 Nov 2018 15:02:58 +0000 (17:02 +0200)
megacmd.spec

index 68cd4c0e70e45f581eadc41d65e7f0e9f998090d..0e8b293340664e027bbc05dfb4d754e196ce321d 100644 (file)
@@ -1,8 +1,9 @@
 #
 # Conditional build:
 #
 # 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 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
 
 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/
 # 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
 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} \
 %configure \
        ac_cv_prog_HAVE_CPPCHECK=/usr/bin/cppcheck \
        %{__with_without ffmpeg} \
+       %{__with_without freeimage} \
        %{__with_without fuse} \
        %{__with_without libmediainfo} \
        --disable-silent-rules
        %{__with_without fuse} \
        %{__with_without libmediainfo} \
        --disable-silent-rules
This page took 0.154701 seconds and 4 git commands to generate.