From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v5 07/34] package/kodi-texturepacker: new host package
Date: Sat, 22 Apr 2017 11:26:50 +0200 [thread overview]
Message-ID: <20170422092650.GH15086@scaer> (raw)
In-Reply-To: <20170417195433.26672-8-bernd.kuhls@t-online.de>
Bernd, All,
On 2017-04-17 21:54 +0200, Bernd Kuhls spake thusly:
> Needed for upcoming kodi version bump to 17.1-Krypton which will also
> switch the kodi build system to CMake.
And now I see why you did not introduce a host-variant of Kodi: you need
two tools from it, and they are in different subdirs.
I still find it a bit of disapointing that the Kodi buildsystem can not
build its own tools... :-(
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/kodi-texturepacker/kodi-texturepacker.hash | 1 +
> package/kodi-texturepacker/kodi-texturepacker.mk | 34 ++++++++++++++++++++++
> package/kodi/kodi.hash | 1 +
> 3 files changed, 36 insertions(+)
> create mode 120000 package/kodi-texturepacker/kodi-texturepacker.hash
> create mode 100644 package/kodi-texturepacker/kodi-texturepacker.mk
>
> diff --git a/package/kodi-texturepacker/kodi-texturepacker.hash b/package/kodi-texturepacker/kodi-texturepacker.hash
> new file mode 120000
> index 000000000..92a75949b
> --- /dev/null
> +++ b/package/kodi-texturepacker/kodi-texturepacker.hash
> @@ -0,0 +1 @@
> +/home/bernd/buildroot/br8_ffmpeg3_kodi17_github/package/kodi/kodi.hash
> \ No newline at end of file
Uh-Oh, bad symlink again... :-/
> diff --git a/package/kodi-texturepacker/kodi-texturepacker.mk b/package/kodi-texturepacker/kodi-texturepacker.mk
> new file mode 100644
> index 000000000..bce73f7f0
> --- /dev/null
> +++ b/package/kodi-texturepacker/kodi-texturepacker.mk
> @@ -0,0 +1,34 @@
> +################################################################################
> +#
> +# kodi-texturepacker
> +#
> +################################################################################
> +
> +# Not possible to directly refer to kodi variables, because of
> +# first/second expansion trickery...
> +HOST_KODI_TEXTUREPACKER_VERSION = 17.1-Krypton
> +HOST_KODI_TEXTUREPACKER_SITE = $(call github,xbmc,xbmc,$(HOST_KODI_TEXTUREPACKER_VERSION))
> +HOST_KODI_TEXTUREPACKER_LICENSE = GPLv2
> +HOST_KODI_TEXTUREPACKER_LICENSE_FILES = LICENSE.GPL
As for the previous package: we usually do not prefix "generic"
variables with 'HOST_', even for host-only packages.
> +HOST_KODI_TEXTUREPACKER_SUBDIR = tools/depends/native/TexturePacker
> +HOST_KODI_TEXTUREPACKER_DEPENDENCIES += \
> + host-giflib \
> + host-libjpeg \
> + host-libpng \
> + host-lzo
> +
> +HOST_KODI_TEXTUREPACKER_HOST_CXXFLAGS = "$(HOST_CXXFLAGS) -std=c++0x \
> + -DTARGET_POSIX -DTARGET_LINUX -D_LINUX -I$(@D)/xbmc/linux"
When lines are really too long and contains many definitiions-or-stuff,
we usually make it a multi-line with one item per line, like you did for
_DEPENDENCIES, above. But in this case, you are setting CXXFLAGS and the
string is split on two lines, which is ugly.
HOST_KODI_TEXTUREPACKER_CXXFLAGS = \
$(HOST_CXXFLAGS) \
-DTARGET_POSIX \
-DTARGET_LINUX \
-D_LINUX \
-I$(@D)/xbmc/linux
(Note also that the variable lost the second 'HOST_' in its name,
because there is no 'host-cxxflags' when building for the host; there
are only 'cxxflags'.)
> +HOST_KODI_TEXTUREPACKER_CONF_OPTS += \
> + -DCMAKE_CXX_FLAGS=$(HOST_KODI_TEXTUREPACKER_HOST_CXXFLAGS) \
-DCMAKE_CXX_FLAGS=$(HOST_KODI_TEXTUREPACKER_CXXFLAGS)
> + -DCMAKE_MODULE_PATH=$(@D)/project/cmake/modules \
> + -DCORE_SOURCE_DIR=$(@D) \
> + -Wno-dev
> +
> +HOST_KODI_TEXTUREPACKER_INSTALL_CMDS = \
> + $(INSTALL) -m 755 -D \
> + $(@D)/tools/depends/native/TexturePacker/TexturePacker \
> + $(HOST_DIR)/usr/bin/TexturePacker
Please use a define block here too.
Regards,
Yann E. MORIN.
> +$(eval $(host-cmake-package))
> diff --git a/package/kodi/kodi.hash b/package/kodi/kodi.hash
> index b910af2d8..ae47c70c9 100644
> --- a/package/kodi/kodi.hash
> +++ b/package/kodi/kodi.hash
> @@ -1,3 +1,4 @@
> # Locally computed
> sha256 7d82c8aff2715c83deecdf10c566e26105bec0473af530a1356d4c747ebdfd10 kodi-16.1-Jarvis.tar.gz
> sha256 303f3903cbb57ccc2961f09cf3746505542bcb129a464f0687d7ca8601cebbee kodi-jsonschemabuilder-17.1-Krypton.tar.gz
> +sha256 303f3903cbb57ccc2961f09cf3746505542bcb129a464f0687d7ca8601cebbee kodi-texturepacker-17.1-Krypton.tar.gz
> --
> 2.11.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2017-04-22 9:26 UTC|newest]
Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-17 19:53 [Buildroot] [PATCH v5 00/34] kodi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 01/34] package/kodi-visualisation-fountain: remove package Bernd Kuhls
2017-04-22 7:13 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 02/34] package/libplatform: bump version to 2.1.0 Bernd Kuhls
2017-04-22 7:26 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 03/34] package/kodi-platform: bump version Bernd Kuhls
2017-04-22 7:31 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 04/34] package/libcec: bump version to 4.0.2 Bernd Kuhls
2017-04-22 7:35 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 05/34] package/xmlstarlet: add host variant Bernd Kuhls
2017-04-22 9:14 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 06/34] package/kodi-jsonschemabuilder: new host package Bernd Kuhls
2017-04-22 7:44 ` Yann E. MORIN
2017-04-22 9:16 ` Yann E. MORIN
2017-04-22 17:18 ` Bernd Kuhls
2017-04-22 19:04 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 07/34] package/kodi-texturepacker: " Bernd Kuhls
2017-04-22 9:26 ` Yann E. MORIN [this message]
2017-04-22 22:19 ` Arnout Vandecappelle
2017-04-23 6:40 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 08/34] package/kodi: bump to version 17.1-Krypton Bernd Kuhls
2017-04-22 20:24 ` Yann E. MORIN
2017-04-22 20:36 ` Bernd Kuhls
2017-04-22 20:41 ` Yann E. MORIN
2017-04-22 20:40 ` Bernd Kuhls
2017-04-22 20:54 ` Yann E. MORIN
2017-04-22 20:50 ` Bernd Kuhls
2017-04-22 20:55 ` Yann E. MORIN
2017-04-23 15:26 ` Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 09/34] package/kodi: add patch to disable online check Bernd Kuhls
2017-04-22 20:45 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 10/34] package/kodi-inputstream-rtmp: new package Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 11/34] package/kodi: move rtmp support to new addon kodi-inputstream-rtmp Bernd Kuhls
2017-04-23 8:00 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 12/34] package/kodi: add optional support for bluez5 Bernd Kuhls
2017-04-23 8:27 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 13/34] package/kodi: libxslt is an optional package Bernd Kuhls
2017-04-23 8:33 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 14/34] package/kodi: add optional support for pulseaudio Bernd Kuhls
2017-04-23 8:40 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 15/34] package/kodi: add optional support for event clients Bernd Kuhls
2017-04-23 8:43 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 16/34] package/kodi: add optional support for lcms2 Bernd Kuhls
2017-04-23 8:46 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 17/34] package/libsquish: remove deprecated package Bernd Kuhls
2017-04-23 8:50 ` Yann E. MORIN
2017-04-23 9:25 ` Bernd Kuhls
2017-04-23 9:50 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 18/34] package/kodi-pvr-*: mass version bump Bernd Kuhls
2017-04-23 9:03 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 19/34] package/kodi-pvr-mythtv: bump version to 4.15.0 Bernd Kuhls
2017-04-23 9:05 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 20/34] package/kodi-pvr-nextpvr: bump version to 2.4.11 Bernd Kuhls
2017-04-23 9:09 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 21/34] package/kodi-pvr-mediaportal-tvserver: needs locale support Bernd Kuhls
2017-04-23 9:26 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 22/34] package/kodi-adsp-basic: bump version Bernd Kuhls
2017-04-23 10:02 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 23/34] package/kodi-adsp-freesurround: " Bernd Kuhls
2017-04-23 10:03 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 24/34] package/kodi-audioencoder-*: mass version bump Bernd Kuhls
2017-04-23 10:04 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 25/34] package/kodi-audiodecoder-*: " Bernd Kuhls
2017-04-23 10:05 ` Yann E. MORIN
2017-04-23 10:40 ` Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 26/34] package/kodi-audiodecoder-timidity: bump version Bernd Kuhls
2017-04-23 10:07 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 27/34] package/kodi-screensaver-*: mass version bump Bernd Kuhls
2017-04-23 10:09 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 28/34] package/kodi-screensaver-rsxs: bump version Bernd Kuhls
2017-04-23 10:15 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 29/34] package/kodi-visualisation-*: mass version bump Bernd Kuhls
2017-04-23 10:17 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 30/34] package/kodi-visualisation-waveforhue: bump version Bernd Kuhls
2017-04-23 10:19 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 31/34] package/kodi-visualisation-shadertoy: " Bernd Kuhls
2017-04-23 10:23 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 32/34] package/kodi-inputstream-adaptive: new package Bernd Kuhls
2017-04-23 10:29 ` Yann E. MORIN
2017-04-17 19:54 ` [Buildroot] [PATCH v5 33/34] package/kodi-skin-confluence: " Bernd Kuhls
2017-04-23 10:32 ` Yann E. MORIN
2017-04-29 20:24 ` Bernd Kuhls
2017-04-17 19:54 ` [Buildroot] [PATCH v5 34/34] package/kodi: add Kconfig options to remove default skins Bernd Kuhls
2017-04-23 10:35 ` Yann E. MORIN
2017-04-17 19:59 ` [Buildroot] [PATCH v5 00/34] kodi: bump to version 17.1-Krypton Bernd Kuhls
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=20170422092650.GH15086@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.