diff --git a/giflib/giflib.patch b/giflib/giflib.patch new file mode 100644 index 0000000000..c5f47ae600 --- /dev/null +++ b/giflib/giflib.patch @@ -0,0 +1,20 @@ +Index: configure.ac +--- configure.ac.orig 2005-10-10 08:22:20.000000000 +0200 ++++ configure.ac 2006-09-12 08:32:26.472978472 +0200 +@@ -59,14 +59,14 @@ + + dnl Find a way to define a 32 bit integer + foundint=no +-AC_CHECK_HEADERS([sys/types.h], [ ++AC_CHECK_TYPES([u_int32_t], [ + AC_DEFINE([UINT32], u_int32_t, + [Set to an unsigned 32 bit integer available on this system]) + foundint=yes] + ) + + if test x$foundint != x'yes'; then +-AC_CHECK_HEADERS([stdint.h], [ ++AC_CHECK_TYPES([uint32_t], [ + AC_DEFINE([UINT32], uint32_t, + [Set to an unsigned 32 bit integer available on this system]) + foundint=yes] diff --git a/giflib/giflib.spec b/giflib/giflib.spec index 21017d5da0..d9469c89bf 100644 --- a/giflib/giflib.spec +++ b/giflib/giflib.spec @@ -38,7 +38,7 @@ Class: PLUS Group: Graphics License: LGPL Version: %{V_main} -Release: 20060524 +Release: 20060912 # package options %option with_tools no @@ -46,11 +46,12 @@ Release: 20060524 # list of sources Source0: http://switch.dl.sourceforge.net/sourceforge/libungif/giflib-%{V_giflib}.tar.gz Source1: http://switch.dl.sourceforge.net/sourceforge/libungif/libungif-%{V_libungif}.tar.gz +Patch0: giflib.patch # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, gcc +BuildPreReq: OpenPKG, openpkg >= 20040130, gcc, autoconf PreReq: OpenPKG, openpkg >= 20040130 AutoReq: no AutoReqProv: no @@ -77,10 +78,17 @@ AutoReqProv: no %prep %setup -q -c %setup -q -T -D -a 1 + %patch -p0 -d giflib-%{V_giflib} %build ( cd giflib-%{V_giflib} + %{l_prefix}/bin/autoconf + %{l_prefix}/bin/autoheader echo "ac_cv_lib_X11_main=no" >config.cache + AUTOCONF="true" \ + AUTOHEADER="true" \ + AUTOMAKE="true" \ + ACLOCAL="true" \ CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ ./configure \