All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: ofono@ofono.org
Subject: Re: [PATCH 2/2] Support for pkg-config
Date: Wed, 26 Jan 2011 12:27:23 +0100	[thread overview]
Message-ID: <1296041243.1520.128.camel@aeonflux> (raw)
In-Reply-To: <1296040172-19180-2-git-send-email-remi.denis-courmont@nokia.com>

[-- Attachment #1: Type: text/plain, Size: 2338 bytes --]

Hi Remi,

>  .gitignore   |    1 +
>  Makefile.am  |    3 +++
>  configure.ac |    2 +-
>  ofono.pc.in  |   10 ++++++++++
>  4 files changed, 15 insertions(+), 1 deletions(-)
>  create mode 100644 ofono.pc.in
> 
> diff --git a/.gitignore b/.gitignore
> index 7cfb1d9..59308be 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -20,6 +20,7 @@ install-sh
>  libtool
>  ltmain.sh
>  missing
> +ofono.pc
>  stamp-h1
>  autom4te.cache

please put ofono.pc on top of include/ofono line.
 
> diff --git a/Makefile.am b/Makefile.am
> index 71365d7..3b29d19 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -21,6 +21,9 @@ local_headers = $(foreach file,$(pkginclude_HEADERS) \
>  				$(nodist_pkginclude_HEADERS), \
>  					include/ofono/$(notdir $(file)))
>  
> +pkgconfigdir = $(libdir)/pkgconfig
> +pkgconfig_DATA = ofono.pc
> +
>  
>  if DATAFILES
>  dbusconfdir = @DBUS_CONFDIR@
> diff --git a/configure.ac b/configure.ac
> index b034ff0..d26b64f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -226,4 +226,4 @@ fi
>  AC_DEFINE_UNQUOTED(CONFIGDIR, "${configdir}",
>  			[Directory for the configuration files])
>  
> -AC_OUTPUT(Makefile include/version.h src/ofono.service)
> +AC_OUTPUT(Makefile include/version.h src/ofono.service ofono.pc)
> diff --git a/ofono.pc.in b/ofono.pc.in
> new file mode 100644
> index 0000000..19f12e6
> --- /dev/null
> +++ b/ofono.pc.in
> @@ -0,0 +1,10 @@
> +prefix=@prefix@
> +exec_prefix=@exec_prefix@
> +libdir=@libdir@
> +plugindir=${libdir}/@PACKAGE@/plugins

Please remove plugindir in a separate paragraph.

> +includedir=@includedir@
> +
> +Name: oFono

This needs to be all lowercase. So just ofono.

> +Description: oFono - Open Source Telephony
> +Version: @VERSION@

You are missing the Libs: and Requires: line here.

> +Cflags: -I${includedir}

Something like this should do it:

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
 
plugindir=${libdir}/@PACKAGE@/plugins

Name: @PACKAGE@
Description: oFono - Open Source Telephony
Requires: glib-2.0 dbus-1
Version: @VERSION@
Libs: -module -avoid-version -export-symbols-regex @PACKAGE(a)_plugin_desc
Cflags: -I${includedir}

Otherwise you are a bit out of luck when building external plugins.

Regards

Marcel



  reply	other threads:[~2011-01-26 11:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26 11:09 [PATCH 1/2] Use dist_ prefix as applicable =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-26 11:09 ` [PATCH 2/2] Support for pkg-config =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-26 11:27   ` Marcel Holtmann [this message]
2011-01-26 12:46     ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-26 13:03       ` Marcel Holtmann
2011-01-31  8:35     ` =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2011-01-31  9:53       ` Marcel Holtmann
2011-01-26 11:20 ` [PATCH 1/2] Use dist_ prefix as applicable Marcel Holtmann

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=1296041243.1520.128.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=ofono@ofono.org \
    /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.