# $Id: Portfile,v 1.4 2004/07/25 11:13:09 tim Exp $
PortSystem                       1.0
name                             blib
version                          1.1.7
revision                         1
categories                       graphics blinkenlights
maintainers                      tim@ccc.de
description                      Library of useful things to hack the Blinkenlights
long_description                 This library contains some code that you will find useful if \
                                 you want to create any kind of software related to Blinkenlights. \
                                 If you have never heard about Blinkenlights, you want to check \
                                 the project's home page first.

depends_lib                      lib:libglib.2:glib2
homepage                         http://www.blinkenlights.de/
master_sites                     http://www.blinkenlights.de/dist/
checksums                        blib-1.1.7.tar.gz md5 500d65f4d6c7e42c88663680336cb900

platforms                        darwin

configure.args                   --disable-directfb --disable-gtk \
                                 --disable-aa --disable-modules \
                                 --disable-maintainer-mode --disable-gtk-doc \
                                 --enable-shared=yes --enable-static=no \
                                 --mandir=${prefix}/share/man

configure.env                    CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"

default_variants                 +gtk

variant gtk {
        depends_lib-append        lib:libgtk.2:gtk2
        configure.args-delete    --disable-gtk
        configure.args-append    --enable-gtk
}

variant directfb {
        depends_lib-append        lib:libdirectfb:directfb
        configure.args-delete    --disable-directfb
        configure.args-append    --enable-directfb
}

variant aa {
        depends_lib-append        lib:libaa:aalib
        configure.args-delete    --disable-aa
        configure.args-append    --enable-aa
}

