summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb')
-rw-r--r--meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb41
1 files changed, 41 insertions, 0 deletions
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..a6a4f6a8a
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
@@ -0,0 +1,41 @@
1SUMMARY = "MusicBrainz client library"
2DESCRIPTION = "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."
3HOMEPAGE = "http://musicbrainz.org"
4LICENSE = "LGPLv2.1+"
5LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24"
6DEPENDS = "expat neon neon-native"
7
8PV = "5.0.1+git${SRCPV}"
9PR = "r1"
10
11SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e"
12SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \
13 file://allow-libdir-override.patch "
14
15S = "${WORKDIR}/git"
16
17LDFLAGS_prepend_libc-uclibc = " -lpthread "
18
19inherit cmake pkgconfig
20
21do_configure_prepend() {
22 # The native build really doesn't like being rebuilt, so delete
23 # it if it's already present. Also delete all other files not
24 # known to Git to fix subsequent invocations of do_configure.
25 git clean -dfx -e /.pc/ -e /patches/ .
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
37EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir} \
38 -DIMPORT_EXECUTABLES=build-native/ImportExecutables.cmake"
39
40# out-of-tree building doesn't appear to work for this package.
41B = "${S}"