mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] how to add (closed-source) library package in ptxdist?
@ 2013-09-26  8:48 Lambrecht Jürgen
  2013-09-30 14:10 ` Lambrecht Jürgen
  0 siblings, 1 reply; 3+ messages in thread
From: Lambrecht Jürgen @ 2013-09-26  8:48 UTC (permalink / raw)
  To: ptxdist; +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=/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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] how to add (closed-source) library package in ptxdist?
  2013-09-26  8:48 [ptxdist] how to add (closed-source) library package in ptxdist? Lambrecht Jürgen
@ 2013-09-30 14:10 ` Lambrecht Jürgen
  2013-09-30 15:04   ` Jürgen Beisert
  0 siblings, 1 reply; 3+ messages in thread
From: Lambrecht Jürgen @ 2013-09-30 14:10 UTC (permalink / raw)
  To: ptxdist

On 09/26/2013 10:48 AM, Lambrecht Jürgen wrote:
> 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).
I found how to do it with a .make file, you only need the install sate:
-----
$(STATEDIR)/illusonic_ilv.install:
     @$(call targetinfo)

#    @$(call install, ILLUSONIC_ILV)
     mkdir -p $(PTXDIST_SYSROOT_TARGET)/usr/include/illusonic
     cp $(ILLUSONIC_ILV_DIR)/*.h 
$(PTXDIST_SYSROOT_TARGET)/usr/include/illusonic
     mkdir -p $(PTXDIST_SYSROOT_TARGET)/usr/lib/pkgconfig
     cp $(ILLUSONIC_ILV_DIR)/libILV.a $(PTXDIST_SYSROOT_TARGET)/usr/lib
     cp $(ILLUSONIC_ILV_DIR)/illusonic_ILV.pc 
$(PTXDIST_SYSROOT_TARGET)/usr/lib/pkgconfig

     @$(call touch)
-----
But I wonder if I need to put an '@' before the shell commands, as done 
in tcl.make:
     @mkdir -p $(TCL_PKGDIR)/usr/share/tcl-tests

It also works without '@' , so what is the difference?

Kind regards,
Jürgen
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ptxdist] how to add (closed-source) library package in ptxdist?
  2013-09-30 14:10 ` Lambrecht Jürgen
@ 2013-09-30 15:04   ` Jürgen Beisert
  0 siblings, 0 replies; 3+ messages in thread
From: Jürgen Beisert @ 2013-09-30 15:04 UTC (permalink / raw)
  To: ptxdist; +Cc: Lambrecht Jürgen

Hi,

On Monday 30 September 2013 16:10:14 Lambrecht Jürgen wrote:
> [...]
> But I wonder if I need to put an '@' before the shell commands, as done
> in tcl.make:
>      @mkdir -p $(TCL_PKGDIR)/usr/share/tcl-tests
>
> It also works without '@' , so what is the difference?

Use it, give it a try, remove it and give it another try. You will see the 
difference.

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-30 15:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-26  8:48 [ptxdist] how to add (closed-source) library package in ptxdist? Lambrecht Jürgen
2013-09-30 14:10 ` Lambrecht Jürgen
2013-09-30 15:04   ` Jürgen Beisert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox