Document the particular case when a port doesn't need GNOME

yet installs pkg-config(1) metadata files.
This commit is contained in:
Yaroslav Tykhiy 2005-01-25 13:31:31 +00:00
parent 78fba00a1f
commit f6058a549f
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=23645

View file

@ -4161,6 +4161,25 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar</programlisting>
list of these variables</ulink> exists within the FreeBSD/GNOME
project's homepage.</para>
<note>
<para>Your port doesn't need to depend on GNOME if it merely installs
<application>pkg-config</application> metadata files to
<filename><makevar>PREFIX</makevar>/libdata/pkgconfig</filename>.
As usual, your port should be prepared to clean up after itself
and remove that directory if it becomes empty.
Assuming that your port installs a file named
<filename>gtkmumble.pc</filename> to the said location, just add
the following lines to <filename>pkg-plist</filename>:</para>
<programlisting>libdata/pkgconfig/gtkmumble.pc
@unexec rmdir %B 2>/dev/null || true</programlisting>
<para>The latter line must appear immediately after the former one
so that <literal>%B</literal> expands correctly. Please refer
to &man.pkg.create.1; for a detailed description of the syntax
used in <filename>pkg-plist</filename>.</para>
</note>
</sect1>
<sect1 id="using-kde">