wok-next view cmake/receipt @ rev 21140
clisp: fix i486 build with GCC8; up cmake (3.13.3); build hardinfo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jan 24 13:28:17 2019 +0200 (2019-01-24) |
parents | 7c5d038be95b |
children | 8168ad6e0cc1 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cmake"
4 VERSION="3.13.3"
5 CATEGORY="development"
6 SHORT_DESC="Cross-platform build system generator"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://cmake.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/cmake.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://www.cmake.org/files/v${VERSION%.*}/$TARBALL"
14 TARBALL_SHA1="f33558a268a9286d4fa310abbd56efbaf897f6dc"
16 BUILD_DEPENDS="zlib-dev curl-dev bzip2-dev xz-dev libarchive-dev expat-dev \
17 ncurses-dev gfortran libuv-dev jsoncpp-dev"
18 SPLIT="$PACKAGE-common"
20 COPY_std="bin/"
21 COPY_common="@std @dev @rm"
23 DEPENDS_std="cmake-common expat jsoncpp libarchive libcurl libuv ncurses \
24 ncurses-libform zlib"
25 DEPENDS_common=" "
27 CAT_common="development|common files"
29 # CMake should be updated both with Boost:
30 # https://stackoverflow.com/questions/42123509/cmake-finds-boost-but-the-imported-targets-not-available-for-boost-version
31 # > Boost 1.68, 1.69 require CMake 3.13 or newer.
33 compile_rules() {
34 sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
35 # fix math
37 ./bootstrap \
38 --prefix=/usr \
39 --system-libs \
40 --mandir=/share/man \
41 --no-system-librhash \
42 --docdir=/share/doc/$PACKAGE-$VERSION &&
43 make &&
44 make DESTDIR=$install install
45 }