--- /dev/null
+--- DirectFB-extra-0.9.9/configure.in.orig Thu Jan 10 19:49:32 2002
++++ DirectFB-extra-0.9.9/configure.in Wed Nov 6 23:40:30 2002
+@@ -114,6 +114,8 @@
+ #
+ # OpenQuicktime check
+ #
++AC_ARG_ENABLE(openquicktime, [ --disable-openquicktime disable openquicktime plugin [default=yes]],, enable_openquicktime=yes)
++if test "x$enable_openquicktime" = xyes ; then
+ AC_CHECK_LIB(openquicktime, quicktime_open, openquicktime="yes", openquicktime="no")
+ if test "x$openquicktime" = xyes; then
+ OPENQUICKTIME_LIBS="-lopenquicktime"
+@@ -127,7 +129,9 @@
+ fi
+
+ AC_SUBST(OPENQUICKTIME_LIBS)
+-
++else
++ openquicktime=no
++fi
+ AM_CONDITIONAL(OPENQUICKTIME, test "x$openquicktime" = xyes)
+
+
+@@ -135,6 +139,8 @@
+ # Imlib2 check
+ #
+
++AC_ARG_ENABLE(imlib2, [ --disable-imlib2 disable imlib2 plugin [default=yes]],, enable_imlib2=yes)
++if test "x$enable_imlib2" = xyes ; then
+ AC_PATH_PROG(IMLIB2_CONFIG, imlib2-config, no)
+ if test "x$IMLIB2_CONFIG" = xno; then
+ AC_MSG_WARN([*** Imlib2 library not found, building without Imlib2 support ***])
+@@ -147,7 +153,9 @@
+
+ AC_SUBST(IMLIB2_LIBS)
+ AC_SUBST(IMLIB2_INCLUDES)
+-
++else
++ imlib2=no
++fi
+ AM_CONDITIONAL(IMLIB2, test "x$imlib2" = xyes)
+
+
+@@ -161,7 +169,7 @@
+ AM_CONDITIONAL(ENABLE_DEBUG, test "x$enable_debug" = xyes)
+
+
+-if test x$cflags_set != xset ; then
++if test "x$cflags_set" != "xset" ; then
+ DFB_CFLAGS="$DFB_CFLAGS $CFLAGS"
+ fi
+
License: LGPL v2+
Group: Libraries
Source0: http://www.directfb.org/download/DirectFB-extra/%{name}-%{version}.tar.gz
+Patch0: %{name}-acfix.patch
URL: http://www.directfb.org/
BuildRequires: DirectFB-devel >= %{version}
BuildRequires: autoconf
BuildRequires: automake
-BuildRequires: imlib2-devel
+#BuildRequires: imlib2-devel
BuildRequires: openquicktime-devel
-BuildRequires: pkgconfig
+BuildRequires: pkgconfig >= 0.5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define dfbdir %(pkg-config --variable=moduledir directfb-internal)
%prep
%setup -q
+%patch -p1
%build
%{__aclocal}
%{__autoconf}
%{__autoheader}
%{__automake}
-%configure
+%configure \
+ --disable-imlib2
%{__make} MODULEDIR=%{dfbdir}
%clean
rm -rf $RPM_BUILD_ROOT
-%files -n DirectFB-image-imlib2
-%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog README
-%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.??
+#%files -n DirectFB-image-imlib2
+#%defattr(644,root,root,755)
+#%doc AUTHORS ChangeLog README
+#%attr(755,root,root) %{dfbdir}/interfaces/IDirectFBImageProvider/libidirectfbimageprovider_imlib2.??
%files -n DirectFB-video-openquicktime
%defattr(644,root,root,755)