Fix build
This commit is contained in:
parent
94d0ddc2e4
commit
49fd6166fe
23
libdc1394-sdl.patch
Normal file
23
libdc1394-sdl.patch
Normal file
@ -0,0 +1,23 @@
|
||||
diff -Naur libdc1394-2.2.6.old/configure.ac libdc1394-2.2.6/configure.ac
|
||||
--- libdc1394-2.2.6.old/configure.ac 2022-05-31 18:11:17.320426983 +0200
|
||||
+++ libdc1394-2.2.6/configure.ac 2022-05-31 18:11:32.882714398 +0200
|
||||
@@ -45,12 +45,6 @@
|
||||
[AC_DEFINE(HAVE_LIBUSB,[],[Defined if libusb is present])],
|
||||
[AC_MSG_WARN([libusb-1.0 not found])])
|
||||
|
||||
-MIN_SDL_VERSION=1.2.4
|
||||
-AH_TEMPLATE(HAVE_LIBSDL, [SDL library])
|
||||
-AM_PATH_SDL($MIN_SDL_VERSION, [AC_DEFINE(HAVE_LIBSDL) HAVE_LIBSDL="yes"])
|
||||
-AC_SUBST(SDL_CFLAGS)
|
||||
-AC_SUBST(SDL_LIBS)
|
||||
-
|
||||
case "$host" in
|
||||
*-*-linux*)
|
||||
have_linux=true
|
||||
@@ -233,4 +227,4 @@
|
||||
Build V4L examples: ${VIDEXAMPLESMSG}"
|
||||
fi
|
||||
dnl extra newline:
|
||||
-echo ""
|
||||
\ No newline at end of file
|
||||
+echo ""
|
@ -8,6 +8,7 @@ URL: http://sourceforge.net/projects/%{name}/
|
||||
ExcludeArch: s390 s390x
|
||||
|
||||
Source: http://downloads.sourceforge.net/project/%{name}/%{name}-2/%{version}/%{name}-%{version}.tar.gz
|
||||
Patch0: %{name}-sdl.patch
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@ -50,7 +51,7 @@ This package contains tools that are useful when working and developing with
|
||||
%{name}.
|
||||
|
||||
%prep
|
||||
%autosetup
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
autoreconf -vif
|
||||
@ -88,7 +89,6 @@ done
|
||||
%doc doc/html/*
|
||||
|
||||
%files tools
|
||||
%{_bindir}/dc1394_*
|
||||
%{_bindir}/dc1394_grab_color_image
|
||||
%{_bindir}/dc1394_grab_gray_image
|
||||
%{_bindir}/dc1394_grab_partial_image
|
||||
|
Loading…
Reference in New Issue
Block a user