Magellan Linux

Contents of /trunk/extras/kdeedu4/kdeedu4-4.0.2-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4945 - (show annotations) (download)
Wed Feb 17 21:48:20 2010 UTC (14 years, 2 months ago) by niro
File size: 1869 byte(s)
-moved to 'extras'
1 # $Header: /magellan-cvs/smage/kdeedu/kdeedu-3.5.8-r1.smage2,v 1.1 2007-11-04 12:01:03 niro Exp $
2
3 PNAME="kdeedu4"
4 PVER="4.0.2"
5 PBUILD="r1"
6
7 STATE="unstable"
8 DESCRIPTION="Some educational KDE4 tools for kids."
9
10 DEPEND=">= kde-base/kdebase4-${PVER}"
11
12
13 COMMONDEPEND="
14 gps? ( sci-geosciences/gpsd )
15 fits? ( sci-libs/cfitsio )
16 nova? ( >=sci-libs/libnova-0.12.1 )
17 sbig? ( sci-libs/indilib
18 usb? ( dev-libs/libusb ) )
19 cviewer? ( >=dev-cpp/eigen-1.0.5
20 >=sci-chemistry/openbabel-2.1
21 virtual/opengl )
22 solver? ( dev-ml/facile )
23 opengl? ( virtual/opengl )
24 readline? ( sys-libs/readline )
25 kig-scripting? ( >=dev-libs/boost-1.32 )"
26 DEPEND="${COMMONDEPEND}"
27 RDEPEND="${COMMONDEPEND}
28 >=kde-base/kdebase-${PV}:${SLOT}"
29
30 PATCHES="${FILESDIR}/kstars-4.0.0-destdir.patch
31 ${FILESDIR}/marble-4.0.0-fix-tests.patch
32 ${FILESDIR}/${P}-opengl.patch"
33
34
35 sminclude kde4
36
37
38 src_compile()
39 {
40 # Either of these needs OpenGL support, but using cmake-utils_use_with
41 # and appending that to $mycmakeargs would let them override each other.
42 if use cviewer || use opengl; then
43 mycmakeargs="${mycmakeargs}
44 -DWITH_OpenGL=ON"
45 else
46 mycmakeargs="${mycmakeargs}
47 -DWITH_OpenGL=OFF"
48 fi
49
50 mycmakeargs="${mycmakeargs}
51 $(cmake-utils_use_with readline Readline)
52 $(cmake-utils_use_with cviewer Eigen)
53 $(cmake-utils_use_with cviewer OpenBabel2)
54 $(cmake-utils_use_with solver OCaml)
55 $(cmake-utils_use_with solver Libfacile)
56 $(cmake-utils_use_with kig-scripting BoostPython)
57 $(cmake-utils_use_with fits CFitsio)
58 $(cmake-utils_use_with nova Nova)
59 $(cmake-utils_use_with sbig SBIG)
60 $(cmake-utils_use_with usb USB)
61 $(cmake-utils_use_with designer-plugin DESIGNER_PLUGIN)"
62
63 if use gps; then
64 mycmakeargs="${mycmakeargs} -DHAVE_LIBGPS=1"
65 else
66 sed -i -e 's:FIND_LIBRARY(libgps_LIBRARIES gps):# LIBGPS DISABLED &:' \
67 marble/Findlibgps.cmake || die "sed failed."
68 fi
69
70 }

Properties

Name Value
svn:keywords Id