Browse Source

fix building for FreeBSD5

Michael van Elst 23 years ago
parent
commit
09e4b8b6a5
2 changed files with 18 additions and 2 deletions
  1. 10 0
      xmms/xmms.patch
  2. 8 2
      xmms/xmms.spec

+ 10 - 0
xmms/xmms.patch

@@ -0,0 +1,10 @@
+--- libxmms/util.c.dist	2003-06-29 15:13:49.000000000 +0200
++++ libxmms/util.c	2003-06-29 15:14:07.000000000 +0200
+@@ -11,6 +11,7 @@
+ #endif
+ 
+ #ifdef __FreeBSD__
++#include <sys/types.h>
+ #include <sys/sysctl.h>
+ #endif
+ 

+ 8 - 2
xmms/xmms.spec

@@ -33,16 +33,21 @@ Distribution: OpenPKG [EVAL]
 Group:        Audio
 License:      GPL
 Version:      1.2.7
-Release:      20030503
+Release:      20030629
 
 #   list of sources
 Source0:      http://xmms.org/files/1.2.x/xmms-%{version}.tar.bz2
+Patch0:       xmms.patch
 
 #   build information
 Prefix:       %{l_prefix}
 BuildRoot:    %{l_buildroot}
-BuildPreReq:  OpenPKG, openpkg >= 20030114, X11, gtk, glib, glib::with_threads = yes, libxml, libmikmod, vorbis-libs
+BuildPreReq:  OpenPKG, openpkg >= 20030114, X11
+BuildPreReq:  gtk, glib, glib::with_threads = yes
+BuildPreReq:  libxml, libmikmod, vorbis-libs
 PreReq:       OpenPKG, openpkg >= 20030114, X11
+PreReq:       gtk, glib, glib::with_threads = yes
+PreReq:       libxml, libmikmod, vorbis-libs
 AutoReq:      no
 AutoReqProv:  no
 
@@ -52,6 +57,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     CC="%{l_cc}" \