All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] libqwt: new package
Date: Sun, 29 Apr 2012 16:41:03 +0200	[thread overview]
Message-ID: <4F9D52FF.5070901@mind.be> (raw)
In-Reply-To: <1335694051-21922-1-git-send-email-br2@gezedo.com>

  Hoi Laurent,

  Thanks for this resend.  Looks like you didn't read all of my feedback 
though.

On 04/29/12 12:07, Laurent GONZALEZ wrote:

  Each patch should contain your Signed-off-by line.  This is a
statement from you that you have the right to publish it.  See
http://elinux.org/Developer_Certificate_Of_Origin

> ---
>   package/Config.in        |    1 +
>   package/libqwt/Config.in |   22 +++++++++++++++++++++
>   package/libqwt/libqwt.mk |   48 ++++++++++++++++++++++++++++++++++++++++++++++
>   3 files changed, 71 insertions(+), 0 deletions(-)
>   create mode 100644 package/libqwt/Config.in
>   create mode 100644 package/libqwt/libqwt.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index a310146..ce7c29d 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -317,6 +317,7 @@ source "package/libglade/Config.in"
>   source "package/gdk-pixbuf/Config.in"
>   source "package/libgtk2/Config.in"
>   source "package/libpng/Config.in"
> +source "package/libqwt/Config.in"

  Since the upstream package is called qwt, I'd call the buildroot package
qwt instead of libqwt.  Also, because it provides a widget, I'd put it
under 'other GUIs', directly below qt.

>   source "package/libraw/Config.in"
>   source "package/librsvg/Config.in"
>   source "package/libsvgtiny/Config.in"
> diff --git a/package/libqwt/Config.in b/package/libqwt/Config.in
> new file mode 100644
> index 0000000..6c53ac5
> --- /dev/null
> +++ b/package/libqwt/Config.in
> @@ -0,0 +1,22 @@
> +config BR2_PACKAGE_LIBQWT
> +	bool "libqwt"
> +	depends on BR2_PACKAGE_QT
> +	help
> +	  Qwt is a graphics extension to the Qt GUI application framework. It provides a 2D plotting widget and more.

  The help text should be wrapped at 80 columns (where the tab counts as 8 characters).

> +
> +	  http://http://sourceforge.net/projects/qwt
> +
> +if BR2_PACKAGE_LIBQWT
> +
> +config BR2_PACKAGE_LIBQWT_SVG
> +	bool "SVG support"
> +	select BR2_PACKAGE_QT_SVG
> +
> +config BR2_PACKAGE_LIBQWT_MATHML
> +	bool "MathML support"
> +
> +endif
> +
> +comment "libqwt requires qt"
> +	depends on !BR2_PACKAGE_QT
> +
> diff --git a/package/libqwt/libqwt.mk b/package/libqwt/libqwt.mk
> new file mode 100644
> index 0000000..c97010c
> --- /dev/null
> +++ b/package/libqwt/libqwt.mk
> @@ -0,0 +1,48 @@
> +#############################################################
> +#
> +# libqwt
> +#
> +#############################################################
> +LIBQWT_VERSION = 6.0.1
> +LIBQWT_SOURCE = qwt-$(LIBQWT_VERSION).tar.bz2
> +LIBQWT_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/qwt/qwt/$(LIBQWT_VERSION)/
> +LIBQWT_INSTALL_STAGING = YES
> +LIBQWT_DEPENDENCIES = qt
> +
> +LIBQWT_CONFIG  =    's%QWT_INSTALL_PREFIX.*/usr/local/.*%QWT_INSTALL_PREFIX = /usr%'
> +LIBQWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDesigner.*$$/\# QWT_CONFIG += QwtDesigner/'
  For consistency, I'd use % everywhere in the sed expressions.
  Also for consistency, I'd use -e in the first expression too.

> +LIBQWT_CONFIG += -e 's%/features%/mkspecs/features%'
> +
> +ifeq ($(BR2_PACKAGE_LIBQWT_SVG),y)
> +	LIBQWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtSvg.*$$/QWT_CONFIG += QwtSvg/'
> +else
> +	LIBQWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtSvg.*$$/\# QWT_CONFIG += QwtSvg/'
> +endif
> +
> +ifeq ($(BR2_PACKAGE_LIBQWT_MATHML),y)
> +	LIBQWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtMathML.*$$/QWT_CONFIG += QwtMathML/'
> +else
> +	LIBQWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtMathML.*$$/\# QWT_CONFIG += QwtMathML/'
> +endif
> +
> +define LIBQWT_CONFIGURE_CMDS
> +	$(SED) $(LIBQWT_CONFIG) $(@D)/qwtconfig.pri
> +	(cd $(@D); $(QT_QMAKE))
> +endef
> +
> +define LIBQWT_BUILD_CMDS
> +	$(MAKE) -C $(@D)
> +endef
> +
> +define LIBQWT_INSTALL_STAGING_CMDS
> +	$(MAKE) -C $(@D) install INSTALL_ROOT=$(STAGING_DIR)
> +	cp -a $(STAGING_DIR)/usr/mkspecs $(HOST_DIR)/usr
  I would expect that only the qwtconfig.pri needs to be copied,
not the whole mkspecs directory.
> +	$(SED) 's%QWT_INSTALL_PREFIX = /usr%QWT_INSTALL_PREFIX = $(STAGING_DIR)/usr%' $(HOST_DIR)/usr/mkspecs/features/qwtconfig.pri
> +endef
> +
> +define LIBQWT_INSTALL_TARGET_CMDS
> +	$(MAKE) -C $(@D) install INSTALL_ROOT=$(TARGET_DIR)
> +	rm -Rf $(TARGET_DIR)/usr/mkspecs
> +endef
> +
> +$(eval $(call GENTARGETS))

  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

  reply	other threads:[~2012-04-29 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-29 10:07 [Buildroot] [PATCH] libqwt: new package Laurent GONZALEZ
2012-04-29 14:41 ` Arnout Vandecappelle [this message]
2012-04-29 17:04 ` Thomas Petazzoni
2012-04-29 19:22   ` Laurent GONZALEZ

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=4F9D52FF.5070901@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.