cmake: initial commit, version 3.22.1
This commit is contained in:
parent
5e7707f64d
commit
0309c7174b
1172
cmake/.footprint
Normal file
1172
cmake/.footprint
Normal file
File diff suppressed because it is too large
Load Diff
5
cmake/.signature
Normal file
5
cmake/.signature
Normal file
@ -0,0 +1,5 @@
|
||||
untrusted comment: verify with /etc/ports/core.pub
|
||||
RWRJc1FUaeVeqgG9EFAUHrC0YuXtJnICnc0MBK1Z6i4r+dQm0VHErj0WjV7JaxbXtrj9JTwpmco2DHgR9ueW2wNvS1Ia9AZMPwI=
|
||||
SHA256 (Pkgfile) = 5ee30cc06c6638a62fb60cbb48bdc6453677ae31952d4b2746203cc358ad49c0
|
||||
SHA256 (.footprint) = 77255f3e01e14136358d738d9a3284d8148fce7e9da0255057fb289ab3d672f9
|
||||
SHA256 (cmake-3.22.1.tar.gz) = 0e998229549d7b3f368703d20e248e7ee1f853910d42704aa87918c213ea82c0
|
41
cmake/Pkgfile
Normal file
41
cmake/Pkgfile
Normal file
@ -0,0 +1,41 @@
|
||||
# Description: A cross-platform, open-source make system
|
||||
# URL: https://www.cmake.org/
|
||||
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||
# Depends on: curl expat libarchive ncurses
|
||||
# Optional: jsoncpp librhash libuv lzlib nghttp2-libs ninja python3-sphinx
|
||||
|
||||
name=cmake
|
||||
version=3.22.1
|
||||
release=1
|
||||
source=(https://cmake.org/files/v${version%.*}/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
sed -i Source/CMakeInstallDestinations.cmake \
|
||||
-e 's|share/cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}|share/cmake|'
|
||||
|
||||
prt-get isinst ninja && PKGMK_CMAKE+=' --generator=Ninja'
|
||||
prt-get isinst jsoncpp && PKGMK_CMAKE+=' --system-jsoncpp' || PKGMK_CMAKE+=' --no-system-jsoncpp'
|
||||
prt-get isinst librhash && PKGMK_CMAKE+=' --system-librhash' || PKGMK_CMAKE+=' --no-system-librhash'
|
||||
prt-get isinst libuv && PKGMK_CMAKE+=' --system-libuv' || PKGMK_CMAKE+=' --no-system-libuv'
|
||||
prt-get isinst lzlib && PKGMK_CMAKE+=' --system-liblzma' || PKGMK_CMAKE+=' --no-system-liblzma'
|
||||
prt-get isinst nghttp2-libs && PKGMK_CMAKE+=' --system-nghttp2' || PKGMK_CMAKE+=' --no-system-nghttp2'
|
||||
|
||||
./bootstrap $PKGMK_CMAKE \
|
||||
--prefix=/usr \
|
||||
--system-curl \
|
||||
--system-expat \
|
||||
--system-zlib \
|
||||
--system-bzip2 \
|
||||
--system-libarchive \
|
||||
--system-zstd \
|
||||
--parallel=${JOBS:-1} \
|
||||
$(prt-get isinst python3-sphinx >/dev/null && echo --sphinx-man)
|
||||
|
||||
ninja
|
||||
DESTDIR=$PKG ninja install
|
||||
rm -r $PKG/usr/{doc,share/cmake/Help}
|
||||
|
||||
ln -sf $name $PKG/usr/share/$name-${version%.*}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user