From: Gary Thomas <gary@mlbassoc.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH] mpv: Media Player
Date: Thu, 10 Mar 2016 08:40:49 +0100 [thread overview]
Message-ID: <56E12501.1070909@mlbassoc.com> (raw)
In-Reply-To: <20160310073340.GR2542@jama>
On 2016-03-10 08:33, Martin Jansa wrote:
> On Thu, Mar 10, 2016 at 05:42:39AM +0100, Gary Thomas wrote:
>> On 2016-03-09 20:15, Martin Jansa wrote:
>>> On Wed, Mar 09, 2016 at 07:20:33AM +0100, Gary Thomas wrote:
>>>> mpv is a fork of mplayer2 and MPlayer. It shares some features with the former projects while introducing many more.
>>>>
>>>> Signed-off-by: Gary Thomas <gary@mlbassoc.com>
>>>> ---
>>>> meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb | 60 ++++++++++++++++++++++++
>>>> 1 file changed, 60 insertions(+)
>>>> create mode 100644 meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb
>>>>
>>>> diff --git a/meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb b/meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb
>>>> new file mode 100644
>>>> index 0000000..37e4b02
>>>> --- /dev/null
>>>> +++ b/meta-oe/recipes-multimedia/mplayer/mpv_0.15.0.bb
>>>> @@ -0,0 +1,60 @@
>>>> +SUMMARY = "Open Source multimedia player"
>>>> +SECTION = "multimedia"
>>>> +HOMEPAGE = "http://www.mpv.io/"
>>>> +DEPENDS = "zlib ffmpeg jpeg virtual/libx11 xsp libxv libxscrnsaver"
>>>> +
>>>> +# Depends on xsp, libxv, virtual/libx11, libxscrnsaver
>>>> +REQUIRED_DISTRO_FEATURES = "x11"
>>>> +
>>>> +LICENSE = "GPLv2+"
>>>> +LIC_FILES_CHKSUM = "file://LICENSE;md5=91f1cb870c1cc2d31351a4d2595441cb"
>>>> +
>>>> +SRC_URI = "https://github.com/mpv-player/mpv/archive/v${PV}.tar.gz;name=mpv \
>>>> + http://www.freehackers.org/~tnagy/release/waf-1.8.12;name=waf \
>>>> +"
>>>> +SRC_URI[mpv.md5sum] = "9042bd3fbff2bc8ba0b7fadaa4a22101"
>>>> +SRC_URI[mpv.sha256sum] = "7d31217ba8572f364fcea2955733f821374ae6d8c6d8f22f8bc63c44c0400bdc"
>>>> +SRC_URI[waf.md5sum] = "cef4ee82206b1843db082d0b0506bf71"
>>>> +SRC_URI[waf.sha256sum] = "01bf2beab2106d1558800c8709bc2c8e496d3da4a2ca343fe091f22fca60c98b"
>>>> +
>>>> +EXTRA_OECONF = " \
>>>> + --prefix=${D}/usr \
>>> why not ${prefix} and does it really need to be prefixed with ${D}
>>> (unlike mandir bellow)? Ugly waf.
>
> What about ${D}?
>
>>>> + --mandir=${mandir} \
>>>> + --target=${SIMPLE_TARGET_SYS} \
>>>> + --disable-gl \
>>>> + --disable-libsmbclient \
>>>> + --disable-libass \
>>>> + --disable-lua \
>>>> + --disable-libass-osd \
>>>> + --disable-encoding \
>>>> + --disable-libbluray \
>>>> + --disable-dvdread \
>>>> + --disable-dvdnav \
>>>> + --disable-cdda \
>>>> + --disable-enca \
>>>> + --disable-libguess \
>>>> + --disable-uchardet \
>>>> + --disable-rubberband \
>>>> + --disable-lcms2 \
>>>> + --disable-vapoursynth \
>>>> + --disable-vapoursynth-lazy \
>>>> + --enable-libarchive \
>>>> +"
>>>> +
>>>> +do_configure() {
>>>> + if [ ! -L ../waf ]; then
>>>> + chmod a+x ../waf-1.8.12
>>>> + ln -s waf-1.8.12 ../waf
>>>> + fi
>>>> + ../waf configure ${EXTRA_OECONF}
>>>> +}
>>>> +
>>>> +do_compile () {
>>>> + ../waf build
>>>> +}
>>>> +
>>>> +do_install() {
>>>> + ../waf install
>>>> +}
>>>> +
>>>> +FILES_${PN} += "/usr/"
>>>
>>> ${prefix}?
>>>
>>> Does it install files in strange directories not covered by standard
>>> FILES?
>>>
>>
>> Use of ${prefix} does seem correct, I've updated the recipe.
>> Patch v2 has been dispatched, including a required update to
>> the libass package which was necessary to get a fully functional
>> mpv.
>
> Does it install files in strange directories not covered by standard
> FILES?
No, but it doesn't seem to have any notion of adjusting the install
directory except at configure time, hence ${D}${prefix}
Please refer to the new patchset to see how I've changed the recipe.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2016-03-10 7:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-09 6:20 [meta-oe][PATCH] mpv: Media Player Gary Thomas
2016-03-09 19:15 ` Martin Jansa
2016-03-10 4:42 ` Gary Thomas
2016-03-10 7:33 ` Martin Jansa
2016-03-10 7:40 ` Gary Thomas [this message]
2016-03-10 7:57 ` Martin Jansa
2016-03-10 8:18 ` Gary Thomas
2016-03-10 13:02 ` Gary Thomas
2016-03-10 13:11 ` Martin Jansa
2016-03-10 13:10 ` Gary Thomas
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=56E12501.1070909@mlbassoc.com \
--to=gary@mlbassoc.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