wok-next view cmake/receipt @ rev 21036

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Nov 06 14:32:27 2018 +0200 (2018-11-06)
parents d5aab818505e
children 4d9f82dabdbb
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cmake"
4 VERSION="3.12.4"
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"
15 BUILD_DEPENDS="zlib-dev curl-dev bzip2-dev xz-dev libarchive-dev \
16 expat-dev ncurses-dev gfortran libuv-dev jsoncpp-dev"
17 SPLIT="$PACKAGE-common"
19 compile_rules() {
20 sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake
21 fix math
23 ./bootstrap \
24 --prefix=/usr \
25 --system-libs \
26 --mandir=/share/man \
27 --no-system-librhash \
28 --docdir=/share/doc/$PACKAGE-$VERSION &&
29 make &&
30 make DESTDIR=$install install
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 cmake)
36 copy bin/
37 DEPENDS="cmake-common expat jsoncpp libarchive libcurl libuv \
38 ncurses ncurses-libform zlib"
39 ;;
40 cmake-common)
41 copy @std @dev @rm
42 CAT="development|common files"
43 ;;
44 esac
45 }
47 # CMake should be updated both with Boost:
48 # https://stackoverflow.com/questions/42123509/cmake-finds-boost-but-the-imported-targets-not-available-for-boost-version