# -*- 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
# $Id: Portfile 103694 2013-03-04 21:12:24Z mww@macports.org $

PortSystem 1.0

name                xscreensaver
version             5.21
categories          x11
platforms           darwin
maintainers         mww openmaintainer
license             X11
description         X11 screen saver
long_description    The xscreensaver program waits until the keyboard and \
                    mouse have been idle for a period, and then runs a graphics \
                    demo chosen at random.

homepage            http://www.jwz.org/xscreensaver/
master_sites        ${homepage}
checksums           rmd160  4dfd9b06e28d088fc7f79d3aafef62cc7b9e9253 \
                    sha256  90f9a4574880c6e6d24796b5c386405a4bbf27a7d764a00f858d43ce07788868

depends_build       port:pkgconfig

depends_lib         port:gtk2 port:libglade2 port:xpm port:xorg-libXmu

if {${configure.compiler} == "clang"} {
    configure.compiler llvm-gcc-4.2
}

configure.args      --with-gtk --without-motif
configure.ldflags   -lintl

use_parallel_build  no

destroot.destdir    install_prefix=${destroot}
post-destroot {
    file delete -force ${destroot}/usr
}

livecheck.type      regex
livecheck.url       http://www.jwz.org/xscreensaver/download.html
livecheck.regex     xscreensaver-(\[0-9\.\]+).tar.gz
