]> git.pld-linux.org Git - packages/SDL.git/commitdiff
- added bcond_without static_libs
authorwitekfl <witekfl@pld-linux.org>
Sat, 18 Aug 2007 05:45:52 +0000 (05:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    SDL.spec -> 1.162

SDL.spec

index 7a29c3aab06b7ac2de4ba741cf70f2b7ee6b16d4..8500537387038c8033875539fe1dac33243a6cd5 100644 (file)
--- a/SDL.spec
+++ b/SDL.spec
@@ -9,6 +9,7 @@
 %bcond_without alsa            # without ALSA audio support
 %bcond_without arts            # without aRts audio support
 %bcond_without esd             # without EsounD audio support
+%bcond_without static_libs     # don't build static libraries
 #
 # NOTE: the following libraries are dlopened by soname detected at build time:
 # libasound.so.2
@@ -198,7 +199,8 @@ SDL - przykładowe programy.
        --enable-video-x11-xme \
        --enable-video-x11-xrandr \
        --enable-video-x11-xv \
-       --with-x
+       --with-x \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -238,9 +240,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/sdl.pc
 %{_mandir}/man3/*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libSDL.a
+%endif
 
 %files examples
 %defattr(644,root,root,755)
This page took 0.074403 seconds and 4 git commands to generate.