From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 1/1] vlc: New package
Date: Sun, 11 Mar 2012 14:08:27 +0100 [thread overview]
Message-ID: <201203111408.28171.arnout@mind.be> (raw)
In-Reply-To: <1330923026-1917-2-git-send-email-ismael.luceno@gmail.com>
On Monday 05 March 2012 05:50:26 Ismael Luceno wrote:
> Signed-off-by: Ismael Luceno <ismael.luceno@gmail.com>
Impressive!
BTW, the changelog is normally put under the commit message and three
dashes, like this:
---
Changes since v1:
* Added a description for the package
* Described and signed-off the patch
* Added configuration knobs for all available dependencies and other
build options.
[snip]
> +comment "CODECs"
I wouldn't spell codecs in all caps. But that's a minor detail.
[snip]
> +VLC_CONF_OPTS += \
> + --$(if $(BR2_PACKAGE_VLC_LOWMEM),en,dis}able-optimize-memory \
> + --$(if $(BR2_PACKAGE_VLC_SOUT),en,dis)able-sout \
> + --$(if $(BR2_PACKAGE_VLC_HTTPD),en,dis)able-httpd \
> + --$(if $(BR2_PACKAGE_VLC_VLM),en,dis)able-vlm \
> + --$(if $(BR2_PACKAGE_VLC_SCREEN),en,dis)able-screen \
> + --$(if $(BR2_PACKAGE_VLC_VCD),en,dis)able-vcd \
> + --$(if $(BR2_PACKAGE_VLC_VISUAL),en,dis)able-visual \
> + --$(if $(BR2_PACKAGE_VLC_ATMO),en,dis)able-atmo \
> + --$(if $(BR2_PACKAGE_VLC_OSS),en,dis)able-oss \
> + --$(if $(BR2_PACKAGE_VLC_FRONTEND),en,dis)able-vlc \
> + --$(if $(BR2_PACKAGE_VLC_XOSD),en,dis)able-xosd \
> + --$(if $(BR2_PACKAGE_VLC_FBOSD),en,dis)able-fbosd \
> + --$(if $(BR2_PACKAGE_VLC_PVR),en,dis)able-pvr \
> + --$(if $(BR2_PACKAGE_VLC_MEDIALIB),en,dis)able-media-library
I would write this as
VLC_CONF_OPTS += --$(if $(BR2_PACKAGE_VLC_LOWMEM),en,dis}able-optimize-memory
VLC_CONF_OPTS += --$(if $(BR2_PACKAGE_VLC_SOUT),en,dis}able-sout
...
because it makes for cleaner patches.
> +
> +ifeq ($(call qstrip,$(BR2_GCC_TARGET_ARCH)),armv7-a)
> +VLC_CONF_OPTS += --enable-neon
Is armv7-a the only architecture with Neon support?
More generally, maybe we should have an architecture symbol for neon on
which this type of package can rely.
> +else
> +VLC_CONF_OPTS += --disable-neon
> +endif
> +
> +define VLC_CONFIGURE_CMDS
> + echo $(VLC_VERSION) > $(@D)/src/revision.txt
> + (cd $(@D); rm -rf config.cache; \
> + test -x configure || ./bootstrap; \
> + $(TARGET_CONFIGURE_OPTS) \
> + $(TARGET_CONFIGURE_ARGS) \
> + ./configure \
> + --prefix=/usr \
> + --sysconfdir=/etc \
> + --build=$(GNU_HOST_NAME) \
> + --host=$(GNU_TARGET_NAME) \
> + --disable-rpath \
> + --enable-run-as-root \
> + $(VLC_CONF_OPTS) \
> + CXXFLAGS="$(TARGET_CXXFLAGS)"; \
> + )
> + $(SED) '1i#define HAVE_VASPRINTF 1' $(@D)/config.h
> +endef
Why do the normal configure commands not work?
The revision.txt could be done in POST_PATCH_HOOKS.
The bootstrap can be done in PRE_CONFIGURE_HOOKS. However, isn't vlc
distributed with a configure script? So the bootstrap will never be
executed, right?
The configure arguments can be added to VLC_CONF_OPTS.
The vasprintf can be done in POST_CONFIGURE_HOOKS.
For all of these, there should be a comment explaining why it is needed.
This will help later for version bumpers to remove it again, when it is
no longer needed because of upstream updates.
> +
> +define VLC_INSTALL_TARGET_CMDS
> + find $(@D) -name '*.la' -exec $(SED) '/^relink_command=/d' '{}' +
> + touch $(@D)/modules/access/zip/libzip_plugin.la \
> + $(@D)/modules/misc/liblogger_plugin.la
Again, I would put these in the POST_BUILD_HOOKS and use the normal
install commands.
> + $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
> +endef
> +
> +$(eval $(call AUTOTARGETS))
>
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
next prev parent reply other threads:[~2012-03-11 13:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-05 4:50 [Buildroot] [PATCHv2 0/1] vlc: New package Ismael Luceno
2012-03-05 4:50 ` [Buildroot] [PATCHv2 1/1] " Ismael Luceno
2012-03-11 13:08 ` Arnout Vandecappelle [this message]
2012-03-12 19:15 ` Ismael Luceno
2012-03-13 22:45 ` Arnout Vandecappelle
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=201203111408.28171.arnout@mind.be \
--to=arnout@mind.be \
--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.