]> git.pld-linux.org Git - packages/SDL2_image.git/commitdiff
add static_libs bcond
authorJan Palus <atler@pld-linux.org>
Wed, 6 Dec 2023 10:34:14 +0000 (11:34 +0100)
committerJan Palus <atler@pld-linux.org>
Wed, 6 Dec 2023 10:34:14 +0000 (11:34 +0100)
SDL2_image.spec

index 99862db51b48838e5c58a987504c5f54a1335614..2a8acd24c26ccef265e747ed632cd65fa27adb3e 100644 (file)
@@ -2,6 +2,7 @@
 # Conditional build:
 %bcond_without avif            # AV1 Image File Format support
 %bcond_without jxl             # JPEG XL support
+%bcond_without static_libs     # static library
 
 Summary:       Simple DirectMedia Layer 2 - Sample Image Loading Library
 Summary(pl.UTF-8):     Przykładowa biblioteka do ładowania obrazków dla SDL2
@@ -104,6 +105,7 @@ Bibliotecas estáticas para desenvolvimento de aplicações SDL2.
 %{__autoconf}
 %{__automake}
 %configure \
+       %{__enable_disable static_libs static} \
        --disable-stb-image \
        %{__enable_disable avif} \
        --enable-avif-shared \
@@ -163,6 +165,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/SDL2/SDL_image.h
 %{_pkgconfigdir}/SDL2_image.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libSDL2_image.a
+%endif
This page took 0.170856 seconds and 4 git commands to generate.