2008-10-14 13:26:23 +03:00
|
|
|
# Description: A cross-platform, open-source make system.
|
|
|
|
# URL: http://www.cmake.org/
|
2017-04-13 11:28:07 +10:00
|
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
2012-06-27 10:24:16 +02:00
|
|
|
# Depends on: curl libarchive expat ncurses
|
2008-10-14 13:26:23 +03:00
|
|
|
|
|
|
|
name=cmake
|
2017-04-11 20:10:16 +02:00
|
|
|
version=3.8.0
|
|
|
|
release=1
|
2015-01-02 14:46:32 +00:00
|
|
|
source=(http://www.cmake.org/files/v${version%.*}/$name-$version.tar.gz)
|
2008-10-14 13:26:23 +03:00
|
|
|
|
|
|
|
build() {
|
2017-04-11 20:10:16 +02:00
|
|
|
cd $name-$version
|
2012-06-26 16:11:53 +02:00
|
|
|
|
2017-04-11 20:10:16 +02:00
|
|
|
sed -i Source/CMakeInstallDestinations.cmake \
|
|
|
|
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
|
2015-03-11 14:42:45 +00:00
|
|
|
|
2017-04-11 20:10:16 +02:00
|
|
|
./bootstrap \
|
|
|
|
--prefix=/usr \
|
|
|
|
--system-curl \
|
|
|
|
--system-expat \
|
|
|
|
--system-zlib \
|
|
|
|
--system-bzip2 \
|
|
|
|
--system-libarchive \
|
|
|
|
--no-system-librhash
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/doc
|
2016-08-18 11:33:56 +02:00
|
|
|
|
2017-04-11 20:10:16 +02:00
|
|
|
ln -sf $name $PKG/usr/share/$name-${version%.*}
|
2008-10-14 13:26:23 +03:00
|
|
|
}
|