APKBUILD 873 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
2
pkgname=cmake
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=2.6.4
4
pkgrel=1
Natanael Copa's avatar
Natanael Copa committed
5
6
7
pkgdesc="CMake is a cross-platform open-source make system"
url="http://www.cmake.org"
license="CMake"
8
9
depends="uclibc libgcc g++ ncurses"
makedepends="ncurses-dev"
Natanael Copa's avatar
Natanael Copa committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"
}

24
25
build ()
{
Natanael Copa's avatar
Natanael Copa committed
26
	cd $startdir/src/$pkgname-$pkgver
27
28
29
30
31
	# bug in cmake.
	# http://www.mail-archive.com/cmake@cmake.org/msg09515.html
	export CC="gcc"
	export CXX="g++"

Natanael Copa's avatar
Natanael Copa committed
32
33
34
35
36
37
38
39
	./bootstrap --prefix=/usr \
		--mandir=/share/man \
		--docdir=/share/cmake-2.6/doc \
		$(parallel_opt)

	make || return 1
	make DESTDIR="$pkgdir" install
}
Natanael Copa's avatar
Natanael Copa committed
40
md5sums="50f387d0436696c4a68b5512a72c9cde  cmake-2.6.4.tar.gz"