# $Id: Portfile 92081 2012-04-17 17:00:34Z jmr@macports.org $

PortSystem 1.0

conflicts       libsdl

name            libsdl-devel
version         1.3.0-6248
categories      devel multimedia

description     Cross-platform multi-media development API
long_description \
    Simple DirectMedia Layer is a cross-platform multimedia library designed \
    to provide fast access to the graphics framebuffer and audio device. It is \
    used by MPEG playback software, emulators, and many popular games, including \
    the award winning Linux port of \"Civilization: Call To Power.\" Simple \
    DirectMedia Layer supports Linux, Win32, BeOS, Mac OS, Solaris, IRIX, and FreeBSD.
homepage        http://www.libsdl.org/

platforms       darwin
license         zlib
maintainers     toby

master_sites    ${homepage}tmp/
checksums       rmd160 6db2a9f7bb5eb5d1015cdf208443e051a5003202 \
                sha256 84bc65b421a7df2d71f6fd872e978c6e03c0f83dd4a9a33f05e66c5586e79ff9

distname        SDL-${version}

configure.args  --without-x

post-configure {
    if {[variant_isset universal]} {
        system -W ${worksrcpath}/include "ed - ./SDL_config.h < ${filespath}/include_SDL_config.h.ed"
    }
}

livecheck.url   ${homepage}tmp/
livecheck.regex SDL-(\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+-\[0-9\]+)\\.tar\\.gz
