Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v12 1/1] squeezelite: new package
Date: Thu, 24 Sep 2015 15:28:03 +0100	[thread overview]
Message-ID: <56040873.30608@imgtec.com> (raw)
In-Reply-To: <201509241332.t8ODWvNZ013481@ms-omx03.plus.so-net.ne.jp>

Dear Hiroshi Kawashima,

are you able to download squeezelite? I'm having this problem:

>>> squeezelite v1.8 Downloading
Doing shallow clone
Initialized empty Git repository in
/br/output/build/.squeezelite-v1.8.tar.gz.pb3XtQ/squeezelite-v1.8/
remote: Counting objects: 82, done.
Unpacking objects: 100% (82/82), done.
warning: Remote branch v1.8 not found in upstream origin, using HEAD instead
fatal: unable to read tree 668edec073bef579bedf43817f65aee3a592d0ef

On 09/24/2015 02:32 PM, kei-k at ca2.so-net.ne.jp wrote:
> Dear, reviewers.
> 
> Thank you for your many comment and suggestions.
> 
> I'm very sorry to post patches so many times.
> I think I reflected all feedbacks except TARGET_CONFIGURE_OPTS issue.
> I'm not sure the right way to fix this, so would anyone suggest me?

TARGET_CONFIGURE_OPTS is a variable which defines PATH, CC, LD and more
things. You can have a look at it in package/Makefile.in, line #247.

Instead of passing CC="$(TARGET_CC)" LD="$(TARGET_LD) to the make
command, you could just pass $(TARGET_CONFIGURE_OPTS).

There is a comment at the end where I show you how to use it.

> 
> v11 -> v12
> - remove -DRESAMPLE_MP, because libsoxr is compiled without
>   openMP support in buildroot, so meaningless for now.
> - add -DLINKALL to resolve symbols in optional libraries (libsoxr, etc).
> - add more configuration options : ffmpeg, DSD, Visualizer.
>   lirc support is not included for now, because more work will be
>   necessary to use it (eg: modifying package/lirc-tools to add
>   LIRC_TOOLS_INSTALL_STAGING = YES).

Remember the changelog goes below "---".

> Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
> ---

Here is where the changelog should be.

Please read:

http://buildroot.org/downloads/manual/manual.html#submitting-patches

Scroll down until "21.5.2. Patch revision changelog" subsection.

>  package/Config.in                  |    1 +
>  package/squeezelite/Config.in      |   46 ++++++++++++++++++++++++++++++++++++
>  package/squeezelite/squeezelite.mk |   42 ++++++++++++++++++++++++++++++++
>  3 files changed, 89 insertions(+), 0 deletions(-)
>  create mode 100644 package/squeezelite/Config.in
>  create mode 100644 package/squeezelite/squeezelite.mk
> 
[snip]
> diff --git a/package/squeezelite/squeezelite.mk b/package/squeezelite/squeezelite.mk
> new file mode 100644
> index 0000000..9611b97
> --- /dev/null
> +++ b/package/squeezelite/squeezelite.mk
> @@ -0,0 +1,42 @@
> +################################################################################
> +#
> +# squeezelite
> +#
> +################################################################################
> +
> +SQUEEZELITE_VERSION = v1.8
> +SQUEEZELITE_SITE = https://code.google.com/p/squeezelite
> +SQUEEZELITE_SITE_METHOD = git
> +SQUEEZELITE_LICENSE = GPLv3
> +SQUEEZELITE_LICENSE_FILE = LICENSE.txt
> +SQUEEZELITE_DEPENDENCIES = alsa-lib flac libmad libvorbis faad2 mpg123
> +SQUEEZELITE_MAKE_OPTS = -DLINKALL
> +
> +ifeq ($(BR2_PACKAGE_SQUEEZELITE_FF),y)
> +SQUEEZELITE_DEPENDENCIES += ffmpeg
> +SQUEEZELITE_MAKE_OPTS += -DFFMPEG
> +endif
> +
> +ifeq ($(BR2_PACKAGE_SQUEEZELITE_DSD),y)
> +SQUEEZELITE_MAKE_OPTS += -DDSD
> +endif
> +
> +ifeq ($(BR2_PACKAGE_SQUEEZELITE_RESAMPLE),y)
> +SQUEEZELITE_DEPENDENCIES += libsoxr
> +SQUEEZELITE_MAKE_OPTS += -DRESAMPLE
> +endif
> +
> +ifeq ($(BR2_PACKAGE_SQUEEZELITE_VISEXPORT),y)
> +SQUEEZELITE_MAKE_OPTS += -DVISEXPORT
> +endif
> +
> +define SQUEEZELITE_BUILD_CMDS
> +	$(TARGET_MAKE_ENV) $(MAKE) OPTS="$(SQUEEZELITE_MAKE_OPTS)" \
> +		CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all

Here is where you could use the $(TARGET_CONFIGURE_OPTS) variable:

	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
		OPTS="$(SQUEEZELITE_MAKE_OPTS)" -C $(@D) all

Perhaps using $(TARGET_CONFIGURE_OPTS) as environment variable would
work as well, and since it also defines PATH, then $(TARGET_MAKE_ENV)
wouldn't be needed:

	$(TARGET_CONFIGURE_OPTS) $(MAKE) \
		OPTS="$(SQUEEZELITE_MAKE_OPTS)" -C $(@D) all


Regards,

Vincent.

> +endef
> +
> +define SQUEEZELITE_INSTALL_TARGET_CMDS
> +	$(INSTALL) -D -m 0755 $(@D)/squeezelite $(TARGET_DIR)/usr/bin
> +endef
> +
> +$(eval $(generic-package))
> 

  reply	other threads:[~2015-09-24 14:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-24 13:32 [Buildroot] [PATCH v12 1/1] squeezelite: new package kei-k at ca2.so-net.ne.jp
2015-09-24 14:28 ` Vicente Olivert Riera [this message]
2015-09-24 14:34   ` Vicente Olivert Riera
2015-09-25  3:04   ` kei-k at ca2.so-net.ne.jp
2015-09-25  9:12     ` Vicente Olivert Riera
2015-09-25  9:28       ` 川島 浩
2015-09-25 15:07         ` kei
2015-09-25 15:11           ` kei
2015-09-26 11:15           ` 川島 浩
2015-09-25 13:52       ` kei
2015-09-25 14:14       ` Thomas Petazzoni
2015-09-25 14:18         ` Vicente Olivert Riera
2015-09-25 14:22           ` Vicente Olivert Riera
2015-09-25 15:04             ` kei
2015-09-25 15:34               ` kei

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=56040873.30608@imgtec.com \
    --to=vincent.riera@imgtec.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox