]> git.pld-linux.org Git - packages/libx264.git/commitdiff
add static_libs bcond master
authorJan Palus <atler@pld-linux.org>
Sat, 6 Apr 2024 17:36:10 +0000 (19:36 +0200)
committerJan Palus <atler@pld-linux.org>
Sat, 6 Apr 2024 17:36:10 +0000 (19:36 +0200)
libx264.spec

index 2a5065c2ac28654a5592a5bd1165b8da420e03cd..8304db8effeef7c3e797f7012597b4d10e9fec2e 100644 (file)
@@ -3,6 +3,7 @@
 %bcond_with    bootstrap       # no ffmpeg/gpac support in x264 utility
 %bcond_without asm             # disable asm
 %bcond_without lsmash          # lsmash for MP4 (preferred over gpac)
+%bcond_without static_libs     # static library
 
 %ifnarch %{ix86} %{x8664} aarch64
 %undefine      with_asm
@@ -119,7 +120,7 @@ CC="%{__cc}" \
        %{!?with_asm:--disable-asm} \
        --enable-pic \
        --enable-shared \
-       --enable-static
+       %{?with_static_libs:--enable-static}
 
 %{__make}
 
@@ -147,9 +148,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/x264_config.h
 %{_pkgconfigdir}/x264.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libx264.a
+%endif
 
 %files -n x264
 %defattr(644,root,root,755)
This page took 0.18645 seconds and 4 git commands to generate.