Browse Source

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

master
parent
commit
4a13e1672f
  1. 20
      giflib/giflib.patch
  2. 12
      giflib/giflib.spec

20
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]

12
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 \

Loading…
Cancel
Save