wok-next view cmake/receipt @ rev 20969

Micro-updates + { new clang + assaultcube (still broken)} + {new python modules from SliTaz Cooking + their depends}
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Sep 14 01:56:52 2018 +0300 (2018-09-14)
parents d3730d754d47
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="cmake"
4 VERSION="3.12.2"
5 CATEGORY="development"
6 SHORT_DESC="Cross-platform build system generator"
7 MAINTAINER="pankso@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=$DESTDIR 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