diff options
-rw-r--r-- | meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/allow-libdir-override.patch | 19 | ||||
-rw-r--r-- | meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb | 7 |
2 files changed, 24 insertions, 2 deletions
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 new file mode 100644 index 0000000000..88f414ae05 --- /dev/null +++ b/meta/recipes-multimedia/musicbrainz/libmusicbrainz-3.0.3/allow-libdir-override.patch | |||
@@ -0,0 +1,19 @@ | |||
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 | Signed-off-by: Kumar Gala <galak@kernel.crashing.org> | ||
6 | |||
7 | Index: libmusicbrainz-3.0.3/CMakeLists.txt | ||
8 | =================================================================== | ||
9 | --- libmusicbrainz-3.0.3.orig/CMakeLists.txt | ||
10 | +++ libmusicbrainz-3.0.3/CMakeLists.txt | ||
11 | @@ -26,7 +26,7 @@ FIND_PACKAGE(DiscId) | ||
12 | SET(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)") | ||
13 | SET(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Installation prefix for executables and object code libraries" FORCE) | ||
14 | SET(BIN_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/bin CACHE PATH "Installation prefix for user executables" FORCE) | ||
15 | -SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries" FORCE) | ||
16 | +SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries") | ||
17 | SET(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "Installation prefix for C header files" FORCE) | ||
18 | |||
19 | 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.bb b/meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb index d6fb2f45ed..4814b6d2c7 100644 --- a/meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb +++ b/meta/recipes-multimedia/musicbrainz/libmusicbrainz_3.0.3.bb | |||
@@ -6,12 +6,15 @@ LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24 \ | |||
6 | file://include/musicbrainz3/includes.h;beginline=1;endline=21;md5=9ab2846573f560cea7561da472803a72" | 6 | file://include/musicbrainz3/includes.h;beginline=1;endline=21;md5=9ab2846573f560cea7561da472803a72" |
7 | DEPENDS = "expat neon" | 7 | DEPENDS = "expat neon" |
8 | 8 | ||
9 | PR = "r2" | 9 | PR = "r3" |
10 | 10 | ||
11 | SRC_URI = "http://ftp.musicbrainz.org/pub/musicbrainz/${BPN}-${PV}.tar.gz \ | 11 | SRC_URI = "http://ftp.musicbrainz.org/pub/musicbrainz/${BPN}-${PV}.tar.gz \ |
12 | file://fix_build_issue_for_gcc_4.5.0.patch " | 12 | file://fix_build_issue_for_gcc_4.5.0.patch \ |
13 | file://allow-libdir-override.patch " | ||
13 | 14 | ||
14 | SRC_URI[md5sum] = "f4824d0a75bdeeef1e45cc88de7bb58a" | 15 | SRC_URI[md5sum] = "f4824d0a75bdeeef1e45cc88de7bb58a" |
15 | SRC_URI[sha256sum] = "7fd459a9fd05be9faec60a9a21caa9a1e9fda03147d58d8c7c95f33582a738c5" | 16 | SRC_URI[sha256sum] = "7fd459a9fd05be9faec60a9a21caa9a1e9fda03147d58d8c7c95f33582a738c5" |
16 | 17 | ||
17 | inherit cmake pkgconfig | 18 | inherit cmake pkgconfig |
19 | |||
20 | EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir}" | ||