diff options
author | wiz <wiz@pkgsrc.org> | 2015-02-15 18:50:04 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-02-15 18:50:04 +0000 |
commit | b714f43190b93371f26f69207530ae99f5f4136b (patch) | |
tree | dc0e77d6add57cdd96cc9b62c03104f03b226e38 /doc/guide | |
parent | 633f24ac62185f91dc7f9e56a6b0c6430e852eed (diff) | |
download | pkgsrc-b714f43190b93371f26f69207530ae99f5f4136b.tar.gz |
Document GEENRATE_PLIST, based on an email by Hauke Fath.
While here, mention OWN_DIRS and MAKE_DIRS in directory section.
Diffstat (limited to 'doc/guide')
-rw-r--r-- | doc/guide/files/plist.xml | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/guide/files/plist.xml b/doc/guide/files/plist.xml index fa9536e9126..5f802e9eb64 100644 --- a/doc/guide/files/plist.xml +++ b/doc/guide/files/plist.xml @@ -1,4 +1,4 @@ -<!-- $NetBSD: plist.xml,v 1.19 2009/08/25 13:19:50 wiz Exp $ --> +<!-- $NetBSD: plist.xml,v 1.20 2015/02/15 18:50:04 wiz Exp $ --> <chapter id="plist"> <title>PLIST issues</title> @@ -240,6 +240,24 @@ ${PLIST.foo}@dirrm share/bar </itemizedlist> </sect1> + <sect1 id="build-plist"> + <title>Build-specific PLISTs</title> + + <para>Some packages decide to generate hard-to-guess file names + during installation that are hard to wire down.</para> + <para>In such cases, you can set the + <varname>GENERATE_PLIST</varname> variable to shell code + terminated (with a semicolon) that will output PLIST entries which + will be appended to the PLIST</para> + <para>You can find one example in editors/xemacs:</para> + <programlisting> + GENERATE_PLIST+= ${ECHO} bin/${DISTNAME}-`${WRKSRC}/src/xemacs -sd`.dmp ; + </programlisting> + <para>which will append something like + <filename>bin/xemacs-21.4.23-54e8ea71.dmp</filename> to the + <filename>PLIST</filename>. + </para> + </sect1> <sect1 id="faq.common-dirs"> <title>Sharing directories between packages</title> @@ -261,6 +279,8 @@ ${PLIST.foo}@dirrm share/bar <programlisting> @pkgdir path/to/empty/directory </programlisting> + or take a look at <varname>MAKE_DIRS</varname> and + <varname>OWN_DIRS</varname>. </para> </sect1> |