Alien-CSFML
view release on metacpan or search on metacpan
lib/Alien/CSFML.pm view on Meta::CPAN
=back
Dependencies are also automatically returned for each module type.
=head1 Installation
The distribution is based on L<Module::Build::Tiny|Module::Build::Tiny>, so use
the following procedure:
> perl Build.PL
> ./Build
> ./Build test
> ./Build install
=head2 Dependencies
On Windows and macOS, all the required dependencies are provided alongside SFML
so you won't have to download/install anything else. Building will work out of
the box.
On Linux however, nothing is provided. SFML relies on you to install all of its
dependencies on your own. Here is a list of what you need to install before
building SFML:
=over
=item freetype
=item x11
=item xrandr
=item udev
=item opengl
=item flac
=item ogg
=item vorbis
=item vorbisenc
=item vorbisfile
=item openal
=item pthread
=back
The exact name of the packages may vary from distribution to distribution. Once
those packages are installed, don't forget to install their development headers
as well.
On a Debian based system, you'd try something like:
sudo apt-get update
sudo apt-get install libxrandr-dev libxcursor-dev libudev-dev libopenal-dev libflac-dev libvorbis-dev libgl1-mesa-dev libegl1-mesa-dev libdrm-dev libgbm-dev
On FreeBSD, I tossed this into my Github Action and it works out alright:
env ASSUME_ALWAYS_YES=YES pkg install -y git cmake-core ninja xorgproto libX11 libXrandr
env ASSUME_ALWAYS_YES=YES pkg install -y flac libogg libvorbis freetype2 openal-soft libglvnd
env ASSUME_ALWAYS_YES=YES pkg install -y libXcursor
=head1 See Also
L<Alien::SFML|Alien::SFML>
L<https://www.sfml-dev.org/learn.php>
=head1 Author
Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/
CPAN ID: SANKO
=head1 License and Legal
Copyright (C) 2022 by Sanko Robinson E<lt>sanko@cpan.orgE<gt>
This program is free software; you can redistribute it and/or modify it under
the terms of The Artistic License 2.0. See the F<LICENSE> file included with
this distribution or http://www.perlfoundation.org/artistic_license_2_0. For
clarification, see http://www.perlfoundation.org/artistic_2_0_notes.
=for stopwords
macOS FreeBSD
freetype xrandr udev opengl OpenGL
flac ogg vorbis vorbisenc vorbisfile
openal pthread
spatialised
=cut
( run in 2.446 seconds using v1.01-cache-2.11-cpan-140bd7fdf52 )