2020-12-17 14:07:55 +01:00
|
|
|
# Description: A cross-platform, open-source make system
|
|
|
|
# URL: http://www.cmake.org/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
# Depends on: curl libarchive expat ncurses
|
2008-10-14 13:26:23 +03:00
|
|
|
|
|
|
|
name=cmake
|
2021-01-28 20:43:31 +00:00
|
|
|
version=3.19.4
|
2017-04-11 20:10:16 +02:00
|
|
|
release=1
|
2020-06-21 20:21:42 +10:00
|
|
|
source=(https://cmake.org/files/v${version%.*}/$name-$version.tar.gz)
|
2008-10-14 13:26:23 +03:00
|
|
|
|
|
|
|
build() {
|
2020-12-17 14:07:55 +01:00
|
|
|
cd $name-$version
|
2012-06-26 16:11:53 +02:00
|
|
|
|
2020-12-17 14:07:55 +01: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
|
|
|
|
2020-12-17 14:07:55 +01:00
|
|
|
./bootstrap \
|
|
|
|
--prefix=/usr \
|
|
|
|
--system-curl \
|
|
|
|
--system-expat \
|
|
|
|
--system-zlib \
|
|
|
|
--system-bzip2 \
|
|
|
|
--system-libarchive \
|
|
|
|
--system-zstd \
|
|
|
|
--no-system-librhash \
|
|
|
|
--parallel=${JOBS:-1}
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/{doc,share/cmake/Help}
|
2016-08-18 11:33:56 +02:00
|
|
|
|
2020-12-17 14:07:55 +01:00
|
|
|
ln -sf $name $PKG/usr/share/$name-${version%.*}
|
2008-10-14 13:26:23 +03:00
|
|
|
}
|