pkg-config.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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-pkg-config" role="wrap">
  8. <?dbhtml filename="pkg-config.html"?>
  9. <sect1info condition="script">
  10. <productname>pkg-config</productname>
  11. <productnumber>&pkg-config-version;</productnumber>
  12. <address>&pkg-config-url;</address>
  13. </sect1info>
  14. <title>Pkg-config-&pkg-config-version;</title>
  15. <indexterm zone="ch-system-pkg-config">
  16. <primary sortas="a-Pkg-config">Pkg-config</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>&pkg-config-ch6-sbu;</seg>
  28. <seg>&pkg-config-ch6-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Pkg-config</title>
  34. <note><para>Pkg-Config will use an included version of Popt to parse
  35. command line options. If an external version of Popt is desired, install
  36. that version using the <ulink
  37. url="&blfs-root;view/svn/general/popt.html">BLFS Popt build
  38. instructions</ulink> before installing Pkg-config.</para></note>
  39. <para>Fix a problem with one of Pkg-config's tests:</para>
  40. <screen><userinput remap="pre">sed -i -e '21s/EXPECT_RETURN=1/EXPECT_RETURN=0/' check/check-cmd-options</userinput></screen>
  41. <para>Prepare Pkg-config for compilation:</para>
  42. <screen><userinput remap="configure">GLIB_LIBS="-L/usr/lib -lglib-2.0" \
  43. GLIB_CFLAGS="-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include" ./configure --prefix=/usr</userinput></screen>
  44. <para>Compile the package:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>To test the results, issue:</para>
  47. <screen><userinput remap="test">make check</userinput></screen>
  48. <para>Install the package:</para>
  49. <screen><userinput remap="install">make install</userinput></screen>
  50. </sect2>
  51. <sect2 id="contents-pkg-config" role="content">
  52. <title>Contents of Pkg-config</title>
  53. <segmentedlist>
  54. <segtitle>Installed program</segtitle>
  55. <seglistitem>
  56. <seg>pkg-config</seg>
  57. </seglistitem>
  58. </segmentedlist>
  59. <variablelist>
  60. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  61. <?dbfo list-presentation="list"?>
  62. <?dbhtml list-presentation="table"?>
  63. <varlistentry id="pkg-config">
  64. <term><command>pkg-config</command></term>
  65. <listitem>
  66. <para>Returns meta information for the specified library or
  67. package.</para>
  68. <indexterm zone="ch-system-pkg-config pkg-config">
  69. <primary sortas="b-pkg-config">pkg-config</primary>
  70. </indexterm>
  71. </listitem>
  72. </varlistentry>
  73. </variablelist>
  74. </sect2>
  75. </sect1>