glfs/general/genlib/libwacom.xml
Douglas R. Reno 5d2965c7ff Update to ModemManager-1.16.2
Update to qpdf-10.2.0
Update to libgxps-0.3.2
Update to babl-0.1.86
Update to libqmi-1.28.2
Update to poppler-21.03.0
Update to URI-5.09 (Perl Module)
Update to gtksourceview4-4.8.1
Update to OpenSSH-8.5p1 (and ssh-askpass-8.5p1)
libwacom: Correct version number
libwacom: Add libwacom-show-stylus
bluez: Drop the patch

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24333 af4574ff-66df-0310-9fd7-8a98e5e911e0
2021-03-04 02:54:53 +00:00

222 lines
6.3 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libwacom-download-http "https://github.com/linuxwacom/libwacom/releases/download/libwacom-&libwacom-version;/libwacom-&libwacom-version;.tar.bz2">
<!ENTITY libwacom-download-ftp " ">
<!ENTITY libwacom-md5sum "67aec245e7c1ee7f585a85a2c27db9d8">
<!ENTITY libwacom-size "508 KB">
<!ENTITY libwacom-buildsize "6.2 MB (with tests)">
<!ENTITY libwacom-time "less than 0.1 SBU (with tests)">
]>
<sect1 id="libwacom" xreflabel="libwacom-&libwacom-version;">
<?dbhtml filename="libwacom.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>libwacom-&libwacom-version;</title>
<indexterm zone="libwacom">
<primary sortas="a-libwacom">libwacom</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libwacom</title>
<para>
The <application>libwacom</application> package contains a library used
to identify wacom tablets and their model-specific features.
</para>
&lfs101_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libwacom-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libwacom-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &libwacom-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &libwacom-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &libwacom-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &libwacom-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">libwacom Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="libgudev"/>
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="libxml2"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="doxygen"/>,
<xref linkend="git"/>,
<xref linkend="librsvg"/>,
<xref linkend="valgrind"/> (optional for some tests), and
<ulink url="https://docs.pytest.org/en/stable/">pytest</ulink>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/libwacom"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of libwacom</title>
<!-- Fixed in libwacom-1.7
<para>
First, adapt the udev rules to upstream udev/kernel changes:
</para>
<screen><userinput remap="pre">sed -i 's/ACTION!="add|change"/ACTION=="remove"/' tools/65-libwacom.rules.in</userinput></screen>
-->
<para>
Install <application>libwacom</application> by running the following
commands:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson --prefix=/usr -Dudev-dir=/lib/udev -Dtests=disabled .. &amp;&amp;
ninja</userinput></screen>
<para>
To test the results, issue: <command>ninja test</command>.
To run additional tests, install
<ulink url="https://docs.pytest.org/en/stable/">pytest</ulink> and remove
the "-Dtests=disabled" option from the meson line above.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>ninja install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para>
<parameter>-Dudev-dir=/lib/udev</parameter>: This parameter sets the
proper installation directory for udev rules.
</para>
<para>
<parameter>-Dtests=disabled</parameter>: This parameter disables some of
the more advanced tests because they require
<ulink url="https://docs.pytest.org/en/stable/">pytest</ulink> to work
properly.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
libwacom-list-local-devices and
libwacom-show-stylus
</seg>
<seg>
libwacom.so
</seg>
<seg>
/usr/include/libwacom-1.0 and
/usr/share/libwacom
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="libwacom-list-local-devices">
<term><command>libwacom-list-local-devices</command></term>
<listitem>
<para>
lists tablet devices that are connected to the system
</para>
<indexterm zone="libwacom libwacom-list-local-devices">
<primary sortas="b-libwacom-list-local-devices">libwacom-list-local-devices</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libwacom-show-stylus">
<term><command>libwacom-show-stylus</command></term>
<listitem>
<para>
lists tablet stylus IDs
</para>
<indexterm zone="libwacom libwacom-show-stylus">
<primary sortas="b-libwacom-show-stylus">libwacom-show-stylus</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libwacom-lib">
<term><filename class="libraryfile">libwacom.so</filename></term>
<listitem>
<para>
contains functions used for accessing Wacom information
</para>
<indexterm zone="libwacom libwacom-lib">
<primary sortas="c-libwacom">libwacom.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>