summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extra/libmusicbrainz/.footprint21
-rw-r--r--extra/libmusicbrainz/.md5sum2
-rwxr-xr-xextra/libmusicbrainz/Pkgfile24
-rw-r--r--extra/libmusicbrainz/gcc4.patch57
4 files changed, 104 insertions, 0 deletions
diff --git a/extra/libmusicbrainz/.footprint b/extra/libmusicbrainz/.footprint
new file mode 100644
index 000000000..9f4cdbb84
--- /dev/null
+++ b/extra/libmusicbrainz/.footprint
@@ -0,0 +1,21 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/musicbrainz/
+-rw-r--r-- root/root usr/include/musicbrainz/browser.h
+-rw-r--r-- root/root usr/include/musicbrainz/errors.h
+-rw-r--r-- root/root usr/include/musicbrainz/mb_c.h
+-rw-r--r-- root/root usr/include/musicbrainz/musicbrainz.h
+-rw-r--r-- root/root usr/include/musicbrainz/queries.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libmusicbrainz.a
+-rwxr-xr-x root/root usr/lib/libmusicbrainz.la
+lrwxrwxrwx root/root usr/lib/libmusicbrainz.so -> libmusicbrainz.so.4.0.3
+lrwxrwxrwx root/root usr/lib/libmusicbrainz.so.4 -> libmusicbrainz.so.4.0.3
+-rwxr-xr-x root/root usr/lib/libmusicbrainz.so.4.0.3
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/libmusicbrainz.pc
+drwxr-xr-x root/root usr/lib/python2.6/
+drwxr-xr-x root/root usr/lib/python2.6/site-packages/
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/musicbrainz.py
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/musicbrainz.pyc
+-rw-r--r-- root/root usr/lib/python2.6/site-packages/python_musicbrainz-0.0.0-py2.6.egg-info
diff --git a/extra/libmusicbrainz/.md5sum b/extra/libmusicbrainz/.md5sum
new file mode 100644
index 000000000..6cb960c19
--- /dev/null
+++ b/extra/libmusicbrainz/.md5sum
@@ -0,0 +1,2 @@
+6cdd86843f6532264306ea158fbe4d99 gcc4.patch
+d5e19bb77edd6ea798ce206bd05ccc5f libmusicbrainz-2.1.5.tar.gz
diff --git a/extra/libmusicbrainz/Pkgfile b/extra/libmusicbrainz/Pkgfile
new file mode 100755
index 000000000..7bfca0484
--- /dev/null
+++ b/extra/libmusicbrainz/Pkgfile
@@ -0,0 +1,24 @@
+# Description: Deuxième génération de l'incarnation d'indexation de CD
+# URL: http://musicbrainz.org/doc/libmusicbrainz
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: python
+
+name=libmusicbrainz
+version=2.1.5
+release=1
+source=( ftp://ftp.musicbrainz.org/pub/musicbrainz/$name-$version.tar.gz\
+ gcc4.patch)
+
+
+build() {
+ cd $name-$version
+ patch -Np1 -i ../gcc4.patch
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make
+ make DESTDIR=$PKG install
+ cd python
+ python setup.py install --root=$PKG
+}
diff --git a/extra/libmusicbrainz/gcc4.patch b/extra/libmusicbrainz/gcc4.patch
new file mode 100644
index 000000000..efdf15355
--- /dev/null
+++ b/extra/libmusicbrainz/gcc4.patch
@@ -0,0 +1,57 @@
+diff -Naur libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp libmusicbrainz-2.1.4/lib/c_wrapper.cpp
+--- libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp 2003-10-16 16:21:10.000000000 -0600
++++ libmusicbrainz-2.1.4/lib/c_wrapper.cpp 2007-12-16 09:45:21.000000000 -0600
+@@ -24,6 +24,7 @@
+ #include "musicbrainz.h"
+ #include "trm.h"
+ #include "mb_c.h"
++#include <cstring>
+
+ extern "C"
+ {
+diff -Naur libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp libmusicbrainz-2.1.4/lib/comhttpsocket.cpp
+--- libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp 2006-05-11 12:46:54.000000000 -0600
++++ libmusicbrainz-2.1.4/lib/comhttpsocket.cpp 2007-12-16 09:46:28.000000000 -0600
+@@ -20,6 +20,7 @@
+ #endif
+ #include <stdlib.h>
+ #include <assert.h>
++#include <cstring>
+
+ const char* g_strCOMVer = "libmusicbrainz/"VERSION;
+
+diff -Naur libmusicbrainz-2.1.4-orig/lib/comsocket.cpp libmusicbrainz-2.1.4/lib/comsocket.cpp
+--- libmusicbrainz-2.1.4-orig/lib/comsocket.cpp 2006-05-11 12:46:54.000000000 -0600
++++ libmusicbrainz-2.1.4/lib/comsocket.cpp 2007-12-16 09:46:08.000000000 -0600
+@@ -37,6 +37,7 @@
+ #include <netinet/tcp.h>
+ #include <errno.h>
+ #include <stdio.h>
++#include <cstring>
+ #include <sys/time.h>
+ #include <sys/types.h>
+ #include <unistd.h>
+diff -Naur libmusicbrainz-2.1.4-orig/lib/http.cpp libmusicbrainz-2.1.4/lib/http.cpp
+--- libmusicbrainz-2.1.4-orig/lib/http.cpp 2007-12-16 09:52:48.000000000 -0600
++++ libmusicbrainz-2.1.4/lib/http.cpp 2007-12-16 09:52:36.000000000 -0600
+@@ -31,6 +31,8 @@
+ #endif
+ #include <fcntl.h>
+ #include <errno.h>
++#include <cstring>
++#include <cstdlib>
+
+ #ifdef WIN32
+ #include <winsock.h>
+diff -Naur libmusicbrainz-2.1.4-orig/lib/sigclient.cpp libmusicbrainz-2.1.4/lib/sigclient.cpp
+--- libmusicbrainz-2.1.4-orig/lib/sigclient.cpp 2006-05-11 12:46:54.000000000 -0600
++++ libmusicbrainz-2.1.4/lib/sigclient.cpp 2007-12-16 09:54:48.000000000 -0600
+@@ -33,6 +33,8 @@
+ #pragma warning(disable:4786)
+ #endif
+
++#include <cstring>
++
+ #include "sigclient.h"
+ #include "comhttpsocket.h"
+