# $Id: Portfile,v 1.1 2006/01/20 18:27:29 olegb Exp $
PortSystem        1.0
name              wbxml2
version           0.9.0
categories        textproc devel
maintainers       glasser@mit.edu
description       converts between XML and Wireless Binary XML (WBXML)
long_description  ${description}
homepage          http://libwbxml.aymerick.com/

master_sites      sourceforge
master_sites.mirror_subdir wbxmllib

distfiles  ${name}-${version}-src.tar.gz
checksums md5 3f9b5bf104ec523b8eebe69f93919ded

depends_lib lib:libexpat:expat bin:glibtoolize:libtool

use_automake yes
automake.args --add-missing

use_autoconf yes

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

pre-configure {
    cd ${worksrcpath}
    system "glibtoolize"
    system "aclocal"
    system "autoheader"
}
