Magellan Linux

Contents of /trunk/core/cmake/cmake-3.8.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29525 - (show annotations) (download)
Thu Jun 22 09:45:52 2017 UTC (6 years, 11 months ago) by niro
File size: 1245 byte(s)
-disable system librhash atm
1 # $Id$
2
3 PNAME="cmake"
4 PVER="3.8.2"
5 PBUILD="r1"
6
7 PCAT="dev-util"
8
9 DESCRIPTION="cmake is a cross-platform open-source make system."
10 HOMEPAGE="http://www.cmake.org/"
11
12 # todo: system libuv and librhash support
13 DEPEND=">= sys-libs/libstdc++-5.3
14 >= sys-libs/ncurses-6.0
15 >= net-misc/curl-7
16 >= dev-libs/expat-2
17 >= dev-libs/libxml2-2.7
18 >= dev-libs/xmlrpc-c-1.33.18
19 >= dev-libs/jsoncpp-1.7.2
20 >= app-arch/libarchive-3"
21
22 SRCFILE="${PNAME}-${PVER}.tar.gz"
23 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
24
25 sminclude mbuild
26 msetfeature "!check"
27
28 SRC_URI=(
29 http://www.cmake.org/files/v${PVER%.*}/${SRCFILE}
30 http://www.cmake.org/files/v${PVER%.*.*}/${SRCFILE}
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 #UP2DATE="updatecmd ${HOMEPAGE}/ | grep 'Download CMake' | sed 's/.*Version\ \(.*\).*/\1/'"
35 UP2DATE="curl -s https://cmake.org/download/ | sed 's:.*\(cmake.*\.tar\.gz\).*:\1:' | highesttarball gz"
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40 cd ${SRCDIR}
41
42 # disable libuv dep atm
43 sed -i '/CMAKE_USE_LIBUV 1/s/1/0/' CMakeLists.txt || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49
50 ./bootstrap \
51 --prefix=/usr \
52 --docdir=/share/doc/${PNAME}-${PVER} \
53 --datadir=/share/${PNAME} \
54 --mandir=/share/man \
55 --system-libs \
56 --no-system-librhash \
57 || die
58
59 mmake || die
60 }