OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   12-Sep-2006 08:41:09
  Branch: HEAD                             Handle: 2006091207410800

  Added files:
    openpkg-src/giflib      giflib.patch
  Modified files:
    openpkg-src/giflib      giflib.spec

  Log:
    fix Autoconf feature tests (this indirectly fixes the building under
    Solaris 9)

  Summary:
    Revision    Changes     Path
    1.1         +20 -0      openpkg-src/giflib/giflib.patch
    1.27        +10 -2      openpkg-src/giflib/giflib.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/giflib/giflib.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 giflib.patch
  --- /dev/null 2006-09-12 08:38:59 +0200
  +++ giflib.patch      2006-09-12 08:41:08 +0200
  @@ -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]
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/giflib/giflib.spec
  ============================================================================
  $ cvs diff -u -r1.26 -r1.27 giflib.spec
  --- openpkg-src/giflib/giflib.spec    24 May 2006 18:51:38 -0000      1.26
  +++ openpkg-src/giflib/giflib.spec    12 Sep 2006 06:41:08 -0000      1.27
  @@ -38,7 +38,7 @@
   Group:        Graphics
   License:      LGPL
   Version:      %{V_main}
  -Release:      20060524
  +Release:      20060912
   
   #   package options
   %option       with_tools  no
  @@ -46,11 +46,12 @@
   #   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 @@
   %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 \
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to