gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash missing mkinstalldirs Makefile.am configu...


From: Rob Savoye
Subject: [Gnash-commit] gnash missing mkinstalldirs Makefile.am configu...
Date: Tue, 06 Mar 2007 18:06:14 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Rob Savoye <rsavoye>    07/03/06 18:06:13

Modified files:
        .              : missing mkinstalldirs Makefile.am configure.ac 
        libbase        : Makefile.am network.cpp 
        testsuite      : Makefile.am 
        packaging/redhat: gnash.spec 
        plugin         : plugin.cpp 
        plugin/klash   : Makefile.am 
        cygnal         : Makefile.am README 
        gui            : Makefile.am gnash.cpp gtk.cpp gtksup.h 
        macros         : boost.m4 curl.m4 ffmpeg.m4 gnashpkgtool.m4 
                         kde.m4 mysql.m4 opengl.m4 
Added files:
        packaging/redhat: rpmrc 

Log message:
        Summary: "make distcheck" now works again.
        
                * missing: Update to newer version.
                * mkinstalldirs: Update to newer version.
                * Makefile.am: Add new "olpc" target to cross build RPM using a
                non standard config triplet to force rpmbuild to work correctly,
                since it doesn't support the vendor field. Add macros/incllist
                macros/libslist to EXTRA_DIST. 
                * packaging/redhat/gnash.spec: Add support for cross building
                RPMs.
                * packaging/redhat/rpmrc: Config file for rpmbuild to convert 
non
                standard config for geode-olpc into a standard i386-olpc-linux
                build, but use the correct cross compiler.
                * plugin/plugin.cpp: Cast away the const for 
MIME_TYPES_DESCRIPTION.
                * plugin/klash/Makefile.am: Don't build klash.moc, it's built in
                gui now.
                * configure.ac: Remove --enable-fork option, it's unused. Get 
the
                root directory to look for headers and libraries for a cross 
build
                from GCC, as the path is different when building RPMs.
                * cygnal/Makefile.am: Fix spelling of noinst_HEADERS.
                * cygnal/README: Fix typo.
                * extensions/Makefile.am: Add support for other directories for
                building a distribution.
                * extensions/gtk2/Makefile.am: Include from gui directory
                too. Don't build test program by default for now.
                * gui/Makefile.am: Add XML to include paths.
                * gui/gnash.cpp: Disable network support for now.
                * gui/gtksup.h: Return the GtkWidget handle of a window.
                * libbase/Makefile.am: PTHREAD_LIBS should always be after
                BOOST_LIBS.
                * libbase/network.cpp: Tweak debug messages. Test for 
priviledged
                ports. Add support for a blocking select when waiting for a
                connection.
                * macros/boost.m4: Break when the right path is found.
                * macros/ffmpeg.m4: Handle multiple directories with -I when
                setting topdir. Print a warning if avcodec.h is found, but
                avformat.h is not.
                * macros/gnashpkgtool.m4: Don't create an enable option for
                everything, it's confusing.
                * macros/kde.m4: Look in incllist as well as libslist for QT
                headers.
                * testsuite/Makefile.am: Add generic-testrunner.sh to 
dist_noinst_SCRIPTS.
                * testsuite/misc-ming.all/Makefile.am: Add intervalTest.as to
                EXTRA_DIST.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/missing?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/mkinstalldirs?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/Makefile.am?cvsroot=gnash&r1=1.63&r2=1.64
http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.268&r2=1.269
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/Makefile.am?cvsroot=gnash&r1=1.58&r2=1.59
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/network.cpp?cvsroot=gnash&r1=1.20&r2=1.21
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/Makefile.am?cvsroot=gnash&r1=1.30&r2=1.31
http://cvs.savannah.gnu.org/viewcvs/gnash/packaging/redhat/gnash.spec?cvsroot=gnash&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/gnash/packaging/redhat/rpmrc?cvsroot=gnash&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/plugin.cpp?cvsroot=gnash&r1=1.71&r2=1.72
http://cvs.savannah.gnu.org/viewcvs/gnash/plugin/klash/Makefile.am?cvsroot=gnash&r1=1.27&r2=1.28
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/Makefile.am?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/cygnal/README?cvsroot=gnash&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/Makefile.am?cvsroot=gnash&r1=1.59&r2=1.60
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gnash.cpp?cvsroot=gnash&r1=1.65&r2=1.66
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtk.cpp?cvsroot=gnash&r1=1.73&r2=1.74
http://cvs.savannah.gnu.org/viewcvs/gnash/gui/gtksup.h?cvsroot=gnash&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/boost.m4?cvsroot=gnash&r1=1.31&r2=1.32
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/curl.m4?cvsroot=gnash&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/ffmpeg.m4?cvsroot=gnash&r1=1.32&r2=1.33
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/gnashpkgtool.m4?cvsroot=gnash&r1=1.38&r2=1.39
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/kde.m4?cvsroot=gnash&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/mysql.m4?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/macros/opengl.m4?cvsroot=gnash&r1=1.28&r2=1.29

Patches:
Index: missing
===================================================================
RCS file: /sources/gnash/gnash/missing,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- missing     17 Jan 2007 13:59:57 -0000      1.2
+++ missing     6 Mar 2007 18:06:12 -0000       1.3
@@ -1,9 +1,9 @@
 #! /bin/sh
 # Common stub for a few missing GNU programs while installing.
 
-scriptversion=2004-09-07.08
+scriptversion=2005-06-08.21
 
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
 #   Free Software Foundation, Inc.
 # Originally by Fran,cois Pinard <address@hidden>, 1996.
 
@@ -19,8 +19,8 @@
 
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
 
 # As a special exception to the GNU General Public License, if you
 # distribute this file as part of a program that contains a
@@ -87,12 +87,12 @@
   yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
 
 Send bug reports to <address@hidden>."
-    exit 0
+    exit $?
     ;;
 
   -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
     echo "missing $scriptversion (GNU Automake)"
-    exit 0
+    exit $?
     ;;
 
   -*)
@@ -288,14 +288,18 @@
          call might also be the consequence of using a buggy \`make' (AIX,
          DU, IRIX).  You might want to install the \`Texinfo' package or
          the \`GNU make' package.  Grab either from any GNU archive site."
+    # The file to touch is that specified with -o ...
     file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
     if test -z "$file"; then
-      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
-      # <anything>.ext => <anything>.info
-      file=`echo "$file" | sed 's/\.[^\.]*/.info/'`
-      #file=`sed -n '/address@hidden/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
-    fi
-    echo "touch $file (cwd $PWD)"
+      # ... or it is the one specified with @setfilename ...
+      infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+      file=`sed -n '/address@hidden/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
+      # ... or it is derived from the source name (dir/f.texi becomes f.info)
+      test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+    fi
+    # If the file does not exist, the user really needs makeinfo;
+    # let's fail without touching anything.
+    test -f $file || exit 1
     touch $file
     ;;
 

Index: mkinstalldirs
===================================================================
RCS file: /sources/gnash/gnash/mkinstalldirs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- mkinstalldirs       10 Mar 2006 15:15:13 -0000      1.2
+++ mkinstalldirs       6 Mar 2007 18:06:12 -0000       1.3
@@ -1,7 +1,7 @@
 #! /bin/sh
 # mkinstalldirs --- make directory hierarchy
 
-scriptversion=2005-02-02.21
+scriptversion=2005-06-29.22
 
 # Original author: Noah Friedman <address@hidden>
 # Created: 1993-05-16
@@ -12,7 +12,7 @@
 # <address@hidden>.
 
 errstatus=0
-dirmode=""
+dirmode=
 
 usage="\
 Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
@@ -103,13 +103,21 @@
 
 for file
 do
-  set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
+  case $file in
+    /*) pathcomp=/ ;;
+    *)  pathcomp= ;;
+  esac
+  oIFS=$IFS
+  IFS=/
+  set fnord $file
   shift
+  IFS=$oIFS
 
-  pathcomp=
   for d
   do
-    pathcomp="$pathcomp$d"
+    test "x$d" = x && continue
+
+    pathcomp=$pathcomp$d
     case $pathcomp in
       -*) pathcomp=./$pathcomp ;;
     esac
@@ -124,7 +132,7 @@
       else
        if test ! -z "$dirmode"; then
          echo "chmod $dirmode $pathcomp"
-         lasterr=""
+         lasterr=
          chmod "$dirmode" "$pathcomp" || lasterr=$?
 
          if test ! -z "$lasterr"; then
@@ -134,7 +142,7 @@
       fi
     fi
 
-    pathcomp="$pathcomp/"
+    pathcomp=$pathcomp/
   done
 done
 

Index: Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/Makefile.am,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -b -r1.63 -r1.64
--- Makefile.am 12 Feb 2007 23:49:10 -0000      1.63
+++ Makefile.am 6 Mar 2007 18:06:12 -0000       1.64
@@ -15,7 +15,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 # 
 
-# $Id: Makefile.am,v 1.63 2007/02/12 23:49:10 strk Exp $
+# $Id: Makefile.am,v 1.64 2007/03/06 18:06:12 rsavoye Exp $
 
 ## Process this file with automake to produce Makefile.in
 AUTOMAKE_OPTIONS = 1.6.0
@@ -62,7 +62,7 @@
 
 DIST_SUBDIRS = $(STD_DIRS) doc plugin cygnal extensions
 
-EXTRA_DIST= $(man_MANS)
+EXTRA_DIST= $(man_MANS) macros/incllist macros/libslist
 #EXTRA_DIST = macros
 # if HTTP
 # SUBDIRS += net $(STD_DIRS)
@@ -72,10 +72,17 @@
 
 noinst_HEADERS = compatibility_include.h
 
+# # Build an RPM package targeted to the OLPC http://www.laptop.org.
+# olpc: dist-gzip $(srcdir)/packaging/redhat/gnash.spec
+#      cp -f $(srcdir)/packaging/redhat/gnash.spec /usr/src/redhat/SPECS/
+#      cp -f gnash-$(VERSION).tar.gz /usr/src/redhat/SOURCES/
+#      rpmbuild -rcfile=$(srcdir)/packaging/redhat/rpmrc:/usr/lib/rpm/rpmrc \
+#               -ba --target=geode-olpc /usr/src/redhat/SPECS/gnash.spec
+
 # Build an RPM package
 rpm redhat: dist-gzip $(srcdir)/packaging/redhat/gnash.spec
        cp -f $(srcdir)/packaging/redhat/gnash.spec /usr/src/redhat/SPECS/
-       cp -f gnash-${VERSION}.tar.gz /usr/src/redhat/SOURCES/
+       cp -f gnash-$(VERSION).tar.gz /usr/src/redhat/SOURCES/
        rpmbuild -ba /usr/src/redhat/SPECS/gnash.spec
 
 # Build a Debian GNU/Linux package

Index: configure.ac
===================================================================
RCS file: /sources/gnash/gnash/configure.ac,v
retrieving revision 1.268
retrieving revision 1.269
diff -u -b -r1.268 -r1.269
--- configure.ac        3 Mar 2007 15:48:37 -0000       1.268
+++ configure.ac        6 Mar 2007 18:06:12 -0000       1.269
@@ -15,7 +15,7 @@
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 dnl  
 
-dnl $Id: configure.ac,v 1.268 2007/03/03 15:48:37 martinwguy Exp $
+dnl $Id: configure.ac,v 1.269 2007/03/06 18:06:12 rsavoye Exp $
 
 AC_PREREQ(2.50)
 AC_INIT(gnash, cvs)
@@ -54,17 +54,6 @@
 
 AC_DISABLE_STATIC dnl Disable building static libs.
 
-AC_ARG_ENABLE(fork, AC_HELP_STRING([--disable-fork],[Use a thread instead 
forking the standalone player.]),
-[case "${enableval}" in
-  yes) fork=yes ;;
-  no)  fork=no ;;
-  *)   AC_MSG_ERROR([bad value ${enableval} for --disable-fork option]) ;;
-esac],fork=yes)
-
-if test x"$fork" = x"yes"; then
-  AC_DEFINE([USE_FORK], [], [Fork player instead of thread])
-fi
-
 AC_ARG_ENABLE(debugger, AC_HELP_STRING([--disable-debugger],[Disable the Flash 
debugger]),
 [case "${enableval}" in
   yes) debugger=yes ;;
@@ -252,6 +241,7 @@
     fi
   fi
 fi
+
 dnl --------------------------------------------------------
 dnl  Select sound streamer
 dnl --------------------------------------------------------
@@ -307,9 +297,10 @@
 dnl options to configure.
 if test x$cross_compiling = xyes; then
   AC_MSG_NOTICE([Configuring Gnash for cross compilation])
-  export incllist="${prefix}/${host_alias}/include ${prefix}/include"
-  export libslist="${prefix}/${host_alias}/lib ${prefix}/lib64 ${prefix}/lib32 
${prefix}/lib"
-  export pathlist="${prefix}/${host_alias}/bin:${prefix}/bin"
+  export pkgroot=`$CXX -print-search-dirs | grep "install:" | sed -e 
's/install: //' -e 's:/lib/gcc/.*::'`
+  export incllist="${pkgroot}/${host_alias}/include ${pkgroot}/include"
+  export libslist="${pkgroot}/${host_alias}/lib ${pkgroot}/lib64 
${pkgroot}/lib32 ${pkgroot}/lib"
+  export pathlist="${pkgroot}/${host_alias}/bin:${pkgroot}/bin"
   LDFLAGS="${LDFLAGS} -Wl,--as-needed"
   plugin=no
 else

Index: libbase/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/libbase/Makefile.am,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- libbase/Makefile.am 11 Feb 2007 06:21:29 -0000      1.58
+++ libbase/Makefile.am 6 Mar 2007 18:06:12 -0000       1.59
@@ -55,9 +55,9 @@
        $(Z_LIBS) \
        $(CURL_LIBS) \
        $(OPENGL_LIBS) \
-       $(PTHREAD_LIBS) \
        $(LIBLTDL) \
        $(BOOST_LIBS) \
+       $(PTHREAD_LIBS) \
        $(NULL)
 
 if HAS_SDL
@@ -103,6 +103,7 @@
        demo.h \
        dlmalloc.h \
        extension.h \
+       embedVideoDecoder.h \
        GnashException.h \
        grid_index.h \
        image.h \

Index: libbase/network.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/network.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- libbase/network.cpp 17 Dec 2006 20:24:57 -0000      1.20
+++ libbase/network.cpp 6 Mar 2007 18:06:12 -0000       1.21
@@ -1,5 +1,5 @@
 // 
-//   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+//   Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
 // 
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -14,10 +14,6 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-// 
-//
-//
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -110,7 +106,7 @@
 bool
 Network::createServer(void)
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     
     return createServer(DEFAULTPORT);
 }
@@ -118,7 +114,7 @@
 bool
 Network::createServer(short port)
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     
     struct protoent *ppe;
     struct sockaddr_in sock_in;
@@ -126,6 +122,11 @@
     int             retries = 0;
     in_addr_t       nodeaddr;
 
+    if (port < 1024) {
+       log_error("Can't connect to priviledged port #%d!\n", port);
+       return false;
+    }
+  
     const struct hostent *host = gethostbyname("localhost");
     struct in_addr *thisaddr = reinterpret_cast<struct in_addr 
*>(host->h_addr_list[0]);
     _ipaddr = thisaddr->s_addr;
@@ -191,9 +192,11 @@
         log_msg("Host Name is %s, IP is %s", host->h_name, ascip);
 #endif
     
+       if (_debug) {
         log_msg("Server bound to service on port: %hd, %s using fd #%d\n",
                 ntohs(sock_in.sin_port), inet_ntoa(sock_in.sin_addr),
                 _listenfd);
+       }
         
         if (type == SOCK_STREAM && listen(_listenfd, 5) < 0) {
             log_msg("ERROR: unable to listen on port: %hd: %s ",
@@ -218,7 +221,7 @@
 bool
 Network::newConnection(void)
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     
     return newConnection(true);
 }
@@ -226,7 +229,7 @@
 bool
 Network::newConnection(bool block)
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     
     struct sockaddr    newfsin;
     socklen_t          alen;
@@ -300,7 +303,9 @@
         return false;
     }
   
+    if (_debug) {
     log_msg("Accepting tcp/ip connection on fd #%d\n", _sockfd);
+    }
 
     return true;
 }
@@ -456,7 +461,7 @@
 bool
 Network::closeNet()
 {  
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     
     if (_sockfd > 0) {
         closeNet(_sockfd);
@@ -470,7 +475,7 @@
 bool
 Network::closeNet(int sockfd)
 {
-    GNASH_REPORT_FUNCTION;
+//    GNASH_REPORT_FUNCTION;
     
     int retries = 0;
     
@@ -578,14 +583,13 @@
         FD_ZERO(&fdset);
         FD_SET(fd, &fdset);
 
-        // Reset the timeout value, since select modifies it on return
-        // Reset the timeout value, since select modifies it on return
-        if (timeout <= 0) {
-            timeout = 5;
-        }
-        tval.tv_sec = timeout;
+        if (timeout < 0) {
+           tval.tv_sec = 5;
         tval.tv_usec = 0;
         ret = select(fd+1, &fdset, NULL, NULL, &tval);
+        } else {
+           ret = select(fd+1, &fdset, NULL, NULL, NULL);
+       }
         
         // If interupted by a system call, try again
         if (ret == -1 && errno == EINTR) {
@@ -606,9 +610,11 @@
         }
     
         ret = read(fd, buffer, nbytes);
+       if (_debug) {
         dbglogfile << "read " << ret << " bytes from fd #"
                    << fd << endl;
     }
+    }
     
     return ret;
 
@@ -712,12 +718,16 @@
         if (ret > 0) {
             bufptr += ret;
             if (ret != nbytes) {
+               if (_debug) {
                 dbglogfile << "wrote " << ret << " bytes to fd #" << fd
                            << " expected " << nbytes << endl;
+               }
 //                retries++;
             } else {
+               if (_debug) {
                 dbglogfile << "wrote " << ret << " bytes to fd #"
                            << fd << endl;
+               }
                 return ret;
             }
             

Index: testsuite/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/Makefile.am,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- testsuite/Makefile.am       28 Feb 2007 14:10:25 -0000      1.30
+++ testsuite/Makefile.am       6 Mar 2007 18:06:12 -0000       1.31
@@ -15,7 +15,7 @@
 
 EXTRA_DIST = check.h DummyMovieDefinition.h DummyCharacter.h media
 
-dist_noinst_SCRIPTS = anaylse-results.sh
+dist_noinst_SCRIPTS = anaylse-results.sh generic-testrunner.sh
 
 # could not find a way to only build this on make check
 check_LTLIBRARIES = libtestsuite.la 

Index: packaging/redhat/gnash.spec
===================================================================
RCS file: /sources/gnash/gnash/packaging/redhat/gnash.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- packaging/redhat/gnash.spec 24 Nov 2006 22:33:00 -0000      1.12
+++ packaging/redhat/gnash.spec 6 Mar 2007 18:06:12 -0000       1.13
@@ -1,38 +1,44 @@
+%define version 20070306
 Name:           gnash
-Version:        0.7.2
+Version:        %{version}
 Release:        1%{?dist}
 Summary:        GNU flash movie player
 
 Group:          Applications/Multimedia
+Vendor:                Gnash Project
+Packager:      Rob Savoye <address@hidden>
 License:        GPL
 URL:            http://www.gnu.org/software/gnash/
 Source0:        
http://www.gnu.org/software/gnash/releases/%{name}-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%{_target_cpu}
 
-BuildRequires:  libxml2-devel libpng-devel libjpeg-devel libogg-devel
-BuildRequires:  boost-devel curl-devel 
+#AutoReqProv: no
+
+BuildRequires:  libxml2 libpng libjpeg libogg
+BuildRequires:  gtk2 libX11 agg
+# BuildRequires:  boost curl
 # the opengl devel packages are required by gtkglext-devel
 # monolithic Xorg
 #BuildRequires:  xorg-x11-devel
 # modular Xorg 
 #BuildRequires:  libGLU-devel libGL-devel
-BuildRequires:  SDL-devel 
-BuildRequires:  kdelibs-devel
-BuildRequires:  gtkglext-devel
+#BuildRequires:  gtkglext-devel
+BuildRequires:  mysql mysqlclient14
+BuildRequires:  SDL
+BuildRequires:  kdelibs
 BuildRequires:  docbook2X
-BuildRequires:  gstreamer-devel >= 0.10
-BuildRequires:  scrollkeeper
+BuildRequires:  gstreamer >= 0.10
+# BuildRequires:  scrollkeeper
 
-Requires(post): scrollkeeper
-Requires(postun): scrollkeeper
+#Requires(post): scrollkeeper
+#Requires(postun): scrollkeeper
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
 
 %description
-Gnash is a GNU Flash movie player based on GameSWF,
-and supports many SWF v7 features.
+Gnash is a GNU Flash movie player that supports many SWF v7 features.
 
 %package plugin
 Summary:   Web-client flash movie player plugin 
@@ -51,40 +57,115 @@
 %description klash
 The gnash flash movie player plugin for Konqueror.
 
+%package cygnal
+Summary:   Streaming media server
+Requires:  %{name} = %{version}-%{release}
+Group:     Applications/Multimedia
+
+%description cygnal
+Cygnal is a streaming media server that's Flash aware.
+
 %prep
 %setup -q
 
 %build
+
 [ -n "$QTDIR" ] || . %{_sysconfdir}/profile.d/qt.sh
-%configure --disable-static --with-plugindir=%{_libdir}/mozilla/plugins \
-  --enable-ghelp --enable-docbook --enable-sound=GST \
-  --disable-dependency-tracking --disable-rpath \
-  --with-qtdir=$QTDIR
-make %{?_smp_mflags}
 
+# handle cross building rpms. This gets messy when building for two
+# archtectures with the same CPU type, like x86-Linux -> OLPC. We have
+# to do this because an OLPC requires RPMs to install software, but
+# doesn't have the resources to do native builds. So this hack lets us
+# build RPM packages on one host for the OLPC, or other RPM based
+# embedded distributions.
+%if %{_target_cpu} != %{_build_arch}
+%define cross_compile 1
+%else
+%define cross_compile 0
+%endif
+%{?do_cross_compile:%define cross_compile 1}
+
+%define cross_compile 1
+%define olpc 1
+
+# Build rpms for an ARM based processor, in our case the Nokia 770/800
+# tablet. 
+%ifarch arm
+RPM_TARGET=%{_target}
+%endif
+# Build rpms for an OLPC, which although it's geode based, our
+# toolchain treat this as a stock i386. Our toolchain has geode
+# specific optimizations added, which was properly handled by setting
+# the vendor field of the config triplet to olpc. Since rpm has no
+# concept of a vendor other than Redhat, we force it to use the proper
+# config triplet so configure uses the correct cross compiler.
+%if %{olpc}
+%define _target_platform %{_build_cpu}-%{_build_os}-linux
+RPM_TARGET=i386-olpc-linux
+%endif
+
+%if %{cross_compile}
+# cross building an RPM. This works as long as you have a good cross
+# compiler installed. We currently do want to cross compile the
+# Mozilla plugin, but not the Konqueror one till we make KDE work
+# better than it does now.
+  CROSS_OPTS="--build=%{_host} --host=$RPM_TARGET --target=$RPM_TARGET"
+  RENDERER="--enable-renderer=agg"             # could be opengl
+  %ifarch arm
+    SOUND="--disable-sound --disable-plugin --disable-klash"
+  %else
+    SOUND="--enable-sound=gst"                 # could also be sdl
+  %endif
+# The OLPC is a weird case, it's basically an i386-linux toolchain
+# targeted towards Fedora Core 6. The machine itself is too limited to
+# build RPMs on, so we do it this way.
+  %if olpc
+    CROSS_OPTS="$CROSS_OPTS --disable-klash"
+    SOUND="--enable-sound=gst" # could be sdl
+  %endif
+%else
+# Native RPM build
+  CROSS_OPTS="--enable-ghelp --enable-docbook"
+  SOUND="--enable-sound=sdl --with-mp3-decoder=ffmpeg"
+  RENDERER=""
+%endif
+
+# The default options for the configure aren't suitable for
+# cross configuring, so we force them to be what we know is correct.
+# export CONFIG_SHELL="sh -x"
+# sh -x ./configure \
+./configure \
+       --with-qtdir=$QTDIR \
+       $CROSS_OPTS \
+       $SOUND \
+       $RENDERER \
+       --disable-static \
+       --disable-dependency-tracking \
+       --disable-rpath \
+       --enable-extensions \
+        --prefix=%{_prefix} \
+       --with-plugindir=%{_libdir}/mozilla/plugins
+
+make CXXFLAGS="-g" dumpconfig all
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
-rm $RPM_BUILD_ROOT/%{_libdir}/*.la
-rm \
- $RPM_BUILD_ROOT/%{_libdir}/libgnashamf.so \
- $RPM_BUILD_ROOT/%{_libdir}/libgnashbackend.so \
- $RPM_BUILD_ROOT/%{_libdir}/libgnashbase.so \
- $RPM_BUILD_ROOT/%{_libdir}/libgnashgeo.so \
- $RPM_BUILD_ROOT/%{_libdir}/libgnashgui.so \
- $RPM_BUILD_ROOT/%{_libdir}/libgnashserver.so
-rm -rf $RPM_BUILD_ROOT/%{_localstatedir}/scrollkeeper
+rm $RPM_BUILD_ROOT%{_libdir}/*.la
+%if !%{cross_compile}
+rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %post 
 /sbin/ldconfig
+%if !%{cross_compile}
 scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
 /sbin/install-info --entry="* Gnash: (gnash). GNU Flash Player" 
%{_infodir}/%{name}.info %{_infodir}/dir || :
+%endif
 
 %preun
 if [ $1 = 0 ]; then
@@ -93,21 +174,32 @@
 
 %postun
 /sbin/ldconfig
+%if !%{cross_compile}
 scrollkeeper-update -q || :
+%endif
 
 %files
 %defattr(-,root,root,-)
+%dump
 %doc README AUTHORS COPYING NEWS 
-%doc doc/C/gnash.html 
-%doc doc/C/images
 %{_bindir}/gnash
 %{_bindir}/gparser
 %{_bindir}/gprocessor
-%{_libdir}/libgnash*-*.so
-%{_mandir}/man1/gnash*
-%{_infodir}/gnash*
-%{_datadir}/gnash/
-%{_datadir}/omf/gnash/
+%{_libdir}/libgnash*.so
+%{_libdir}/gnash/plugins/*.so
+%{_libdir}/gnash/plugins/*.la
+%{_libdir}/libltdl*
+%{_prefix}/include/ltdl.h
+%{_prefix}/share/gnash/GnashG.png
+%{_prefix}/share/gnash/gnash_128_96.ico
+%{_prefix}/man/man1/gnash.1*
+%if !%{cross_compile}
+%doc doc/C/gnash.html 
+%doc %{_prefix}/share/gnash/doc/gnash/C/images
+%{_datadir}/omf/gnash/gnash-C.omf
+%{_infodir}/gnash.info*.gz
+%{_prefix}/share/gnash/doc/gnash/C/*.xml
+%endif
 
 %files plugin
 %defattr(-,root,root,-)
@@ -115,13 +207,21 @@
 
 %files klash
 %defattr(-,root,root,-)
-%{_bindir}/klash
+%{_bindir}/gnash
+%if !%{cross_compile}
 %{_libdir}/kde3/libklashpart.*
 %{_datadir}/apps/klash/
-%{_datadir}/config/klashrc
 %{_datadir}/services/klash_part.desktop
+%endif
+
+%files cygnal
+%defattr(-,root,root,-)
+%{_bindir}/cygnal
 
 %changelog
+* Sat Mar  4 2007 Rob Savoye <address@hidden> - %{version}-%{release}
+- update for OLPC release.
+
 * Sat Nov  6 2006 Rob Savoye <address@hidden> - 0.7.2-1
 - update for 0.7.2 release.
 

Index: plugin/plugin.cpp
===================================================================
RCS file: /sources/gnash/gnash/plugin/plugin.cpp,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -b -r1.71 -r1.72
--- plugin/plugin.cpp   26 Jan 2007 19:41:41 -0000      1.71
+++ plugin/plugin.cpp   6 Mar 2007 18:06:12 -0000       1.72
@@ -14,7 +14,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-/* $Id: plugin.cpp,v 1.71 2007/01/26 19:41:41 rsavoye Exp $ */
+/* $Id: plugin.cpp,v 1.72 2007/03/06 18:06:12 rsavoye Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -84,7 +84,7 @@
 char*
 NPP_GetMIMEDescription(void)
 {
-    return MIME_TYPES_DESCRIPTION;
+    return const_cast<char *>(MIME_TYPES_DESCRIPTION);
 }
 
 //

Index: plugin/klash/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/plugin/klash/Makefile.am,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- plugin/klash/Makefile.am    19 Feb 2007 02:00:56 -0000      1.27
+++ plugin/klash/Makefile.am    6 Mar 2007 18:06:13 -0000       1.28
@@ -15,7 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-# $Id: Makefile.am,v 1.27 2007/02/19 02:00:56 rsavoye Exp $
+# $Id: Makefile.am,v 1.28 2007/03/06 18:06:13 rsavoye Exp $
 
 AUTOMAKE_OPTIONS = 
 
@@ -26,6 +26,7 @@
 kde_servicesdir = $(prefix)/share/services
 rcdir       = $(prefix)/share/apps/klash
 appsdatadir = $(prefix)/share/apps/klash
+configdir = $(prefix)/share/config
 
 plugin_LTLIBRARIES= libklashpart.la
 
@@ -40,11 +41,12 @@
 dist_kde_services_DATA = klash_part.desktop
 dist_rc_DATA = klashpartui.rc
 dist_appsdata_DATA = pluginsinfo
+#dist_config_DATA = klashrc
 
 # DIST_COMMON = $(dist_appsdata_DATA) $(dist_kde_services_DATA) $(dist_rc_DATA)
 
-BUILT_SOURCES = klash_part.moc klash.moc
-CLEANFILES = klash_part.moc klash.moc
+BUILT_SOURCES = klash_part.moc
+CLEANFILES = klash_part.moc
 
 klash_part.moc: $(srcdir)/klash_part.h
        @if test x"$(MOC)" != x; then \
@@ -55,15 +57,6 @@
          ln -s $(srcdir)/klash_part.moc.in klash_part.moc; \
        fi
 
-klash.moc: $(srcdir)/klash.cpp
-       @if test x"$(MOC)" != x; then \
-         echo "Generating MOC file..."; \
-         $(MOC) $(srcdir)/klash.cpp -o klash.moc; \
-       else  \
-         echo "WARNING: Install QT's moc tool! Linking to default MOC file"; \
-         ln -s $(srcdir)/klash.moc.in klash.moc; \
-       fi
-
 install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
        test -d "$(DESTDIR)$(plugindir)" || $(mkinstalldirs) 
"$(DESTDIR)$(plugindir)"
 #      cp .libs/libklashpart.so $(DESTDIR)$(plugindir)/libklashpart.so
@@ -77,3 +70,5 @@
 all:
        $echo "Building klash is disabled"
 endif
+
+force:
\ No newline at end of file

Index: cygnal/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/cygnal/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- cygnal/Makefile.am  9 Jan 2007 00:43:42 -0000       1.3
+++ cygnal/Makefile.am  6 Mar 2007 18:06:13 -0000       1.4
@@ -16,7 +16,7 @@
 #   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #
 
-# $Id: Makefile.am,v 1.3 2007/01/09 00:43:42 rsavoye Exp $
+# $Id: Makefile.am,v 1.4 2007/03/06 18:06:13 rsavoye Exp $
 
 ## Process this file with automake to generate Makefile.in
 
@@ -59,7 +59,7 @@
 #      transcode.cpp
 #      flash.cpp
 
-noinst_HEADRRS = \
+noinst_HEADERS = \
        http.h \
        netstats.h \
        stream.h \

Index: cygnal/README
===================================================================
RCS file: /sources/gnash/gnash/cygnal/README,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- cygnal/README       18 Dec 2006 00:27:33 -0000      1.3
+++ cygnal/README       6 Mar 2007 18:06:13 -0000       1.4
@@ -4,8 +4,8 @@
 rough feature set for Cygnal. Some of the limitations commented on in
 these notes should be consider a place where Cygnal can do better.
 
-Flash Communication Server features:
------------------------------------
+General Communication Server features:
+-------------------------------------
 
 The most common way of streaming Flash movies is using progressive
 streaming. Progressive streams don't allow seeking within the data
@@ -31,8 +31,8 @@
 and the other are for load balancing on larger installations, like a
 cluster.
 
-The server can also transcode between codecs. The MacroMedia server
-can only real MPEG4.. Since the server is using Gstreamer, it can
+The server can also transcode between codecs. The Adobe server
+can only convert MPEG4. Since the Cygnal server is using Gstreamer, it can
 convert between any supported codec. Along with this, by using the
 statistics collected for each data transfer, the server can also
 change the resolution of the movie to adjust to varying network
@@ -81,8 +81,8 @@
 * Audio and data have the highest priority, video packets are thrown
 away to stay synchronized.
 
-Internals:
----------
+Cygnal Internals:
+----------------
 
 Since all data streams need no knowledge of other streams, each
 incoming connection will get a new thread to handle it. If the CPU

Index: gui/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/gui/Makefile.am,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -b -r1.59 -r1.60
--- gui/Makefile.am     26 Jan 2007 19:41:41 -0000      1.59
+++ gui/Makefile.am     6 Mar 2007 18:06:13 -0000       1.60
@@ -17,7 +17,7 @@
 
 # 
 
-# $Id: Makefile.am,v 1.59 2007/01/26 19:41:41 rsavoye Exp $
+# $Id: Makefile.am,v 1.60 2007/03/06 18:06:13 rsavoye Exp $
 
 AUTOMAKE_OPTIONS = 
 
@@ -30,6 +30,7 @@
         -I$(top_srcdir)/libbase \
         -I$(top_srcdir)/backend \
         -I$(top_srcdir)/libgeometry \
+        $(LIBXML_CFLAGS) \
         $(SDL_CFLAGS) \
         $(DMALLOC_CFLAGS) \
        $(BOOST_CFLAGS) \
@@ -79,10 +80,8 @@
 endif # USE_GUI_SDL
 if USE_GUI_KDE
   KDE_OPENGL_SRCS = kde_glue_opengl.cpp kde_glue_opengl.h
-  AM_LDFLAGS += \
-        $(KDE_LDFLAGS) \
-       $(LIB_KDECORE) \
-       $(LIB_KDEUI)
+  AM_CPPFLAGS += $(KDE_CFLAGS) $(QT_CFLAGS)
+  AM_LDFLAGS +=  $(KDE_LIBS) $(QT_LIBS)
   BUILT_SOURCES = klash.moc
 endif # USE_GUI_KDE
 else # ! USE_RENDERER_OPENGL

Index: gui/gnash.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gnash.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -b -r1.65 -r1.66
--- gui/gnash.cpp       6 Feb 2007 22:05:02 -0000       1.65
+++ gui/gnash.cpp       6 Mar 2007 18:06:13 -0000       1.66
@@ -216,9 +216,10 @@
               break;
           case 'g':
 #ifdef USE_DEBUGGER
+              dbglogfile << "Setting debugger ON" << std::endl;
               debugger.enabled(true);
+//              debugger.startServer(&debugger);
               debugger.console();
-              dbglogfile << "Setting debugger ON" << std::endl;
 #else
               dbglogfile << "WARNING: The debugger has been disabled at 
configuration time" << std::endl;
 #endif

Index: gui/gtk.cpp
===================================================================
RCS file: /sources/gnash/gnash/gui/gtk.cpp,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -b -r1.73 -r1.74
--- gui/gtk.cpp 3 Mar 2007 15:10:40 -0000       1.73
+++ gui/gtk.cpp 6 Mar 2007 18:06:13 -0000       1.74
@@ -14,10 +14,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-// 
-//
-
-/* $Id: gtk.cpp,v 1.73 2007/03/03 15:10:40 bjacques Exp $ */
+/* $Id: gtk.cpp,v 1.74 2007/03/06 18:06:13 rsavoye Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"

Index: gui/gtksup.h
===================================================================
RCS file: /sources/gnash/gnash/gui/gtksup.h,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- gui/gtksup.h        6 Mar 2007 17:40:04 -0000       1.36
+++ gui/gtksup.h        6 Mar 2007 18:06:13 -0000       1.37
@@ -137,7 +137,7 @@
 #endif    
 
     virtual void setCursor(gnash_cursor_type newcursor);
-    
+    GtkWidget *getWindow() { return _window; };
  private:
     GtkWidget   *_window;
     GdkPixbuf  *_window_icon_pixbuf;

Index: macros/boost.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/boost.m4,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- macros/boost.m4     25 Feb 2007 15:45:32 -0000      1.31
+++ macros/boost.m4     6 Mar 2007 18:06:13 -0000       1.32
@@ -14,7 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl $Id: boost.m4,v 1.31 2007/02/25 15:45:32 nihilus Exp $
+dnl $Id: boost.m4,v 1.32 2007/03/06 18:06:13 rsavoye Exp $
 
 dnl Boost modules are:
 dnl date-time, filesystem. graph. iostreams, program options, python,
@@ -34,9 +34,8 @@
   fi ])
 
   dnl Attempt to find the top level directory, which unfortunately has a
-  dnl version number attached. At least on Debain based systems, this
+  dnl version number attached. At least on Debian based systems, this
   dnl doesn't seem to get a directory that is unversioned.
-
   AC_MSG_CHECKING([for the Boost Version])
   if test x$cross_compiling = xno; then
     if test x"$PKG_CONFIG" != x; then
@@ -133,11 +132,16 @@
       if test -f ${ac_cv_path_boost_lib}/lib${k}.a -o -f 
${ac_cv_path_boost_lib}/lib${k}.so; then
         if test x"${ac_cv_path_boost_lib}" != x"/usr/lib"; then
          ac_cv_path_boost_lib="-L${ac_cv_path_boost_lib} -l${k}"
+          break
         else
           ac_cv_path_boost_lib="-l${k}"
+          break
         fi
       fi
     done
+         if test -f $k/libboost_date_time.a -o $k/libboost_date_time.so; then
+      ac_cv_path_boost_lib="${ac_cv_path_boost_lib} -lboost_date_time"
+    fi
   fi
   if test x"${ac_cv_path_boost_lib}" = x; then
     AC_SEARCH_LIBS(cleanup_slots, ${boostnames}, 
[ac_cv_path_boost_lib="${LIBS}"])

Index: macros/curl.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/curl.m4,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- macros/curl.m4      21 Jan 2007 22:41:02 -0000      1.13
+++ macros/curl.m4      6 Mar 2007 18:06:13 -0000       1.14
@@ -14,7 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl $Id: curl.m4,v 1.13 2007/01/21 22:41:02 rsavoye Exp $
+dnl $Id: curl.m4,v 1.14 2007/03/06 18:06:13 rsavoye Exp $
 
 AC_DEFUN([GNASH_PATH_CURL],
 [
@@ -31,7 +31,7 @@
   ])
 
   curlconfig=""
-  AC_CHECK_PROG(curlconfig, [echo], [curl-config], , ${pathlist})
+  AC_PATH_PROG(curlconfig, curl-config, ,[${pathlist}])
   if test x"${curlconfig}" != "x" ; then
     AC_MSG_CHECKING([for RTMP support])
     rtmp=`${curlconfig} --protocols|grep -c RTMP`
@@ -48,7 +48,7 @@
   if test x"${ac_cv_path_curl_incl}" = x; then
 
     AC_MSG_CHECKING([for libcurl header])
-    if test x"${curlconfig}" != "x"  -a x$cross_compiling = xno; then
+    if test x"${curlconfig}" != "x"; then
       ac_cv_path_curl_incl=`${curlconfig} --cflags`
     else
       for i in $incllist; do
@@ -88,7 +88,7 @@
   dnl If the path hasn't been specified, go look for it.
   if test x"${ac_cv_path_curl_lib}" = x; then # {
 
-    if test x"${curlconfig}" != "x"  -a x$cross_compiling = xno; then # {
+    if test x"${curlconfig}" != "x"; then # {
       ac_cv_path_curl_lib=`${curlconfig} --libs`
     else # }{
       AC_MSG_CHECKING([for libcurl library])

Index: macros/ffmpeg.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/ffmpeg.m4,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -b -r1.32 -r1.33
--- macros/ffmpeg.m4    21 Feb 2007 19:18:45 -0000      1.32
+++ macros/ffmpeg.m4    6 Mar 2007 18:06:13 -0000       1.33
@@ -14,7 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl $Id: ffmpeg.m4,v 1.32 2007/02/21 19:18:45 tgc Exp $
+dnl $Id: ffmpeg.m4,v 1.33 2007/03/06 18:06:13 rsavoye Exp $
 
 AC_DEFUN([GNASH_PATH_FFMPEG],
 [
@@ -34,7 +34,7 @@
   if test x${cross_compiling} = xno; then
     if test x"$PKG_CONFIG" != x -a x"${ac_cv_path_ffmpeg_incl}" = x; then
       $PKG_CONFIG --exists libavcodec && ac_cv_path_ffmpeg_incl=`$PKG_CONFIG 
--cflags libavcodec`
-      topdir=`$PKG_CONFIG --cflags-only-I libavcodec | sed -e 's:-I::' | sed 
-e 's: *$::'`
+      topdir=`$PKG_CONFIG --cflags-only-I libavcodec | sed -e 's:-I::g' | sed 
-e 's:.* /:/:' -e 's: ::g'`
     fi
   fi
 
@@ -56,6 +56,10 @@
     fi
   else
     AC_MSG_RESULT(${ac_cv_path_ffmpeg_incl})
+      if test -f $i/ffmpeg/avformat.h; then
+        AC_MSG_WARN([avformat.h not found!])
+        ac_cv_path_ffmpeg_incl=""
+      fi
   fi
 
   dnl We need LIBAVCODEC VERSION of at least 51.29.0 to get 
avcodec_decode_audio2

Index: macros/gnashpkgtool.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/gnashpkgtool.m4,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- macros/gnashpkgtool.m4      11 Feb 2007 06:21:30 -0000      1.38
+++ macros/gnashpkgtool.m4      6 Mar 2007 18:06:13 -0000       1.39
@@ -14,7 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl $Id: gnashpkgtool.m4,v 1.38 2007/02/11 06:21:30 rsavoye Exp $
+dnl $Id: gnashpkgtool.m4,v 1.39 2007/03/06 18:06:13 rsavoye Exp $
 
 dnl Generic macros for finding and setting include-paths and library-path
 dnl for packages. Implements GNASH_PKG_INCLUDES() and GNASH_PKG_LIBS().
@@ -34,13 +34,14 @@
   pushdef([DOWN], translit([$1], [A-Z], [a-z]))dnl Lowercase
   pushdef([UPHEADER], translit([$2], [a-z./], [A-Z__]))dnl Uppercase header
 
-  AC_ARG_ENABLE($1, AC_HELP_STRING([--enable-$1], [Enable support for $3.]), [
-    case "${enableval}" in
-      yes) $1=yes ;;   
-      no)  $1=no ;;
-      *)   AC_MSG_ERROR([bad value ${enableval} for enable-$1 option]) ;;
-    esac], $1=yes)
+dnl   AC_ARG_ENABLE($1, AC_HELP_STRING([--enable-$1], [Enable support for 
$3.]), [
+dnl     case "${enableval}" in
+dnl       yes) $1=yes ;;       
+dnl       no)  $1=no ;;
+dnl       *)   AC_MSG_ERROR([bad value ${enableval} for enable-$1 option]) ;;
+dnl     esac], $1=yes)
 
+    $1=yes
     if test x$4 = x; then
       name=$1 
     else

Index: macros/kde.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/kde.m4,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- macros/kde.m4       2 Feb 2007 01:57:57 -0000       1.26
+++ macros/kde.m4       6 Mar 2007 18:06:13 -0000       1.27
@@ -1,5 +1,5 @@
 dnl  
-dnl    Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+dnl    Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
 dnl  
 dnl  This program is free software; you can redistribute it and/or modify
 dnl  it under the terms of the GNU General Public License as published by
@@ -14,7 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl $Id: kde.m4,v 1.26 2007/02/02 01:57:57 rsavoye Exp $
+dnl $Id: kde.m4,v 1.27 2007/03/06 18:06:13 rsavoye Exp $
 
 AC_DEFUN([GNASH_PATH_KDE],
 [
@@ -167,7 +167,7 @@
   gnash_qt_version=""
   dnl QT stores it's headers in ../lib/qt-3.3/include for example, so use 
libslist
   dnl instead of incllist
-  for i in $libslist; do
+  for i in $QTDIR $libslist $incllist; do
     for j in `ls -dr $i/qt-[[0-9]].[[0-9]] 2>/dev/null`; do
       if test -f $j/include/qobject.h; then
         gnash_qt_topdir=$j

Index: macros/mysql.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/mysql.m4,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- macros/mysql.m4     9 Jan 2007 00:43:43 -0000       1.2
+++ macros/mysql.m4     6 Mar 2007 18:06:13 -0000       1.3
@@ -14,7 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl $Id: mysql.m4,v 1.2 2007/01/09 00:43:43 rsavoye Exp $
+dnl $Id: mysql.m4,v 1.3 2007/03/06 18:06:13 rsavoye Exp $
 
 AC_DEFUN([GNASH_PATH_MYSQL],
 [
@@ -39,7 +39,7 @@
   fi
 
   if test x"${ac_cv_prog_mconfig}" != "x" ; then
-     ac_cv_path_mysql_incl=`${mconfig} --cflags`
+     ac_cv_path_mysql_incl=`${mconfig} --include`
   fi
 
   AC_MSG_CHECKING([for MySQL headers])

Index: macros/opengl.m4
===================================================================
RCS file: /sources/gnash/gnash/macros/opengl.m4,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- macros/opengl.m4    9 Jan 2007 00:43:43 -0000       1.28
+++ macros/opengl.m4    6 Mar 2007 18:06:13 -0000       1.29
@@ -14,10 +14,7 @@
 dnl  along with this program; if not, write to the Free Software
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-dnl  
-dnl 
-
-dnl $Id: opengl.m4,v 1.28 2007/01/09 00:43:43 rsavoye Exp $
+dnl $Id: opengl.m4,v 1.29 2007/03/06 18:06:13 rsavoye Exp $
 
 AC_DEFUN([GNASH_PATH_OPENGL],
 [

Index: packaging/redhat/rpmrc
===================================================================
RCS file: packaging/redhat/rpmrc
diff -N packaging/redhat/rpmrc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ packaging/redhat/rpmrc      6 Mar 2007 18:06:12 -0000       1.1
@@ -0,0 +1,14 @@
+arch_canon:     geode:  i386   1
+buildarchtranslate: geode: i386
+
+os_compat:     olpc: Linux
+os_canon:       olpc: cross_compile    1
+buildostranslate: olpc: Linux
+
+optflags:      geode   cross_compile   1
+
+buildarchtranslate:    geode: i386
+buildostranslate:      geode: Linux
+arch_compat:           geode: i386 i485 i585 i686
+os_compat:             olpc: Linux
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]