# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name libsdl2 set my_name SDL2 version 2.0.0 categories devel multimedia platforms macosx freebsd license zlib maintainers jmr openmaintainer description Cross-platform multi-media development API long_description \ Simple DirectMedia Layer is a cross-platform development library \ designed to provide low level access to audio, keyboard, mouse, \ joystick, and graphics hardware via OpenGL and Direct3D. homepage http://www.libsdl.org/ master_sites ${homepage}release/ distname ${my_name}-${version} checksums rmd160 3e29daa152eae2c1a473b8dd413e1b07ce35cd70 \ sha256 6f6ac8153d90e06a118474d5400624ae82b3d3e080915505db27cebc52b27178 configure.args --without-x variant x11 { configure.args-delete --without-x configure.args-append --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib \ --disable-x11-shared depends_lib-append \ port:xorg-libXext \ port:xorg-libXrandr \ port:xrender } if {${os.subplatform} ne "macosx"} { default_variants +x11 } post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} BUGS.txt COPYING.txt CREDITS.txt \ README.txt README-gesture.txt README-macosx.txt README-SDL.txt \ README-touch.txt TODO.txt ${destroot}${docdir} } livecheck.type regex livecheck.url ${homepage}download-2.0.php livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)