# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
categories multimedia devel
maintainers gmail.com:rkitover openmaintainer
description SFML is the Simple and Fast Multimedia Library
long_description ${description}. It provides a simple interface to the various \
components of your computer, to ease the development of games and \
multimedia applications. It is composed of five modules: system, \
window, graphics, audio and network.
homepage http://www.sfml-dev.org/
master_sites http://www.sfml-dev.org/download/${name}/${version}/
distname SFML-${version}-sources
checksums rmd160 02c872a6937e59a710d3b1be97d7d2731b53f143 \
sha256 8ba04f6fde6a7b42527d69742c49da2ac529354f71f553409f9f821d618de4b6
worksrcdir SFML-${version}
# This is my upstream PR that has been merged to master and will be in 2.4.3
# https://github.com/SFML/SFML/pull/1173
patchfiles 0001-packaging-support-improvements.patch
depends_build-append port:doxygen
# and we are not using mesa because it uses X11
# (most users will not want this)
depends_lib-append port:freetype \
-DSFML_USE_SYSTEM_DEPS=TRUE \
-DCMAKE_FRAMEWORK_PATH=${frameworks_dir}
file mkdir ${destroot}${prefix}/share/doc/${name}
move {*}[glob ${destroot}${prefix}/share/SFML/*.txt] \
${destroot}${prefix}/share/doc/${name}
move {*}[glob ${destroot}${prefix}/share/SFML/doc/*] \
${destroot}${prefix}/share/doc/${name}
delete ${destroot}${prefix}/share/SFML/doc
copy ${worksrcpath}/examples/ \
${destroot}${prefix}/share/doc/${name}/examples