]> git.pld-linux.org Git - packages/libvpx.git/commitdiff
add ppc/ppc64 targets. enable shared does not work on generic target
authorElan Ruusamäe <glen@delfi.ee>
Sat, 11 Aug 2012 17:22:09 +0000 (20:22 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 11 Aug 2012 17:22:09 +0000 (20:22 +0300)
libvpx.spec

index 25b270042037790f81d2aca06954bbbd6ee67a74..671a790182cfbd223261599b388167bff888be7d 100644 (file)
@@ -23,6 +23,21 @@ BuildRequires:       sed >= 4.0
 %endif
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define        generic_target  generic-gnu
+%define        vpxtarget       %{generic_target}
+%ifarch %{x8664}
+%define        vpxtarget       x86_64-linux-gcc
+%endif
+%ifarch %{ix86}
+%define        vpxtarget       x86-linux-gcc
+%endif
+%ifarch ppc
+%define        vpxtarget       ppc32-linux-gcc
+%endif
+%ifarch ppc64
+%define        vpxtarget       ppc64-linux-gcc
+%endif
+
 %description
 VP8, a high-quality video codec.
 
@@ -64,16 +79,10 @@ CFLAGS="%{rpmcflags} %{rpmcppflags}" \
 ../configure \
 %if %{with asm}
        --as=yasm \
-%ifarch %{x8664}
-       --target=x86_64-linux-gcc \
-%endif
-%ifarch %{ix86}
-       --target=x86-linux-gcc \
-%endif
-%else
-       --target=generic-gnu \
-%endif
+       --target=%{vpxtarget} \
+%if "%{vpxtarget}" != "%{generic_target}"
        --enable-shared \
+%endif
        --disable-optimizations \
        --enable-vp8 \
        --enable-postproc \
This page took 0.093096 seconds and 4 git commands to generate.