# $Id: PKGBUILD 14308 2008-10-05 15:59:28Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>
pkgname=doxygen
pkgver=1.5.7.1
pkgrel=1
pkgdesc="A documentation system for C++, C, Java, IDL and PHP"
license=('GPL')
arch=(i686 x86_64)
url="http://www.doxygen.org/"
depends=('gcc-libs')
# qt required to build and run doxywizard, but don't want to drag it in
makedepends=('flex' 'qt3')
optdepends=('graphviz: for caller/callee graph generation'
            'qt3: for doxywizard')
source=(ftp://ftp.stack.nl/pub/users/dimitri/${pkgname}-${pkgver}.src.tar.gz)

build() {
  . /etc/profile.d/qt3.sh
  cd ${startdir}/src/${pkgname}-${pkgver}
  ./configure --prefix /usr --with-doxywizard
  make || return 1
  make INSTALL=${startdir}/pkg/usr MAN1DIR=share/man/man1 install
}

md5sums=('bc35dfd52bdae0247b862e67e0cbe7d7')