diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index 01cdfe8692..6f66ee18a5 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -4161,6 +4161,25 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/foo %%PREFIX%%/lib/bar list of these variables exists within the FreeBSD/GNOME project's homepage. + + Your port doesn't need to depend on GNOME if it merely installs + pkg-config metadata files to + PREFIX/libdata/pkgconfig. + 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 + gtkmumble.pc to the said location, just add + the following lines to pkg-plist: + + libdata/pkgconfig/gtkmumble.pc +@unexec rmdir %B 2>/dev/null || true + + The latter line must appear immediately after the former one + so that %B expands correctly. Please refer + to &man.pkg.create.1; for a detailed description of the syntax + used in pkg-plist. + +