summaryrefslogtreecommitdiff
path: root/doc/guide
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2022-05-21 11:56:14 +0000
committernia <nia@pkgsrc.org>2022-05-21 11:56:14 +0000
commitda4c34f4d0871efe8ed03458e07a05903d46a533 (patch)
tree1bf1e5bbafbb4f9bfa57e4e5b0059cca70689510 /doc/guide
parent42670b62f25e38d6b1ca6465f3d4f7179308df51 (diff)
downloadpkgsrc-da4c34f4d0871efe8ed03458e07a05903d46a533.tar.gz
guide: More configuration notes
Diffstat (limited to 'doc/guide')
-rw-r--r--doc/guide/files/fixes.xml38
1 files changed, 36 insertions, 2 deletions
diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml
index 16c6ed3b528..dc9d5cb7673 100644
--- a/doc/guide/files/fixes.xml
+++ b/doc/guide/files/fixes.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: fixes.xml,v 1.176 2022/05/21 11:40:06 nia Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.177 2022/05/21 11:56:14 nia Exp $ -->
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
<title>Making your package work</title>
@@ -1367,7 +1367,12 @@ pre-configure:
</programlisting>
<para>Packages which use GNU Automake will sometimes
- require GNU Make, but not always.</para>
+ require GNU Make (<literal>gmake</literal> in
+ <varname>USE_TOOLS</varname>),
+ but not always. Note that autoreconf
+ only needs to be executed if <filename>configure.ac</filename>
+ or Makefiles are modified, or <filename>configure</filename>
+ is not present.</para>
<para>There are times when the configure process makes
additional changes to the generated files, which then causes
@@ -1377,6 +1382,35 @@ pre-configure:
<varname>AUTOMAKE_OVERRIDE=NO</varname> in the package
Makefile.</para>
</sect2>
+
+ <sect2 id="meson">
+ <title>Meson / ninja</title>
+
+ <para>Packages using Meson to configure need to include:
+
+<programlisting>
+.include "../../devel/meson/build.mk"
+</programlisting></para>
+
+ <para>In nearly all cases (any program with dependencies),
+ pkg-config needs to be added to
+ <varname>USE_TOOLS</varname>. If the package installs
+ translation files for non-English languages, also
+ add msgfmt and xgettext:
+
+<programlisting>
+USE_TOOLS+= pkg-config msgfmt xgettext
+</programlisting></para>
+
+ <para>If any options need to be passed to Meson, use
+ <varname>MESON_ARGS</varname> instead of
+ <varname>CONFIGURE_ARGS</varname>:
+
+<programlisting>
+MESON_ARGS+= -Dx11=false
+</programlisting></para>
+ </sect2>
+
</sect1>
<sect1 id="programming-languages">