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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   24-Dec-2004 20:26:19
  Branch: HEAD                             Handle: 2004122419261800

  Added files:
    openpkg-src/mozilla-mplayer
                            mozilla-mplayer.patch
  Modified files:
    openpkg-src/mozilla-mplayer
                            mozilla-mplayer.spec

  Log:
    port to FreeBSD 5.3

  Summary:
    Revision    Changes     Path
    1.8         +25 -0      openpkg-src/mozilla-mplayer/mozilla-mplayer.patch
    1.21        +3  -1      openpkg-src/mozilla-mplayer/mozilla-mplayer.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/mozilla-mplayer/mozilla-mplayer.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.8 mozilla-mplayer.patch
  --- /dev/null 2004-12-24 20:26:19 +0100
  +++ mozilla-mplayer.patch     2004-12-24 20:26:19 +0100
  @@ -0,0 +1,25 @@
  +Index: Source/plugin.h
  +--- Source/plugin.h.orig     2004-12-13 22:24:03 +0100
  ++++ Source/plugin.h  2004-12-24 20:24:42 +0100
  +@@ -40,7 +40,11 @@
  + #ifdef BSD
  + #include <cmath>
  + #endif
  ++#ifdef __FreeBSD__
  ++#define _XOPEN_SOURCE 600
  ++#else
  + #define _XOPEN_SOURCE 500
  ++#endif
  + 
  + #ifndef BSD
  + #ifndef _GNU_SOURCE
  +@@ -57,6 +61,9 @@
  + #include <sys/types.h>
  + #include <signal.h>
  + #include <string.h>
  ++#ifdef HAVE_STRINGS_H
  ++#include <strings.h>
  ++#endif
  + 
  + class nsPluginInstance:public nsPluginInstanceBase {
  +   public:
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/mozilla-mplayer/mozilla-mplayer.spec
  ============================================================================
  $ cvs diff -u -r1.20 -r1.21 mozilla-mplayer.spec
  --- openpkg-src/mozilla-mplayer/mozilla-mplayer.spec  23 Dec 2004 14:04:19 
-0000      1.20
  +++ openpkg-src/mozilla-mplayer/mozilla-mplayer.spec  24 Dec 2004 19:26:18 
-0000      1.21
  @@ -34,10 +34,11 @@
   Group:        Web
   License:      GPL
   Version:      2.75
  -Release:      20041223
  +Release:      20041224
   
   #   list of sources
   Source0:      
http://osdn.dl.sourceforge.net/mplayerplug-in/mplayerplug-in-%{version}.tar.gz
  +Patch0:       mozilla-mplayer.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -63,6 +64,7 @@
   
   %prep
       %setup -q -n mplayerplug-in
  +    %patch -p0
       %{l_shtool} subst \
           -e '/\/etc\/mplayerplug/s;/etc;%{l_prefix}/etc/mozilla-mplayer;' \
           Source/plugin-setup.cpp
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to