diff options
| -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 | 35 |
2 files changed, 10 insertions, 46 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 deleted file mode 100644 index db4d6e8c99..0000000000 --- a/meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 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: git/CMakeLists.txt | ||
| 10 | =================================================================== | ||
| 11 | --- git.orig/CMakeLists.txt | ||
| 12 | +++ git/CMakeLists.txt | ||
| 13 | @@ -36,7 +36,7 @@ FIND_PACKAGE(LibXml2 REQUIRED) | ||
| 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}/libmusicbrainz5.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libmusicbrainz5.pc) | ||
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}" | ||
