Contents of /branches/R11-stable/core/cmake/cmake-2.8.12.2-r1.smage2
Parent Directory | Revision Log
Revision 20786 -
(show annotations)
(download)
Tue Feb 11 09:47:57 2014 UTC (10 years, 7 months ago) by niro
File size: 1143 byte(s)
Tue Feb 11 09:47:57 2014 UTC (10 years, 7 months ago) by niro
File size: 1143 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="cmake" |
4 | PVER="2.8.12.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 | DEPEND=">= sys-libs/libstdc++-4.8 |
13 | >= sys-libs/ncurses-5.9 |
14 | >= net-misc/curl-7 |
15 | >= dev-libs/expat-2 |
16 | >= dev-libs/libxml2-2.7 |
17 | >= dev-libs/xmlrpc-c-1.16.35 |
18 | >= app-arch/libarchive-3" |
19 | |
20 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
21 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
22 | |
23 | sminclude mbuild |
24 | msetfeature "!check" |
25 | |
26 | SRC_URI=( |
27 | http://www.cmake.org/files/v${PVER%.*}/${SRCFILE} |
28 | http://www.cmake.org/files/v${PVER%.*.*}/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/${PNAME}-2.8.12.1-freetype252.patch |
31 | ) |
32 | |
33 | UP2DATE="updatecmd ${HOMEPAGE}/${PNAME}/resources/software.html | grep 'Latest Release' | sed 's/.*(\(.*\)).*/\1/'" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # fix cmake module to detect >=freetype-2.5.2 |
41 | mpatch ${PNAME}-2.8.12.1-freetype252.patch || die |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | cd ${SRCDIR} |
47 | |
48 | ./bootstrap \ |
49 | --prefix=/usr \ |
50 | --docdir=/share/doc/${PNAME}-${PVER} \ |
51 | --datadir=/share/${PNAME} \ |
52 | --mandir=/share/man \ |
53 | --system-libs \ |
54 | || die |
55 | |
56 | mmake || die |
57 | } |