# -*- 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 68006 2010-05-24 18:31:30Z jmr@macports.org $

PortSystem 1.0

name            libguichan
version         0.8.2
categories      graphics devel
platforms       darwin
license         BSD
maintainers     jmr openmaintainer
description     portable C++ GUI library designed for games using SDL
long_description    Guichan is a portable C++ GUI library designed for \
                games using SDL and/or OpenGL.

homepage        http://guichan.sourceforge.net/
master_sites    googlecode:guichan
distname        guichan-${version}
checksums       md5     af535d7f387e774e3197cef8023ea105 \
                sha1    50cac146154740d604c752c87dbba00a2793892b \
                rmd160  42962ecbb9efd00448cdb7249e2f3d1cbe94f79f

patchfiles	patch-src_allegro,opengl,sdl_Makefile.in.diff

depends_lib     path:lib/pkgconfig/sdl.pc:libsdl port:libsdl_image port:allegro port:mesa

if {${os.platform} == "darwin" && (([variant_isset universal] && [string match *64* $universal_archs]) || (![variant_isset universal] && [string match *64 $build_arch]))} {
    # allegro is not yet 64-bit compatible
    depends_lib-delete port:allegro
    configure.args-append --disable-allegro
}
