From: lisu Date: Thu, 22 Jul 2010 12:27:26 +0000 (+0000) Subject: - more unified cmake section X-Git-Tag: deadbranch-1.71.2 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=444cd598c3309327378597925f54188c7e3e015c;p=packages%2Fallegro.git - more unified cmake section Changed files: allegro.spec -> 1.71.2.21 --- diff --git a/allegro.spec b/allegro.spec index d1c8c05..3d7bcaf 100644 --- a/allegro.spec +++ b/allegro.spec @@ -456,9 +456,13 @@ biblioteki allegro. install -d build cd build %cmake .. \ - -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ - %{?with_static:-DSHARED="off"} \ - %{!?with_alsa:-DWANT_ALSA="off"} + -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DMANDIR=%{_mandir} \ + -DINFODIR=%{_infodir} \ +%if "%{_lib}" == "lib64" + -DLIB_SUFFIX=64 +%endif %{__make}