On Fri, Jun 24, 2011 at 12:22:32PM +0100, Christian Gagneraud wrote: > Signed-off-by: Christian Gagneraud <[email protected]> > ---
Just reuse my comments from ofono-qt :-) Michael > rules/connman-qt.in | 22 ++++++++++++ > rules/connman-qt.make | 86 > +++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 108 insertions(+), 0 deletions(-) > create mode 100644 rules/connman-qt.in > create mode 100644 rules/connman-qt.make > > diff --git a/rules/connman-qt.in b/rules/connman-qt.in > new file mode 100644 > index 0000000..ab27908 > --- /dev/null > +++ b/rules/connman-qt.in > @@ -0,0 +1,22 @@ > +## SECTION=qt > + > +menuconfig CONNMAN_QT > + tristate > + prompt "connman Qt" > + depends on QT4 > + depends on CONNMAN > + help > + This package contains Qt bindings for connman. > + > +if CONNMAN_QT > + > +config CONNMAN_QT_TESTS > + bool > + default n > + prompt "Install tests" > + select QT4_BUILD_QTESTLIB > + help > + Build and install connman-qt testsuite. > + > +endif > + > diff --git a/rules/connman-qt.make b/rules/connman-qt.make > new file mode 100644 > index 0000000..15f5c20 > --- /dev/null > +++ b/rules/connman-qt.make > @@ -0,0 +1,86 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2011 by Christian Gagneraud <[email protected]> > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_CONNMAN_QT) += connman-qt > + > +# > +# Paths and names > +# > +CONNMAN_QT_NAME := connman-qt > +CONNMAN_QT_VERSION := 0.1.0 > +CONNMAN_QT_MD5 := 1424e0951cce9a1cef7d0fdf7e5ec2c9 > +CONNMAN_QT := $(CONNMAN_QT_NAME)-$(CONNMAN_QT_VERSION) > +CONNMAN_QT_SUFFIX := tar.bz2 > +CONNMAN_QT_URL := > http://api.meego.com/public/source/Trunk/libconnman-qt/$(CONNMAN_QT).$(CONNMAN_QT_SUFFIX) > +CONNMAN_QT_SOURCE := $(SRCDIR)/$(CONNMAN_QT).$(CONNMAN_QT_SUFFIX) > +CONNMAN_QT_DIR := $(BUILDDIR)/$(CONNMAN_QT) > +CONNMAN_QT_LICENSE := ??? > + > +# > ---------------------------------------------------------------------------- > +# Prepare > +# > ---------------------------------------------------------------------------- > + > +$(STATEDIR)/connman-qt.prepare: > + @$(call targetinfo) > +# @sed -i -e 's,\[QT_INSTALL_PREFIX\],/usr,g' > $(CONNMAN_QT_DIR)/lib/lib.pro > +# @sed -i -e 's,\[QT_INSTALL_PREFIX\],/usr,g' > $(CONNMAN_QT_DIR)/tests/tests.pro > + @$(call world/prepare, CONNMAN_QT) > + @$(call touch) > + > +# > ---------------------------------------------------------------------------- > +# Compile > +# > ---------------------------------------------------------------------------- > + > +$(STATEDIR)/connman-qt.compile: > + @$(call targetinfo) > + @$(call compile, CONNMAN_QT, sub-libconnman-qt-all) > +ifdef PTXCONF_CONNMAN_QT_TESTS > + @$(call compile, CONNMAN_QT, sub-test-all) > +endif > + @$(call touch) > + > +# > ---------------------------------------------------------------------------- > +# Install > +# > ---------------------------------------------------------------------------- > + > +$(STATEDIR)/connman-qt.install: > + @$(call targetinfo) > + @$(MAKE) -C $(CONNMAN_QT_DIR)/libconnman-qt install > INSTALL_ROOT=$(CONNMAN_QT_PKGDIR) > +ifdef PTXCONF_CONNMAN_QT_TESTS > + @$(MAKE) -C $(CONNMAN_QT_DIR)/test install > INSTALL_ROOT=$(CONNMAN_QT_PKGDIR) > +endif > + @$(call touch) > + > +# > ---------------------------------------------------------------------------- > +# Target-Install > +# > ---------------------------------------------------------------------------- > + > +$(STATEDIR)/connman-qt.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, connman-qt) > + > + @$(call install_fixup, connman-qt,PRIORITY,optional) > + @$(call install_fixup, connman-qt,SECTION,base) > + @$(call install_fixup, connman-qt,AUTHOR,"Christian Gagneraud > <[email protected]>") > + @$(call install_fixup, connman-qt,DESCRIPTION,Qt bindings for connman) > + > + @$(call install_lib, connman-qt, 0, 0, 0644, libconnman-qt4) > +ifdef PTXCONF_CONNMAN_QT_TESTS > +# TODO: install tests > +endif > + > + @$(call install_finish, connman-qt) > + > + @$(call touch) > + > -- > 1.7.4.1 > > > -- > ptxdist mailing list > [email protected] > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list [email protected]
