From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-multimedia][PATCH 1/1] libmusicbrainz: add
Date: Tue, 5 Feb 2013 11:21:38 +0100 [thread overview]
Message-ID: <20130205102138.GL3271@jama> (raw)
In-Reply-To: <8368232e3997a3553addd705aacd0d1c56177682.1359639067.git.ross.burton@intel.com>
[-- Attachment #1: Type: text/plain, Size: 4303 bytes --]
On Thu, Jan 31, 2013 at 01:34:14PM +0000, Ross Burton wrote:
> Moved from oe-core.
Merged, thanks
>
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
> .../musicbrainz/files/allow-libdir-override.patch | 21 +++++++++++
> .../musicbrainz/libmusicbrainz_git.bb | 38 ++++++++++++++++++++
> 2 files changed, 59 insertions(+)
> create mode 100644 meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch
> create mode 100644 meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
>
> diff --git a/meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch b/meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch
> new file mode 100644
> index 0000000..d59d12e
> --- /dev/null
> +++ b/meta-multimedia/recipes-multimedia/musicbrainz/files/allow-libdir-override.patch
> @@ -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)
> 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 0000000..051db7b
> --- /dev/null
> +++ b/meta-multimedia/recipes-multimedia/musicbrainz/libmusicbrainz_git.bb
> @@ -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"
> --
> 1.7.10.4
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
prev parent reply other threads:[~2013-02-05 10:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-31 13:34 [meta-multimedia][PATCH 0/1] Add libmusicbrainz Ross Burton
2013-01-31 13:34 ` [meta-multimedia][PATCH 1/1] libmusicbrainz: add Ross Burton
2013-02-05 10:21 ` Martin Jansa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130205102138.GL3271@jama \
--to=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox