pkgconfig.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-pkgconfig" role="wrap">
  8. <?dbhtml filename="pkg-config.html"?>
  9. <sect1info condition="script">
  10. <productname>pkg-config</productname>
  11. <productnumber>&pkgconfig-version;</productnumber>
  12. <address>&pkgconfig-url;</address>
  13. </sect1info>
  14. <title>Pkg-config-&pkgconfig-version;</title>
  15. <indexterm zone="ch-system-pkgconfig">
  16. <primary sortas="a-pkgconfig">Pkgconfig</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para> The pkg-config package contains a tool for passing the include path
  21. and/or library paths to build tools during the configure and make file
  22. execution.</para>
  23. <segmentedlist>
  24. <segtitle>&buildtime;</segtitle>
  25. <segtitle>&diskspace;</segtitle>
  26. <seglistitem>
  27. <seg>&pkgconfig-fin-sbu;</seg>
  28. <seg>&pkgconfig-fin-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Pkg-config</title>
  34. <para>Prepare Pkg-config for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr \
  36. --with-internal-glib \
  37. --disable-host-tool \
  38. --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
  39. <variablelist>
  40. <title>The meaning of the new configure options:</title>
  41. <varlistentry>
  42. <term><parameter>--with-internal-glib</parameter></term>
  43. <listitem>
  44. <para>This will allow pkg-config to use its internal version of
  45. Glib because an external version is not available in LFS.</para>
  46. </listitem>
  47. </varlistentry>
  48. <varlistentry>
  49. <term><parameter>--disable-host-tool</parameter></term>
  50. <listitem>
  51. <para>This option disables the creation of an undesired hard link
  52. to the pkg-config program.</para>
  53. </listitem>
  54. </varlistentry>
  55. </variablelist>
  56. <para>Compile the package:</para>
  57. <screen><userinput remap="make">make</userinput></screen>
  58. <para>To test the results, issue:</para>
  59. <screen><userinput remap="test">make check</userinput></screen>
  60. <para>Install the package:</para>
  61. <screen><userinput remap="install">make install</userinput></screen>
  62. </sect2>
  63. <sect2 id="contents-pkgconfig" role="content">
  64. <title>Contents of Pkg-config</title>
  65. <segmentedlist>
  66. <segtitle>Installed program</segtitle>
  67. <segtitle>Installed directory</segtitle>
  68. <seglistitem>
  69. <seg>pkg-config</seg>
  70. <seg>/usr/share/doc/pkg-config-&pkgconfig-version;</seg>
  71. </seglistitem>
  72. </segmentedlist>
  73. <variablelist>
  74. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  75. <?dbfo list-presentation="list"?>
  76. <?dbhtml list-presentation="table"?>
  77. <varlistentry id="pkgconfig">
  78. <!-- Don't remove the extra space, it prevents a FOP warning. -->
  79. <term><command>pkg-config </command></term>
  80. <listitem>
  81. <para>Returns meta information for the specified library or package
  82. </para>
  83. <indexterm zone="ch-system-pkgconfig pkgconfig">
  84. <primary sortas="b-pkgconfig">pkg-config</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. </variablelist>
  89. </sect2>
  90. </sect1>