# Maintainer: Natanael Copa pkgname=doxygen pkgver=1.8.1 pkgrel=0 pkgdesc="A documentation system for C++, C, Java, IDL and PHP" url="http://www.doxygen.org/" arch="all" license="GPL" depends="" makedepends="flex bison coreutils perl libiconv-dev" subpackages="$pkgname-doc" source="ftp://ftp.stack.nl/pub/users/dimitri/doxygen-$pkgver.src.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" sed -i -e 's:^\(TMAKE_CFLAGS_RELEASE\t*\)= .*$:\1= $(ECFLAGS):' \ -e 's:^\(TMAKE_CXXFLAGS_RELEASE\t*\)= .*$:\1= $(ECXXFLAGS):' \ -e 's:^\(TMAKE_LFLAGS_RELEASE\s*\)=.*$:\1= $(ELDFLAGS):' \ tmake/lib/*/tmake.conf \ || return 1 # Ensure we link to -liconv for pro in */*.pro.in */*/*.pro.in; do echo "unix:LIBS += -liconv" >> "${pro}" done # fix final DESTDIR issue sed -i -e "s:\$(INSTALL):\$(DESTDIR)/\$(INSTALL):g" \ addon/doxywizard/Makefile.in || return 1 } build() { cd "$_builddir" export ECFLAGS="$CFLAGS" ECXXFLAGS="$CXXFLAGS" ELDFLAGS="$LDFLAGS" ./configure --prefix /usr make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" MAN1DIR=share/man/man1 install } md5sums="058f7b0c6cd4d47feda106b938a43818 doxygen-1.8.1.src.tar.gz"