summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2010-07-01 16:53:27 +0800
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:28:54 +0100
commit2b533d04bdad40491e9a47ab5652615a32bc9503 (patch)
tree4e6ae5632150c5ea76ef948ae7830ce10b30f923 /meta
parentb82851ad3804dce967b5e0bbbfd67307f8483586 (diff)
downloadpoky-2b533d04bdad40491e9a47ab5652615a32bc9503.tar.gz
libmusicbrainz: Upgraded to 3.0.2
Removed the autofoo.patch since the latest version uses cmake instead Remove gcc43_fix.patch since the code is not in latest package Change SRC_URI to be more generic Also fix the metadata Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/musicbrainz/files/autofoo.patch180
-rw-r--r--meta/packages/musicbrainz/files/gcc43_fix.patch63
-rw-r--r--meta/packages/musicbrainz/libmusicbrainz_2.1.3.bb14
-rw-r--r--meta/packages/musicbrainz/libmusicbrainz_3.0.2.bb12
4 files changed, 12 insertions, 257 deletions
diff --git a/meta/packages/musicbrainz/files/autofoo.patch b/meta/packages/musicbrainz/files/autofoo.patch
deleted file mode 100644
index e323047963..0000000000
--- a/meta/packages/musicbrainz/files/autofoo.patch
+++ /dev/null
@@ -1,180 +0,0 @@
1---
2 ac_func_accept_argtypes.m4 | 94 +++++++++++++++++++++++++++++++++++++++++++++
3 configure.in | 64 ------------------------------
4 2 files changed, 96 insertions(+), 62 deletions(-)
5
6Index: libmusicbrainz-2.1.3/ac_func_accept_argtypes.m4
7===================================================================
8--- /dev/null 1970-01-01 00:00:00.000000000 +0000
9+++ libmusicbrainz-2.1.3/ac_func_accept_argtypes.m4 2007-08-01 22:08:44.000000000 +0100
10@@ -0,0 +1,94 @@
11+##### http://autoconf-archive.cryp.to/ac_func_accept_argtypes.html
12+#
13+# SYNOPSIS
14+#
15+# AC_FUNC_ACCEPT_ARGTYPES
16+#
17+# DESCRIPTION
18+#
19+# Checks the data types of the three arguments to accept(). Results
20+# are placed into the symbols ACCEPT_TYPE_ARG[123], consistent with
21+# the following example:
22+#
23+# #define ACCEPT_ARG1 int
24+# #define ACCEPT_ARG2 struct sockaddr *
25+# #define ACCEPT_ARG3 socklen_t *
26+#
27+# This macro requires AC_CHECK_HEADERS to have already verified the
28+# presence or absence of sys/types.h and sys/socket.h.
29+#
30+# NOTE: This is just a modified version of the
31+# AC_FUNC_SELECT_ARGTYPES macro. Credit for that one goes to David
32+# MacKenzie et. al.
33+#
34+# LAST MODIFICATION
35+#
36+# 2006-10-22
37+#
38+# COPYLEFT
39+#
40+# Copyright (c) 2006 Daniel Richard G. <skunk@iskunk.org>
41+#
42+# This program is free software; you can redistribute it and/or
43+# modify it under the terms of the GNU General Public License as
44+# published by the Free Software Foundation; either version 2 of the
45+# License, or (at your option) any later version.
46+#
47+# This program is distributed in the hope that it will be useful, but
48+# WITHOUT ANY WARRANTY; without even the implied warranty of
49+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
50+# General Public License for more details.
51+#
52+# You should have received a copy of the GNU General Public License
53+# along with this program; if not, write to the Free Software
54+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
55+# 02111-1307, USA.
56+#
57+# As a special exception, the respective Autoconf Macro's copyright
58+# owner gives unlimited permission to copy, distribute and modify the
59+# configure scripts that are the output of Autoconf when processing
60+# the Macro. You need not follow the terms of the GNU General Public
61+# License when using or distributing such scripts, even though
62+# portions of the text of the Macro appear in them. The GNU General
63+# Public License (GPL) does govern all other use of the material that
64+# constitutes the Autoconf Macro.
65+#
66+# This special exception to the GPL applies to versions of the
67+# Autoconf Macro released by the Autoconf Macro Archive. When you
68+# make and distribute a modified version of the Autoconf Macro, you
69+# may extend this special exception to the GPL to apply to your
70+# modified version as well.
71+
72+AC_DEFUN([AC_FUNC_ACCEPT_ARGTYPES],
73+[AC_MSG_CHECKING([types of arguments for accept()])
74+ AC_CACHE_VAL(ac_cv_func_accept_arg1,dnl
75+ [AC_CACHE_VAL(ac_cv_func_accept_arg2,dnl
76+ [AC_CACHE_VAL(ac_cv_func_accept_arg3,dnl
77+ [for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
78+ for ac_cv_func_accept_arg2 in 'struct sockaddr' 'void'; do
79+ for ac_cv_func_accept_arg3 in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
80+ AC_TRY_COMPILE(dnl
81+[#ifdef HAVE_SYS_TYPES_H
82+#include <sys/types.h>
83+#endif
84+#ifdef HAVE_SYS_SOCKET_H
85+#include <sys/socket.h>
86+#endif
87+extern accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2 *, $ac_cv_func_accept_arg3 *);],,dnl
88+ [ac_not_found=no ; break 3], ac_not_found=yes)
89+ done
90+ done
91+ done
92+ ])dnl AC_CACHE_VAL
93+ ])dnl AC_CACHE_VAL
94+ ])dnl AC_CACHE_VAL
95+ if test "$ac_not_found" = yes; then
96+ ac_cv_func_accept_arg1=int
97+ ac_cv_func_accept_arg2='struct sockaddr'
98+ ac_cv_func_accept_arg3='socklen_t'
99+ fi
100+ AC_MSG_RESULT([$ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3])
101+ AC_DEFINE_UNQUOTED(ACCEPT_ARG1,$ac_cv_func_accept_arg1, "Argument 1 to accept()")
102+ AC_DEFINE_UNQUOTED(ACCEPT_ARG2,$ac_cv_func_accept_arg2, "Argument 2 to accept()")
103+ AC_DEFINE_UNQUOTED(ACCEPT_ARG3,$ac_cv_func_accept_arg3, "Argument 3 to accept()")
104+])
105Index: libmusicbrainz-2.1.3/configure.in
106===================================================================
107--- libmusicbrainz-2.1.3.orig/configure.in 2007-08-01 21:14:59.000000000 +0100
108+++ libmusicbrainz-2.1.3/configure.in 2007-08-01 21:46:03.000000000 +0100
109@@ -76,69 +76,9 @@ AC_DEFUN([AC_PROTOTYPE],[
110 popdef([function])
111 ])
112
113-AC_DEFUN([AC_PROTOTYPE_REVERSE],[ifelse($#,0,,$#,1,[[$1]],[AC_PROTOTYPE_REVERSE(builtin([shift],$@)),[$1]])])
114-
115-AC_DEFUN([AC_PROTOTYPE_SUBST],[ifelse($2,,[$1],[AC_PROTOTYPE_SUBST(patsubst([$1],[$2],[$2[]_VAL]),builtin([shift],builtin([shift],$@)))])])
116-
117-AC_DEFUN([AC_PROTOTYPE_TAGS],[ifelse($1,,[],[$1, AC_PROTOTYPE_TAGS(builtin([shift],builtin([shift],$@)))])])
118-AC_DEFUN([AC_PROTOTYPE_DEFINES],[ifelse($1,,[],[AC_DEFINE(function[]_$1, $1_VAL) AC_PROTOTYPE_DEFINES(builtin([shift],$@))])])
119-
120-AC_DEFUN([AC_PROTOTYPE_STATUS],[ifelse($1,,[],[$1 => $1_VAL AC_PROTOTYPE_STATUS(builtin([shift],$@))])])
121-
122-AC_DEFUN([AC_PROTOTYPE_EACH],[
123- ifelse($2,, [
124- ], [
125- pushdef([$1_VAL], $2)
126- AC_PROTOTYPE_LOOP(rest)
127- popdef([$1_VAL])
128- AC_PROTOTYPE_EACH($1, builtin([shift], builtin([shift], $@)))
129- ])
130-])
131-
132-AC_DEFUN([AC_PROTOTYPE_LOOP],[
133- ifelse(builtin([eval], $# > 3), 1,
134- [
135- pushdef([rest],[builtin([shift],builtin([shift],$@))])
136- AC_PROTOTYPE_EACH($2,$1)
137- popdef([rest])
138- ], [
139- AC_MSG_CHECKING($3 AC_PROTOTYPE_STATUS(tags))
140- ac_save_CPPFLAGS="$CPPFLAGS"
141- ifelse(AC_LANG(C++),,if test "$GXX" = "yes" ; then CPPFLAGS="$CPPFLAGS -Werror" ; fi)
142- ifelse(AC_LANG(C),,if test "$GCC" = "yes" ; then CPPFLAGS="$CPPFLAGS -Werror" ; fi)
143- AC_TRY_COMPILE($2, $1, [
144- CPPFLAGS="$ac_save_CPPFLAGS"
145- AC_MSG_RESULT(ok)
146- AC_PROTOTYPE_DEFINES(tags)
147- break;
148- ], [
149- CPPFLAGS="$ac_save_CPPFLAGS"
150- AC_MSG_RESULT(not ok)
151- ])
152- ]
153- )
154-])
155-
156-AC_DEFUN([AC_PROTOTYPE_ACCEPT],[
157-AC_PROTOTYPE(accept,
158- [
159- #include <sys/types.h>
160- #include <sys/socket.h>
161- ],
162- [
163- int a = 0;
164- ARG2 * b = 0;
165- ARG3 * c = 0;
166- accept(a, b, c);
167- ],
168- ARG2, [struct sockaddr, void],
169- ARG3, [socklen_t, size_t, int, unsigned int, long unsigned int])
170-])
171-
172-AC_PROTOTYPE_ACCEPT
173+m4_include(ac_func_accept_argtypes.m4)
174+AC_FUNC_ACCEPT_ARGTYPES()
175
176-AC_DEFINE_UNQUOTED([ACCEPT_ARG2],,"Argument 2 to accept()")
177-AC_DEFINE_UNQUOTED([ACCEPT_ARG3],,"Argument 3 to accept()")
178 AC_DEFINE_UNQUOTED(PREFIX, "${prefix}", [Application install prefix])
179
180 AC_OUTPUT([
diff --git a/meta/packages/musicbrainz/files/gcc43_fix.patch b/meta/packages/musicbrainz/files/gcc43_fix.patch
deleted file mode 100644
index 520837dd06..0000000000
--- a/meta/packages/musicbrainz/files/gcc43_fix.patch
+++ /dev/null
@@ -1,63 +0,0 @@
1Index: libmusicbrainz-2.1.3/lib/c_wrapper.cpp
2===================================================================
3--- libmusicbrainz-2.1.3.orig/lib/c_wrapper.cpp 2008-07-18 15:40:55.000000000 +0100
4+++ libmusicbrainz-2.1.3/lib/c_wrapper.cpp 2008-07-18 15:42:05.000000000 +0100
5@@ -21,6 +21,7 @@
6 $Id: c_wrapper.cpp 665 2003-10-16 22:21:10Z robert $
7
8 ----------------------------------------------------------------------------*/
9+#include <cstring>
10 #include "musicbrainz.h"
11 #include "trm.h"
12 #include "mb_c.h"
13Index: libmusicbrainz-2.1.3/lib/comhttpsocket.cpp
14===================================================================
15--- libmusicbrainz-2.1.3.orig/lib/comhttpsocket.cpp 2008-07-18 15:40:55.000000000 +0100
16+++ libmusicbrainz-2.1.3/lib/comhttpsocket.cpp 2008-07-18 15:42:38.000000000 +0100
17@@ -10,6 +10,8 @@
18 #pragma warning(disable:4786)
19 #endif
20
21+#include <cstring>
22+
23 #include "comhttpsocket.h"
24 #ifdef WIN32
25 #include "../config_win32.h"
26Index: libmusicbrainz-2.1.3/lib/comsocket.cpp
27===================================================================
28--- libmusicbrainz-2.1.3.orig/lib/comsocket.cpp 2008-07-18 15:40:55.000000000 +0100
29+++ libmusicbrainz-2.1.3/lib/comsocket.cpp 2008-07-18 15:43:05.000000000 +0100
30@@ -28,6 +28,7 @@
31 programed by : Sean Ward
32 email : sward@relatable.com
33 ***************************************************************************/
34+#include <cstring>
35
36 #include "config.h"
37
38Index: libmusicbrainz-2.1.3/lib/http.cpp
39===================================================================
40--- libmusicbrainz-2.1.3.orig/lib/http.cpp 2008-07-18 15:40:55.000000000 +0100
41+++ libmusicbrainz-2.1.3/lib/http.cpp 2008-07-18 15:41:32.000000000 +0100
42@@ -23,6 +23,8 @@
43
44 ----------------------------------------------------------------------------*/
45 #include <stdio.h>
46+#include <cstring>
47+#include <cstdlib>
48 #include <sys/types.h>
49 #include <sys/stat.h>
50 #include <ctype.h>
51Index: libmusicbrainz-2.1.3/lib/sigclient.cpp
52===================================================================
53--- libmusicbrainz-2.1.3.orig/lib/sigclient.cpp 2008-07-18 15:40:55.000000000 +0100
54+++ libmusicbrainz-2.1.3/lib/sigclient.cpp 2008-07-18 15:43:27.000000000 +0100
55@@ -29,6 +29,8 @@
56 email : ijr@relatable.com
57 ***************************************************************************/
58
59+#include <cstring>
60+
61 #ifdef WIN32
62 #pragma warning(disable:4786)
63 #endif
diff --git a/meta/packages/musicbrainz/libmusicbrainz_2.1.3.bb b/meta/packages/musicbrainz/libmusicbrainz_2.1.3.bb
deleted file mode 100644
index 372dfe4ac7..0000000000
--- a/meta/packages/musicbrainz/libmusicbrainz_2.1.3.bb
+++ /dev/null
@@ -1,14 +0,0 @@
1DESCRIPTION = "The MusicBrainz client is a library which can be built into other programs. The library allows you to access the data held on the MusicBrainz server."
2HOMEPAGE = "http://musicbrainz.org"
3LICENSE = "LGPL"
4DEPENDS = "expat"
5PR = "r1"
6
7SRC_URI = "http://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-2.1.3.tar.gz \
8 file://gcc43_fix.patch;patch=1 \
9 file://autofoo.patch;patch=1"
10
11inherit autotools pkgconfig
12
13
14
diff --git a/meta/packages/musicbrainz/libmusicbrainz_3.0.2.bb b/meta/packages/musicbrainz/libmusicbrainz_3.0.2.bb
new file mode 100644
index 0000000000..b649620ac4
--- /dev/null
+++ b/meta/packages/musicbrainz/libmusicbrainz_3.0.2.bb
@@ -0,0 +1,12 @@
1DESCRIPTION = "The MusicBrainz client is a library which can be built into other programs. The library allows you to access the data held on the MusicBrainz server."
2HOMEPAGE = "http://musicbrainz.org"
3LICENSE = "LGPLv2.1+"
4LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24 \
5 file://include/musicbrainz3/includes.h;beginline=1;endline=21;md5=e7d3b3e6d8bb7ee278dc4040d380ebd5"
6DEPENDS = "expat neon"
7
8PR = "r0"
9
10SRC_URI = "http://ftp.musicbrainz.org/pub/musicbrainz/${PN}-${PV}.tar.gz"
11
12inherit cmake pkgconfig