2008-10-14 13:26:23 +03:00
|
|
|
# Description: A cross-platform, open-source make system.
|
|
|
|
# URL: http://www.cmake.org/
|
2010-03-04 08:45:54 +01:00
|
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
2008-10-14 13:26:23 +03:00
|
|
|
# Packager: Mark Rosenstand, mark at borkware dot net
|
2012-06-27 10:24:16 +02:00
|
|
|
# Depends on: curl libarchive expat ncurses
|
2008-10-14 13:26:23 +03:00
|
|
|
|
|
|
|
name=cmake
|
2015-08-18 09:50:54 +02:00
|
|
|
version=3.3.1
|
2012-11-14 15:47:41 +01:00
|
|
|
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() {
|
2012-01-04 10:35:11 +01:00
|
|
|
cd $name-$version
|
2012-06-26 16:11:53 +02:00
|
|
|
|
2015-03-11 14:42:45 +00:00
|
|
|
# fix installation path
|
|
|
|
sed -i Source/CMakeInstallDestinations.cmake \
|
|
|
|
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
|
|
|
|
|
2012-06-26 16:11:53 +02:00
|
|
|
./bootstrap \
|
|
|
|
--prefix=/usr \
|
|
|
|
--system-libs \
|
2014-08-05 17:38:47 +02:00
|
|
|
--system-libarchive \
|
2015-03-11 14:42:45 +00:00
|
|
|
--no-system-jsoncpp \
|
2012-06-26 16:11:53 +02:00
|
|
|
--parallel=$(sed -e 's/.*-j *\([0-9]\+\).*/\1/' <<< $MAKEFLAGS)
|
|
|
|
|
2008-10-14 13:26:23 +03:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/doc
|
2015-03-11 14:42:45 +00:00
|
|
|
|
|
|
|
# keep versioned dir for compatibility
|
|
|
|
ln -sf $name $PKG/usr/share/$name-${version%.*}
|
2008-10-14 13:26:23 +03:00
|
|
|
}
|