[Home]

Summary:ASTERISK-02687: Add pkg-config support to asterisk
Reporter:theo (theo)Labels:
Date Opened:2004-10-27 09:30:05Date Closed:2008-01-15 15:13:08.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 07-mkpkgconfig-destdir.diff.txt
( 1) mkpkgconfig
( 2) mkpkgconfig.diff.txt
Description:These patches adds pkg-config support to asterisk so that 3rd party modules not in asterisk source tree can get paths/flags asterisk was compiled with.
Comments:By: Anthony Minessale (anthm) 2004-10-27 11:41:08

FYI try "make apps_env" "make channels_env"

By: Russell Bryant (russell) 2004-11-07 20:08:11.000-0600

Any updates here?  Do you have a disclaimer on file?

-- Housekeeping

By: Mark Spencer (markster) 2004-11-10 20:35:14.000-0600

Without a disclaimer we will be unable to apply this patch.  Please let us know if you get one on file.

By: zozo (zozo) 2004-11-11 07:17:58.000-0600

Argh, sorry i seem to have 2 accoutns here on mantis.  theo/zozo same me :)

yes, i have a disclaimer on file :-p

By: Mark Spencer (markster) 2004-11-11 09:47:58.000-0600

Fixed in CVS

By: Jeffrey C. Ollie (jcollie) 2004-11-11 14:54:58.000-0600

Argh!! The mkpgconfig script includes a hardcoded reference to the pkgconfig directory. This is bad for two reasons:

1) Not every system will store .pc files in the same place.
  - Please include some way to override the directory.

2) Most (sane) people build RPM packages as non-root.
  - Use the DESTDIR variable to install the .pc file to a staging area.

By: zozo (zozo) 2004-11-11 15:27:58.000-0600

this patch should fix both (1) and (2)

as per pkg-config's own way, PKG_CONFIG_PATH will override where the .pc file goes.

i've also added a check to see if pkg-config is installed/in path rather than check the directory exists, as when using a staging directory, the dir will not exist.

By: Mark Spencer (markster) 2004-11-11 15:56:40.000-0600

Fixed in CVS

By: Russell Bryant (russell) 2004-11-12 09:41:22.000-0600

not in 1.0

By: Digium Subversion (svnbot) 2008-01-15 15:13:08.000-0600

Repository: asterisk
Revision: 4201

U   trunk/Makefile
A   trunk/mkpkgconfig

------------------------------------------------------------------------
r4201 | markster | 2008-01-15 15:13:07 -0600 (Tue, 15 Jan 2008) | 2 lines

Add pkgconfig support (bug ASTERISK-2687)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4201