diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-05-08 07:18:00 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-05-11 08:27:27 -0700 |
| commit | c511e491ff14172c32f9ff460ed3ee43be4051cb (patch) | |
| tree | 8579b2e91da59e92d96da093f464332a18d3c24f /meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb | |
| parent | dcb8ab6169bd93440137bbd4703171987ecd3a15 (diff) | |
| download | meta-openembedded-c511e491ff14172c32f9ff460ed3ee43be4051cb.tar.gz | |
libmusicbrainz: Rework native and target pieces
Build the native tools via a proper native recipe
Once done this way we do not need any patches
Bump SRCREV to latest which brings in one fix [1]
[1] https://github.com/metabrainz/libmusicbrainz/commit/8be45b12a86bc0e46f2f836c8ac88e1e98d82aee
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andreas Müller <schnitzeltony@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb')
| -rw-r--r-- | meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb index ca9d94a19c..f73b549df0 100644 --- a/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb +++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb | |||
| @@ -3,38 +3,23 @@ DESCRIPTION = "The MusicBrainz client is a library which can be built into other | |||
| 3 | HOMEPAGE = "http://musicbrainz.org" | 3 | HOMEPAGE = "http://musicbrainz.org" |
| 4 | LICENSE = "LGPLv2.1+" | 4 | LICENSE = "LGPLv2.1+" |
| 5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24" | 5 | LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24" |
| 6 | DEPENDS = "expat libxml2 libxml2-native neon neon-native" | 6 | DEPENDS = "expat libxml2 libxml2-native neon neon-native libmusicbrainz-native" |
| 7 | 7 | ||
| 8 | PV = "5.1.0+git${SRCPV}" | 8 | PV = "5.1.0+git${SRCPV}" |
| 9 | 9 | ||
| 10 | SRCREV = "44c05779dd996035758f5ec426766aeedce29cc3" | 10 | SRCREV = "8be45b12a86bc0e46f2f836c8ac88e1e98d82aee" |
| 11 | SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \ | 11 | SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git" |
| 12 | file://allow-libdir-override.patch " | ||
| 13 | 12 | ||
| 14 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 15 | 14 | ||
| 16 | inherit cmake pkgconfig | 15 | inherit cmake pkgconfig |
| 17 | 16 | ||
| 18 | do_configure_prepend() { | 17 | EXTRA_OECMAKE_append_class-target = " -DIMPORT_EXECUTABLES=${STAGING_LIBDIR_NATIVE}/cmake/${BPN}/ImportExecutables.cmake" |
| 19 | # The native build really doesn't like being rebuilt, so delete | ||
| 20 | # it if it's already present. Also delete all other files not | ||
| 21 | # known to Git to fix subsequent invocations of do_configure. | ||
| 22 | git clean -dfx -e /.pc/ -e /patches/ . | ||
| 23 | mkdir build-native | ||
| 24 | cd build-native | ||
| 25 | LDFLAGS="${BUILD_LDFLAGS}" \ | ||
| 26 | cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \ | ||
| 27 | -DCMAKE_C_COMPILER=${BUILD_CC} \ | ||
| 28 | -DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \ | ||
| 29 | -DCMAKE_CXX_COMPILER=${BUILD_CXX} \ | ||
| 30 | -DCMAKE_EXE_LINKER_FLAGS=${BUILD_LDFLAGS} \ | ||
| 31 | .. | ||
| 32 | make make-c-interface | ||
| 33 | cd .. | ||
| 34 | } | ||
| 35 | 18 | ||
| 36 | EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir} \ | 19 | do_install_append_class-native() { |
| 37 | -DIMPORT_EXECUTABLES=build-native/ImportExecutables.cmake" | 20 | install -Dm 0755 ${B}/src/make-c-interface ${D}${bindir}/make-c-interface |
| 21 | install -Dm 0644 ${B}/ImportExecutables.cmake ${D}${libdir}/cmake/${BPN}/ImportExecutables.cmake | ||
| 22 | sed -i -e s:'${B}'/src/::g ${D}${libdir}/cmake/${BPN}/ImportExecutables.cmake | ||
| 23 | } | ||
| 38 | 24 | ||
| 39 | # out-of-tree building doesn't appear to work for this package. | 25 | BBCLASSEXTEND = "native" |
| 40 | B = "${S}" | ||
