summaryrefslogtreecommitdiffstats
path: root/extra/cmake/APKBUILD
blob: 56ec01878026140fa388e2579c98b8de03473139 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cmake
pkgver=2.6.3
pkgrel=1
pkgdesc="CMake is a cross-platform open-source make system"
url="http://www.cmake.org"
license="CMake"
depends="uclibc libgcc g++ ncurses"
makedepends="ncurses-dev"
source="http://www.$pkgname.org/files/v2.6/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc"


parallel_opt() {
	local i n
	for i in $MAKEOPTS; do 
		case "$i" in
			-j*) n=${i#-j};;
		esac;
	done
	[ -n "$n" ] && echo "--parallel $n"
}

build () 
{ 
	cd $startdir/src/$pkgname-$pkgver
	./bootstrap --prefix=/usr \
		--mandir=/share/man \
		--docdir=/share/cmake-2.6/doc \
		$(parallel_opt)

	make || return 1
	make DESTDIR="$pkgdir" install
}
md5sums="5ba47a94ce276f326abca1fd72a7e7c6  cmake-2.6.3.tar.gz"