aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-10-04 14:52:51 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-10-04 14:58:35 +0000
commitec14d55cfc9f3ee4d54f673e90153525791b7de0 (patch)
treeecdd0086e9867063df46f435122e4a531e1367fe
parent939f617d8f9b0b2760081c5bc2efe281c2edc846 (diff)
downloadaports-ec14d55cfc9f3ee4d54f673e90153525791b7de0.tar.bz2
aports-ec14d55cfc9f3ee4d54f673e90153525791b7de0.tar.xz
testing/doxygen: new aport
A documentation system for C++, C, Java, IDL and PHP http://www.doxygen.org/
-rw-r--r--testing/doxygen/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/doxygen/APKBUILD b/testing/doxygen/APKBUILD
new file mode 100644
index 0000000000..b1f8b0e5a4
--- /dev/null
+++ b/testing/doxygen/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=doxygen
+pkgver=1.7.1
+pkgrel=0
+pkgdesc="A documentation system for C++, C, Java, IDL and PHP"
+url="http://www.doxygen.org/"
+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="13e76e10fb55581a16ee04de35c264f0 doxygen-1.7.1.src.tar.gz"