Переглянути джерело

make more portable and this way port especially to FreeBSD 5

Ralf S. Engelschall 21 роки тому
батько
коміт
7a26f1e59a

+ 11 - 0
mozilla-mplayer/mozilla-mplayer.patch

@@ -0,0 +1,11 @@
+Index: Source/plugin.h
+--- Source/plugin.h.orig	2004-06-14 20:35:56 +0200
++++ Source/plugin.h	2004-09-17 16:02:21 +0200
+@@ -37,6 +37,7 @@
+ 
+ #ifndef __PLUGIN_H__
+ #define __PLUGIN_H__
++#include <cmath>
+ #define _XOPEN_SOURCE 500
+ 
+ #ifndef _GNU_SOURCE

+ 3 - 1
mozilla-mplayer/mozilla-mplayer.spec

@@ -34,10 +34,11 @@ Class:        EVAL
 Group:        Web
 License:      GPL
 Version:      2.66
-Release:      20040829
+Release:      20040917
 
 #   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 @@ AutoReqProv:  no
 
 %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