From a9d25a8e6720ceff5cfefa3191026357dd6e0f49 Mon Sep 17 00:00:00 2001 From: Constantin Musca Date: Fri, 21 Dec 2012 15:26:27 +0200 Subject: libmusicbrainz: upgrade to git SRCREV 0749dd0a35b4a543 include/musicbrainz3/includes.h: removed from LIC_FILES_CHKSUM - the file is not present in the new version fix_build_issue_for_gcc_4.5.0.patch: removed - the patched files are removed [Other changes] - moved to git (the last tag version doesn't support cross-compilation) - we need to build the native make-c-interface executable before configuring cmake for the target Signed-off-by: Constantin Musca Signed-off-by: Cristian Iorga Signed-off-by: Saul Wold --- .../musicbrainz/files/allow-libdir-override.patch | 21 ++++++++++++ .../allow-libdir-override.patch | 21 ------------ .../fix_build_issue_for_gcc_4.5.0.patch | 39 ---------------------- .../musicbrainz/libmusicbrainz_3.0.3.bb | 22 ------------ .../musicbrainz/libmusicbrainz_git.bb | 36 ++++++++++++++++++++ 5 files changed, 57 insertions(+), 82 deletions(-) create mode 100644 meta/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch delete mode 100644 meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/allow-libdir-override.patch delete mode 100644 meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/fix_build_issue_for_gcc_4.5.0.patch delete mode 100644 meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb create mode 100644 meta/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb (limited to 'meta/recipes-multimedia/musicbrainz') diff --git a/meta/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch b/meta/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch new file mode 100644 index 0000000000..d59d12e69b --- /dev/null +++ b/meta/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch @@ -0,0 +1,21 @@ +Allow LIB_INSTALL_DIR to be set by the the cmake configure invocation. We dont +easily have a way of determining something that patches ${LIB_SUFFIX} so we'll +set LIB_INSTALL_DIR. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Kumar Gala + +Index: libmusicbrainz-3.0.3/CMakeLists.txt +=================================================================== +--- libmusicbrainz-3.0.3.orig/CMakeLists.txt ++++ libmusicbrainz-3.0.3/CMakeLists.txt +@@ -26,7 +26,7 @@ FIND_PACKAGE(DiscId) + SET(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)") + SET(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Installation prefix for executables and object code libraries" FORCE) + SET(BIN_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/bin CACHE PATH "Installation prefix for user executables" FORCE) +-SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries" FORCE) ++SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries") + SET(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "Installation prefix for C header files" FORCE) + + CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libmusicbrainz3.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libmusicbrainz3.pc) diff --git a/meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/allow-libdir-override.patch b/meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/allow-libdir-override.patch deleted file mode 100644 index d59d12e69b..0000000000 --- a/meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/allow-libdir-override.patch +++ /dev/null @@ -1,21 +0,0 @@ -Allow LIB_INSTALL_DIR to be set by the the cmake configure invocation. We dont -easily have a way of determining something that patches ${LIB_SUFFIX} so we'll -set LIB_INSTALL_DIR. - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Kumar Gala - -Index: libmusicbrainz-3.0.3/CMakeLists.txt -=================================================================== ---- libmusicbrainz-3.0.3.orig/CMakeLists.txt -+++ libmusicbrainz-3.0.3/CMakeLists.txt -@@ -26,7 +26,7 @@ FIND_PACKAGE(DiscId) - SET(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)") - SET(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Installation prefix for executables and object code libraries" FORCE) - SET(BIN_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/bin CACHE PATH "Installation prefix for user executables" FORCE) --SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries" FORCE) -+SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries") - SET(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "Installation prefix for C header files" FORCE) - - CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libmusicbrainz3.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libmusicbrainz3.pc) diff --git a/meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/fix_build_issue_for_gcc_4.5.0.patch b/meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/fix_build_issue_for_gcc_4.5.0.patch deleted file mode 100644 index 6fb45e1726..0000000000 --- a/meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/fix_build_issue_for_gcc_4.5.0.patch +++ /dev/null @@ -1,39 +0,0 @@ -GCC 4.4 cleaned up some more C++ headers. You always have to #include -headers directly and cannot rely for things to be included indirectly. - -Otherwise you get errors like this: - -| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp: In function 'std::string MusicBrainz::intToString(int)': -| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:38:23: error: 'sprintf' was not declared in this scope -| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp: In function 'void MusicBrainz::debug(const char*, ...)': -| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:80:10: error: 'stderr' was not declared in this scope -| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:80:33: error: 'fprintf' was not declared in this scope -| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/utils_private.cpp:81:26: error: 'vfprintf' was not declared in this scope -| make[2]: *** [src/CMakeFiles/musicbrainz3.dir/utils_private.o] Error 1 -| make[2]: *** Waiting for unfinished jobs.... -| /home/nitin/build/build0/tmp/work/i586-poky-linux/libmusicbrainz-3.0.2-r0/libmusicbrainz-3.0.2/src/xmlParser/xmlParser.cpp:116:1: warning: 'typedef' was ignored in this declaration -| make[1]: *** [src/CMakeFiles/musicbrainz3.dir/all] Error 2 -| make: *** [all] Error 2 -| FATAL: oe_runmake failed -NOTE: package libmusicbrainz-3.0.2-r0: task do_compile: Failed - -Found the solution here: -http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504895 - -Date: 2010/07/28 -Nitin A Kamble - -Upstream-Status: Inappropriate [debian patch] - -Index: libmusicbrainz-3.0.2/src/utils_private.cpp -=================================================================== ---- libmusicbrainz-3.0.2.orig/src/utils_private.cpp -+++ libmusicbrainz-3.0.2/src/utils_private.cpp -@@ -20,6 +20,7 @@ - * $Id: utils_private.cpp 9934 2008-07-02 06:57:10Z luks $ - */ - -+#include - #include - #include - #include diff --git a/meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb b/meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb deleted file mode 100644 index 913c463b62..0000000000 --- a/meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb +++ /dev/null @@ -1,22 +0,0 @@ -SUMMARY = "MusicBrainz Client" -DESCRIPTION = "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." -HOMEPAGE = "http://musicbrainz.org" -LICENSE = "LGPLv2.1+" -LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24 \ - file://include/musicbrainz3/includes.h;beginline=1;endline=21;md5=9ab2846573f560cea7561da472803a72" -DEPENDS = "expat neon" - -PR = "r4" - -SRC_URI = "http://ftp.musicbrainz.org/pub/musicbrainz/${BPN}-${PV}.tar.gz \ - file://fix_build_issue_for_gcc_4.5.0.patch \ - file://allow-libdir-override.patch " - -LDFLAGS_prepend_libc-uclibc = " -lpthread " - -SRC_URI[md5sum] = "f4824d0a75bdeeef1e45cc88de7bb58a" -SRC_URI[sha256sum] = "7fd459a9fd05be9faec60a9a21caa9a1e9fda03147d58d8c7c95f33582a738c5" - -inherit cmake pkgconfig - -EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir}" diff --git a/meta/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb b/meta/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb new file mode 100644 index 0000000000..7343662d01 --- /dev/null +++ b/meta/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb @@ -0,0 +1,36 @@ +SUMMARY = "MusicBrainz Client" +DESCRIPTION = "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." +HOMEPAGE = "http://musicbrainz.org" +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24" +DEPENDS = "expat neon" + +PV = "5.0.1+git${SRCPV}" +PR = "r0" + +SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e" +SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \ + file://allow-libdir-override.patch " + +S = "${WORKDIR}/git" + +LDFLAGS_prepend_libc-uclibc = " -lpthread " + + +inherit cmake pkgconfig + +do_configure_prepend() { + mkdir build-native + cd build-native + cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \ + -DCMAKE_C_COMPILER=${BUILD_CC} \ + -DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \ + -DCMAKE_CXX_COMPILER=${BUILD_CXX} \ + -DCMAKE_LINK_FLAGS=${BUILD_LDFLAGS} \ + .. + make + cd .. +} + +EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir} \ + -DIMPORT_EXECUTABLES=build-native/ImportExecutables.cmake" -- cgit v1.2.3