diff options
author | Ross Burton <ross.burton@intel.com> | 2013-01-31 13:34:14 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-02-01 17:44:22 +0100 |
commit | 95b04ad54c1cf0cb114fc720a726695b873c6e0d (patch) | |
tree | b205d794a1f975b25131ec76c0e80d937e957393 /meta-multimedia/recipes-multimedia | |
parent | 1b2de682b6c8338d9c983ba40a27d347b4b88aae (diff) | |
download | meta-openembedded-95b04ad54c1cf0cb114fc720a726695b873c6e0d.tar.gz |
libmusicbrainz: add
Moved from oe-core.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia')
-rw-r--r-- | meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch | 21 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb | 38 |
2 files changed, 59 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch b/meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch new file mode 100644 index 000000000..d59d12e69 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | Allow LIB_INSTALL_DIR to be set by the the cmake configure invocation. We dont | ||
2 | easily have a way of determining something that patches ${LIB_SUFFIX} so we'll | ||
3 | set LIB_INSTALL_DIR. | ||
4 | |||
5 | Upstream-Status: Inappropriate [configuration] | ||
6 | |||
7 | Signed-off-by: Kumar Gala <galak@kernel.crashing.org> | ||
8 | |||
9 | Index: libmusicbrainz-3.0.3/CMakeLists.txt | ||
10 | =================================================================== | ||
11 | --- libmusicbrainz-3.0.3.orig/CMakeLists.txt | ||
12 | +++ libmusicbrainz-3.0.3/CMakeLists.txt | ||
13 | @@ -26,7 +26,7 @@ FIND_PACKAGE(DiscId) | ||
14 | SET(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)") | ||
15 | SET(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Installation prefix for executables and object code libraries" FORCE) | ||
16 | SET(BIN_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/bin CACHE PATH "Installation prefix for user executables" FORCE) | ||
17 | -SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries" FORCE) | ||
18 | +SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries") | ||
19 | SET(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "Installation prefix for C header files" FORCE) | ||
20 | |||
21 | CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libmusicbrainz3.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libmusicbrainz3.pc) | ||
diff --git a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb new file mode 100644 index 000000000..051db7b07 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb | |||
@@ -0,0 +1,38 @@ | |||
1 | SUMMARY = "MusicBrainz client library" | ||
2 | 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." | ||
3 | HOMEPAGE = "http://musicbrainz.org" | ||
4 | LICENSE = "LGPLv2.1+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24" | ||
6 | DEPENDS = "expat neon" | ||
7 | |||
8 | PV = "5.0.1+git${SRCPV}" | ||
9 | PR = "r0" | ||
10 | |||
11 | SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e" | ||
12 | SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \ | ||
13 | file://allow-libdir-override.patch " | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | LDFLAGS_prepend_libc-uclibc = " -lpthread " | ||
18 | |||
19 | |||
20 | inherit cmake pkgconfig | ||
21 | |||
22 | do_configure_prepend() { | ||
23 | # The native build really doesn't like being rebuilt, so delete | ||
24 | # it if it's already present. | ||
25 | rm -rf build-native | ||
26 | mkdir build-native | ||
27 | cd build-native | ||
28 | cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \ | ||
29 | -DCMAKE_C_COMPILER=${BUILD_CC} \ | ||
30 | -DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \ | ||
31 | -DCMAKE_CXX_COMPILER=${BUILD_CXX} \ | ||
32 | .. | ||
33 | make make-c-interface | ||
34 | cd .. | ||
35 | } | ||
36 | |||
37 | EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir} \ | ||
38 | -DIMPORT_EXECUTABLES=build-native/ImportExecutables.cmake" | ||