From f6058a549f6e3d2b35ad6bd29c12a9a8dccc354a Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Tue, 25 Jan 2005 13:31:31 +0000 Subject: [PATCH] Document the particular case when a port doesn't need GNOME yet installs pkg-config(1) metadata files. --- .../books/porters-handbook/book.sgml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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. + +