blob: 561893e4abe66208001afcb893869eb140b812cc (
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
52
53
54
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cmake
pkgver=2.8.11
pkgrel=0
pkgdesc="CMake is a cross-platform open-source make system"
url="http://www.cmake.org"
arch="all"
license="CMake"
depends=
makedepends="ncurses-dev"
case $pkgver in
*.*.*.*) _v=v${pkgver%.*.*};;
*.*.*) _v=v${pkgver%.*};;
esac
source="http://www.cmake.org/files/$_v/cmake-${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
# bug in cmake.
# http://www.mail-archive.com/cmake@cmake.org/msg09515.html
# export CC="gcc"
# export CXX="g++"
./bootstrap --prefix=/usr \
--mandir=/share/man \
--docdir=/share/cmake-${pkgver%.*}/doc \
$(parallel_opt)
make || return 1
}
package() {
cd $startdir/src/$pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
md5sums="be6008f2299613d23fe82ab53ef7472e cmake-2.8.11.tar.gz"
sha256sums="20d0d3661797fa82c19e7a75c7315c640e001cb3238331ca170bb0fae27feee5 cmake-2.8.11.tar.gz"
sha512sums="d3ed24d17c869d46a951a5a0055879b1cc5963672f334c6aa0799d0d6fa74e556deeca549104609ea1b977f140459f78554cba0ad0e6e3aadc982067405f1e6d cmake-2.8.11.tar.gz"
|