#
-# TODO: Handle situations when there are no modules (most bconds turned off)
+# TODO: - Handle situations when there are no modules (most bconds turned off)
+# - make bconds work again or remove
#
# Conditional build:
%bcond_without alsa # without ALSA modules
-%bcond_without arts # without aRts module
-%bcond_without dga2 # without DGA2 module
-%bcond_without dbglib # don't build debug versions of library
-%bcond_without esd # without esound module
-%bcond_without fbcon # without framebuffer module
-%bcond_without jack # without JACK module
-%bcond_without proflib # don't debug profiling versions of library
-%bcond_without sse # build without sse
+#%%bcond_without arts # without aRts module
+#%%bcond_without dga2 # without DGA2 module
+#%%bcond_without dbglib # don't build debug versions of library
+#%%bcond_without esd # without esound module
+#%%bcond_without fbcon # without framebuffer module
+#%%bcond_without jack # without JACK module
+#%%bcond_without proflib # don't debug profiling versions of library
+#%%bcond_without sse # build without sse
%bcond_without static # don't build static versions of library
-%bcond_without svga # without svgalib module
-%bcond_without vga # without vga module
+#%%bcond_without svga # without svgalib module
+#%%bcond_without vga # without vga module
#
Summary: A game programming library
Summary(de.UTF-8): Eine Bibliothek zur Programmierung von Spielen
Summary(it.UTF-8): Una libreria per la programmazione di videogiochi
Summary(pl.UTF-8): Biblioteka do programowania gier
Name: allegro
-Version: 4.9.8
+Version: 4.9.14
Release: 0.1
License: Giftware
Group: Libraries
Source0: http://dl.sourceforge.net/alleg/%{name}-%{version}.tar.gz
-# Source0-md5: 98c4102dc5f5195576d9817d8ea00811
+# Source0-md5: 1a577fbcf4753f59049e434442c5089f
Patch0: %{name}-info.patch
Patch1: %{name}-examples.patch
Patch2: %{name}-opt.patch
Patch3: %{name}-ldflags.patch
Patch4: %{name}-frame-pointer.patch
Patch5: %{name}-config.patch
-Patch6: %{name}-headers.patch
URL: http://alleg.sourceforge.net/
%{?with_alsa:BuildRequires: alsa-lib-devel}
#%%{?with_arts:BuildRequires: artsc-devel}
%patch3 -p1
#%%patch4 -p1
#%%patch5 -p1
-#%%patch6 -p1
#find include/allegro5 -name '*.h' -print0 | xargs -0 %{__sed} -i -e 's@allegro5/@%{_headers_dir}/include/allegro5@'
#%%{__sed} -i -e 's@allegro5/@../@' include/allegro5/internal/alconfig.h