--- /dev/null
+--- SDL-1.2/src/hermes/Makefile.am.orig 2003-05-29 06:23:03.000000000 +0200
++++ SDL-1.2/src/hermes/Makefile.am 2003-07-31 22:54:05.000000000 +0200
+@@ -7,7 +7,7 @@
+ SUFFIXES = .asm
+
+ .asm.lo:
+- $(LIBTOOL) --mode=compile $(STRIP_FPIC) $(NASM) @NASMFLAGS@ $< -o $*.o
++ $(LIBTOOL) --mode=compile --tag=NASM $(STRIP_FPIC) $(NASM) @NASMFLAGS@ $< -o $*.o
+
+ ###########################################################################
+
Patch5: %{name}-no_rpath_in_sdl-config.patch
Patch6: %{name}-noobjc.patch
Patch7: %{name}-am17.patch
+Patch8: %{name}-lt15.patch
URL: http://www.libsdl.org/
BuildRequires: OpenGL-devel
BuildRequires: XFree86-devel >= 4.0.2
BuildRequires: automake
%{!?_without_esound:BuildRequires: esound-devel}
%{?_with_ggi:BuildRequires: libggi-devel}
-BuildRequires: libtool
+BuildRequires: libtool >= 2:1.4d
%{?_with_nas:BuildRequires: nas-devel}
%ifarch %{ix86}
BuildRequires: nasm
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
+
+# get COPY_ARCH_SRC, remove the rest
+head -n 16 acinclude.m4 > acinclude.tmp
+mv -f acinclude.tmp acinclude.m4
-%build
find . -type d -name CVS -print | xargs rm -rf {} \;
+
+%build
rm -f missing libtool
%{__libtoolize}
%{__aclocal}
%{__automake}
%{__autoconf}
-SED=sed ; export SED
%configure \
%ifarch %{ix86}
--enable-nasm \
%{?_with_ggi:--enable-video-ggi} \
%{!?_with_nas:--disable-nas} \
%{?_with_svga:--enable-video-svga} \
-%ifnarch sparc sparc64
- %{!?_without_alsa:--enable-alsa} \
-%endif
+ %{?_without_alsa:--disable-alsa} \
%{!?_without_esound:--enable-esd} \
%{!?_without_arts:--enable-arts} \
%{?_without_arts:--disable-arts}
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-SED=sed ; export SED
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
m4datadir=%{_aclocaldir}