]> git.pld-linux.org Git - packages/allegro.git/commitdiff
- fix for compilation with alsa-lib-1.0.0rc2
authorJacek Konieczny <jajcus@pld-linux.org>
Mon, 29 Dec 2003 12:52:33 +0000 (12:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    allegro-alsa-1_0.patch -> 1.1
    allegro.spec -> 1.51

allegro-alsa-1_0.patch [new file with mode: 0644]
allegro.spec

diff --git a/allegro-alsa-1_0.patch b/allegro-alsa-1_0.patch
new file mode 100644 (file)
index 0000000..ab1da2f
--- /dev/null
@@ -0,0 +1,50 @@
+diff -durN -x '*~' allegro-4.1.12.orig/aclocal.m4 allegro-4.1.12/aclocal.m4
+--- allegro-4.1.12.orig/aclocal.m4     2003-11-09 18:43:06.000000000 +0000
++++ allegro-4.1.12/aclocal.m4  2004-12-29 12:33:41.454794712 +0000
+@@ -362,6 +362,13 @@
+ if test -n "$allegro_enable_alsadigi"; then
+   AC_CACHE_CHECK(for supported ALSA version for digital sound,
+   allegro_cv_support_alsadigi,
++  AC_TRY_COMPILE([#include <alsa/asoundlib.h>
++                  #if SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0
++                  #else
++                  #error
++                  #endif],,
++  [allegro_cv_support_alsadigi=yes
++   allegro_cv_alsa_version=9],
+   AC_TRY_COMPILE([#include <sys/asoundlib.h>
+                   #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
+                   #else
+@@ -376,7 +383,7 @@
+                   #endif],,
+   [allegro_cv_support_alsadigi=yes
+    allegro_cv_alsa_version=5],
+-  allegro_cv_support_alsadigi=no)))
++  allegro_cv_support_alsadigi=no))))
+   if test "X$allegro_cv_support_alsadigi" = "Xyes" && 
+      test -z "$allegro_support_modules"; then
+     LIBS="-lasound $LIBS"
+@@ -399,6 +406,13 @@
+ if test -n "$allegro_enable_alsamidi"; then
+   AC_CACHE_CHECK(for supported ALSA version for MIDI,
+   allegro_cv_support_alsamidi,
++  AC_TRY_COMPILE([#include <alsa/asoundlib.h>
++                  #if SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0
++                  #else
++                  #error
++                  #endif],,
++  [allegro_cv_support_alsamidi=yes
++   allegro_cv_alsa_version=9],
+   AC_TRY_COMPILE([#include <sys/asoundlib.h>
+                   #if SND_LIB_MAJOR == 0 && SND_LIB_MINOR == 9
+                   #else
+@@ -413,7 +427,7 @@
+                   #endif],,
+   [allegro_cv_support_alsamidi=yes
+    allegro_cv_alsa_version=5],
+-  allegro_cv_support_alsamidi=no)))
++  allegro_cv_support_alsamidi=no))))
+   if test "X$allegro_cv_support_alsamidi" = "Xyes" &&
+      test "X$allegro_cv_support_alsadigi" != "Xyes" &&
+      test -z "$allegro_support_modules"; then
+
index d09c0cc527df3dd4879fc17a7c3a5bc6f33eb0f6..1822dbc4264fdf227c9497099ea874070e34dd86 100644 (file)
@@ -28,6 +28,7 @@ Patch1:               %{name}-examples.patch
 Patch2:                %{name}-opt.patch
 Patch3:                %{name}-ldflags.patch
 Patch4:                %{name}-frame-pointer.patch
+Patch5:                %{name}-alsa-1_0.patch
 URL:           http://alleg.sourceforge.net/
 BuildRequires: XFree86-devel
 %{?with_alsa:BuildRequires:    alsa-lib-devel}
@@ -384,6 +385,7 @@ biblioteki allegro.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %{__aclocal}
This page took 0.079147 seconds and 4 git commands to generate.