mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-02 15:05:57 +00:00
libmusicbrainz: add
Moved from oe-core. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
1b2de682b6
commit
95b04ad54c
@ -0,0 +1,21 @@
|
|||||||
|
Allow LIB_INSTALL_DIR to be set by the the cmake configure invocation. We dont
|
||||||
|
easily have a way of determining something that patches ${LIB_SUFFIX} so we'll
|
||||||
|
set LIB_INSTALL_DIR.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [configuration]
|
||||||
|
|
||||||
|
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
|
||||||
|
|
||||||
|
Index: libmusicbrainz-3.0.3/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- libmusicbrainz-3.0.3.orig/CMakeLists.txt
|
||||||
|
+++ libmusicbrainz-3.0.3/CMakeLists.txt
|
||||||
|
@@ -26,7 +26,7 @@ FIND_PACKAGE(DiscId)
|
||||||
|
SET(LIB_SUFFIX "" CACHE STRING "Define suffix of directory name (32/64)")
|
||||||
|
SET(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Installation prefix for executables and object code libraries" FORCE)
|
||||||
|
SET(BIN_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/bin CACHE PATH "Installation prefix for user executables" FORCE)
|
||||||
|
-SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries" FORCE)
|
||||||
|
+SET(LIB_INSTALL_DIR ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX} CACHE PATH "Installation prefix for object code libraries")
|
||||||
|
SET(INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/include CACHE PATH "Installation prefix for C header files" FORCE)
|
||||||
|
|
||||||
|
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/libmusicbrainz3.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/libmusicbrainz3.pc)
|
||||||
@ -0,0 +1,38 @@
|
|||||||
|
SUMMARY = "MusicBrainz client library"
|
||||||
|
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."
|
||||||
|
HOMEPAGE = "http://musicbrainz.org"
|
||||||
|
LICENSE = "LGPLv2.1+"
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=fbc093901857fcd118f065f900982c24"
|
||||||
|
DEPENDS = "expat neon"
|
||||||
|
|
||||||
|
PV = "5.0.1+git${SRCPV}"
|
||||||
|
PR = "r0"
|
||||||
|
|
||||||
|
SRCREV = "0749dd0a35b4a54316da064475863a4ac6e28e7e"
|
||||||
|
SRC_URI = "git://github.com/metabrainz/libmusicbrainz.git \
|
||||||
|
file://allow-libdir-override.patch "
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
LDFLAGS_prepend_libc-uclibc = " -lpthread "
|
||||||
|
|
||||||
|
|
||||||
|
inherit cmake pkgconfig
|
||||||
|
|
||||||
|
do_configure_prepend() {
|
||||||
|
# The native build really doesn't like being rebuilt, so delete
|
||||||
|
# it if it's already present.
|
||||||
|
rm -rf build-native
|
||||||
|
mkdir build-native
|
||||||
|
cd build-native
|
||||||
|
cmake -DCMAKE_C_FLAGS=${BUILD_CFLAGS} \
|
||||||
|
-DCMAKE_C_COMPILER=${BUILD_CC} \
|
||||||
|
-DCMAKE_CXX_FLAGS=${BUILD_CXXFLAGS} \
|
||||||
|
-DCMAKE_CXX_COMPILER=${BUILD_CXX} \
|
||||||
|
..
|
||||||
|
make make-c-interface
|
||||||
|
cd ..
|
||||||
|
}
|
||||||
|
|
||||||
|
EXTRA_OECMAKE = "-DLIB_INSTALL_DIR:PATH=${libdir} \
|
||||||
|
-DIMPORT_EXECUTABLES=build-native/ImportExecutables.cmake"
|
||||||
Loading…
x
Reference in New Issue
Block a user