pkg-config.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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" \
  44. ./configure --prefix=/usr</userinput></screen>
  45. <para>Compile the package:</para>
  46. <screen><userinput remap="make">make</userinput></screen>
  47. <para>To test the results, issue:</para>
  48. <screen><userinput remap="test">make check</userinput></screen>
  49. <para>Install the package:</para>
  50. <screen><userinput remap="install">make install</userinput></screen>
  51. </sect2>
  52. <sect2 id="contents-pkg-config" role="content">
  53. <title>Contents of Pkg-config</title>
  54. <segmentedlist>
  55. <segtitle>Installed program</segtitle>
  56. <seglistitem>
  57. <seg>pkg-config</seg>
  58. </seglistitem>
  59. </segmentedlist>
  60. <variablelist>
  61. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  62. <?dbfo list-presentation="list"?>
  63. <?dbhtml list-presentation="table"?>
  64. <varlistentry id="pkg-config">
  65. <term><command>pkg-config</command></term>
  66. <listitem>
  67. <para>Returns meta information for the specified library or
  68. package.</para>
  69. <indexterm zone="ch-system-pkg-config pkg-config">
  70. <primary sortas="b-pkg-config">pkg-config</primary>
  71. </indexterm>
  72. </listitem>
  73. </varlistentry>
  74. </variablelist>
  75. </sect2>
  76. </sect1>