mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Lambrecht Jürgen" <J.Lambrecht@TELEVIC.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Cc: Paixao Julien <J.Paixao@TELEVIC.com>
Subject: [ptxdist] how to add (closed-source) library package in ptxdist?
Date: Thu, 26 Sep 2013 10:48:41 +0200	[thread overview]
Message-ID: <5243F4E9.2010804@televic.com> (raw)

Hello,

I want to use a proprietary library to a package - linphone in this case.
I only have header files (.h) and library files (.a).

With LTIB it was easy to do - add the library as a package, using 
pkg-config.
The LTIB version of your /rules/package.make will hopefully also clarify 
what I want to do:
-----
%Install
mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/include/illusonic
cp *.h $RPM_BUILD_ROOT/%{pfx}/usr/include/illusonic
mkdir -p $RPM_BUILD_ROOT/%{pfx}/usr/lib/pkgconfig
cp libILV.a $RPM_BUILD_ROOT/%{pfx}/usr/lib
cp illusonic_ILV.pc $RPM_BUILD_ROOT/%{pfx}/usr/lib/pkgconfig
-----
Contents of the .pc file:
-----
# libillusonic_ILV pkg-config source file

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: illusonic_ILV
Description: Illusonic_ILV is an acoustic echo canceller library
Version: 2012.07.23
Requires:
Conflicts:
Libs: -L${libdir} -lILV
Libs.private: -lm
Cflags: -I${includedir}
-----
Kind regards,
juergen

-- 
Jürgen Lambrecht
R&D Associate
Mobile: +32 499 644 531
Tel: +32 (0)51 303045    Fax: +32 (0)51 310670
http://www.televic-rail.com
Televic Rail NV - Leo Bekaertlaan 1 - 8870 Izegem - Belgium
Company number 0825.539.581 - RPR Kortrijk



-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2013-09-26  8:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26  8:48 Lambrecht Jürgen [this message]
2013-09-30 14:10 ` Lambrecht Jürgen
2013-09-30 15:04   ` Jürgen Beisert

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=5243F4E9.2010804@televic.com \
    --to=j.lambrecht@televic.com \
    --cc=J.Paixao@TELEVIC.com \
    --cc=ptxdist@pengutronix.de \
    /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