# $Id: Portfile 57453 2009-09-11 08:17:15Z ryandesign@macports.org $
PortSystem 1.0
name                        aalib
version                     1.4rc5
categories                  graphics
revision                    4
maintainers                 ccc.de:tim
description                 Portable ascii art GFX library
long_description            AA-lib is a low level gfx library just as many other libraries are. \
                            The main difference is that AA-lib does not require graphics device. \
                            In fact, there is no graphical output possible. AA-lib replaces those \
                            old-fashioned output methods with powerful ascii-art renderer. Now my \
                            linux boots with a nice penguin logo at secondary display (yes! Like \
                            Win95 does:) AA-lib API is designed to be similar to other graphics \
                            libraries. Learning a new API would be a piece of cake!
homepage                    http://aa-project.sourceforge.net/aalib/
master_sites                sourceforge:aa-project freebsd
checksums                   md5 9801095c42bba12edebd1902bcf0a990

platforms                   darwin

worksrcdir                  ${name}-1.4.0
configure.args              --without-x --with-ncurses \
                            --enable-shared --disable-static \
                            --mandir=${prefix}/share/man \
                            --infodir=${prefix}/share/info

configure.cppflags-append  -DNCURSES_OPAQUE=0 -I/usr/include/malloc

patchfiles                  doc/patch-Makefile.in.diff man/patch-Makefile.in.diff \
                            patch-aacurkbd.c.diff patch-aacurses.c.diff \
                            patch-config.guess.diff patch-config.sub.diff \
                            patch-configure.diff patch-aclocal.m4.diff \
                            patch-depcomp.diff patch-ltmain.sh.diff \
                            patch-Makefile.in.diff src/patch-Makefile.in.diff \
                            patch-aalib.m4.diff

depends_lib \
	port:ncurses

variant x11 {
        depends_lib-append  \
                port:xorg-libX11
        configure.args-delete   --without-x
        configure.args-append   --with-x
}

use_autoreconf yes
autoreconf.args -fv

livecheck.distname aa-lib
