From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ip2.televic.com ([81.82.194.222]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1VP7Fa-00030b-4t for ptxdist@pengutronix.de; Thu, 26 Sep 2013 10:48:43 +0200 From: =?iso-8859-1?Q?Lambrecht_J=FCrgen?= Date: Thu, 26 Sep 2013 10:48:41 +0200 Message-ID: <5243F4E9.2010804@televic.com> Content-Language: en-US MIME-Version: 1.0 Subject: [ptxdist] how to add (closed-source) library package in ptxdist? Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" Cc: Paixao Julien 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=3D/usr exec_prefix=3D${prefix} libdir=3D${exec_prefix}/lib includedir=3D${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=FCrgen 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