aboutsummaryrefslogtreecommitdiffstats
path: root/main/doxygen/APKBUILD
blob: e985284b8a7d25ee7cdcdf97db40468ed3ef26fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=doxygen
pkgver=1.8.9
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 python"
subpackages="$pkgname-doc"
source="http://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
		[ "$ALPINE_LIBC" != "eglibc" ] && \
			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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" MAN1DIR=share/man/man1 install
}

md5sums="753c1b135086c4771035622532652552  doxygen-1.8.9.src.tar.gz"
sha256sums="f0dd662fb98c394c20deed5b00b29d73d9bee8ea1a52f7a687dd9b70f5444fc6  doxygen-1.8.9.src.tar.gz"
sha512sums="e5469385ad78fa33e4961ff80f45a54ab29cd0bee2eb60008eaa8ad56caf9c5d5ba1014aa9ebc9bc16a830e6bf07a37a1a73edef3360e7470d620ed43f0b418e  doxygen-1.8.9.src.tar.gz"