Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] package/bitstream: new package
Date: Sat, 17 Oct 2015 22:18:41 +0200	[thread overview]
Message-ID: <20151017201841.GB32247@free.fr> (raw)
In-Reply-To: <1445003680-26003-1-git-send-email-julian@jusst.de>

Julain, All,

On 2015-10-16 15:54 +0200, Julian Scheel spake thusly:
> BiTStream is a set of headers to ease processing of mpeg ts streams. It is
> used by dvblast.
> 
> Signed-off-by: Julian Scheel <julian@jusst.de>

Thanks for this new package. :-)

It is pretty good, but there are a few minor hickups to fix, see
below...

[--SNIP--]
> diff --git a/package/bitstream/Config.in b/package/bitstream/Config.in
> new file mode 100644
> index 0000000..3a7ad43
> --- /dev/null
> +++ b/package/bitstream/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_BITSTREAM
> +	bool "biTStream"

We write package names only in lower-case, even in the prompts.

> +	help
> +	  biTStream is a set of C headers allowing a simpler access to
> +	  binary structures such as specified by MPEG, DVB, IETF, SMPTE,
> +	  IEEE, SCTE, etc.
> +
> +	  http://www.videolan.org/developers/bitstream.html
> diff --git a/package/bitstream/bitstream.mk b/package/bitstream/bitstream.mk
> new file mode 100644
> index 0000000..cdca80f
> --- /dev/null
> +++ b/package/bitstream/bitstream.mk
> @@ -0,0 +1,19 @@
> +################################################################################
> +#
> +# biTStream
> +#
> +################################################################################
> +
> +BITSTREAM_VERSION = 1.1
> +BITSTREAM_SOURCE = bitstream-$(BITSTREAM_VERSION).tar.bz2
> +BITSTREAM_SITE = https://get.videolan.org/bitstream/$(BITSTREAM_VERSION)
> +BITSTREAM_LICENSE = MIT
> +
> +BITSTREAM_INSTALL_STAGING = YES
> +BITSTREAM_INSTALL_TARGET = NO

Even though it seems obvious from the help text, you should also state
here why it is only installed in staging and not intargetm, like so:

    # Only installs headers files:
    BITSTREAM_INSTALL_STAGING = YES
    BITSTREAM_INSTALL_TARGET = NO

> +define BITSTREAM_INSTALL_STAGING_CMDS
> +	(cd $(@D); $(MAKE) PREFIX=$(STAGING_DIR)/usr install)

Even if this is working, the proper solution is to pass DESTDIR and
PREFIX, like so:

    $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install

Also note the little trick to avoid 'cd' ;-)

Care to fix and resend, please? Thanks! :-)

Regards,
Yann E. MORIN.

> +endef
> +
> +$(eval $(generic-package))
> -- 
> 2.6.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.  |
'------------------------------^-------^------------------^--------------------'

      parent reply	other threads:[~2015-10-17 20:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16 13:54 [Buildroot] [PATCH 1/2] package/bitstream: new package Julian Scheel
2015-10-16 13:54 ` [Buildroot] [PATCH 2/2] dvblast: " Julian Scheel
2015-10-17 20:41   ` Yann E. MORIN
2015-10-17 20:18 ` Yann E. MORIN [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=20151017201841.GB32247@free.fr \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox