aboutsummaryrefslogtreecommitdiffstats
path: root/main/doxygen/APKBUILD
blob: f8d8f3d1ac8b46c8df2eafa89fd35b5a533a8cff (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=doxygen
pkgver=1.8.9.1
pkgrel=1
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 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

        # 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="3d1a5c26bef358c10a3894f356a69fbc  doxygen-1.8.9.1.src.tar.gz"
sha256sums="d4ab6e28d4d45d8956cad17470aade3fbe2356e8f64b92167e738c1887feccec  doxygen-1.8.9.1.src.tar.gz"
sha512sums="b76d06fc6e22d5e8e2b73814bc99cc0cf75ddf4e5a6ad1bd79832f12ccce5ccc2681777862b9ad0dbfdf1791fd1ce1f0f5ce669a78c7d38f91b0e8d5ebda8ade  doxygen-1.8.9.1.src.tar.gz"