summaryrefslogtreecommitdiff
path: root/doc/guide
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2013-05-26 18:21:46 +0000
committerwiz <wiz@pkgsrc.org>2013-05-26 18:21:46 +0000
commit66ee92b416e198f68a7cb8ee97736ca1425f8499 (patch)
tree8c9f7716800a1413087d2ff3c8c6ad13e103678c /doc/guide
parent2bad8568308ba7dbb29a94f9e006a8bb04803405 (diff)
downloadpkgsrc-66ee92b416e198f68a7cb8ee97736ca1425f8499.tar.gz
Document how to add build dependencies using buildlink3.mk.
Requested by rodent.
Diffstat (limited to 'doc/guide')
-rw-r--r--doc/guide/files/fixes.xml18
1 files changed, 16 insertions, 2 deletions
diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml
index d23b0bdc60d..eac4e93b46a 100644
--- a/doc/guide/files/fixes.xml
+++ b/doc/guide/files/fixes.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: fixes.xml,v 1.120 2013/05/06 01:32:58 rodent Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.121 2013/05/26 18:21:46 wiz Exp $ -->
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
<title>Making your package work</title>
@@ -358,7 +358,7 @@ ACCEPTABLE_LICENSES+=xv-license
<orderedlist>
<listitem>
<para>If your package needs another package's binaries or
- libraries to build or run, and if that package has a
+ libraries to build and run, and if that package has a
<filename>buildlink3.mk</filename> file available, use it:</para>
<programlisting>
@@ -367,6 +367,20 @@ ACCEPTABLE_LICENSES+=xv-license
</listitem>
<listitem>
+ <para>If your package needs another package's binaries or
+ libraries only for building, and if that package has a
+ <filename>buildlink3.mk</filename> file available, use it:</para>
+
+ <programlisting>
+.include "../../graphics/jpeg/buildlink3.mk"
+ </programlisting>
+ <para>but set
+ <varname>BUILDLINK_DEPMETHOD.<replaceable>jpeg</replaceable>?=build</varname>
+ to make it a build dependency only. This case is rather
+ rare.</para>
+ </listitem>
+
+ <listitem>
<para>If your package needs binaries from another package to build,
use the <varname>BUILD_DEPENDS</varname> definition:</para>