Commit a7b9f602 authored by Natanael Copa's avatar Natanael Copa
Browse files

extra/cmake: new aport

parent 9964aa55
pkgname=cmake
pkgver=2.6.2
pkgrel=0
pkgdesc="CMake is a cross-platform open-source make system"
url="http://www.cmake.org"
license="CMake"
depends="uclibc gcc g++"
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="9e82aa3beb991aa8e5797cf330618d42 cmake-2.6.2.tar.gz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment