]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - icecream/icecream.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / icecream / icecream.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 # XXX man pages are missing
7 # XXX initscripts for daemons are missing
8
9 name = icecream
10 version = 0.9.6
11 release = 3
12
13 maintainer = Michael Tremer <michael.tremer@ipfire.org>
14 groups = Development/Compilers
15 url = http://en.opensuse.org/Icecream
16 license = GPLv2+
17 summary = Distributed compiler.
18
19
20 description
21 Icecream is a distributed compile system. It allows parallel compiling by \
22 distributing the compile jobs to several nodes of a compile network running the \
23 icecc daemon. The icecc scheduler routes the jobs and provides status and \
24 statistics information to the icecc monitor. Each compile node can accept one \
25 or more compile jobs depending on the number of processors and the settings of \
26 the daemon. Link jobs and other jobs which cannot be distributed are executed \
27 locally on the node where the compilation is started.
28 end
29
30 source_dl =
31 sources = icecc-%{version}.tar.bz2
32
33 build
34 requires
35 gcc-c++
36 end
37
38 DIR_APP = %{DIR_SRC}/icecc-%{version}
39
40 configure_options += \
41 --disable-static \
42 --enable-shared
43
44 install_cmds
45 ICECREAM_TARGET_PLATFORM=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
46
47 mkdir -pv %{BUILDROOT}/usr/lib/icecc/bin
48 for i in gcc g++ cc c++; do
49 ln -svf ../../../bin/icecc %{BUILDROOT}/usr/lib/icecc/bin/${i}
50 ln -svf ../../../bin/icecc %{BUILDROOT}/usr/lib/icecc/bin/%{ICECREAM_TARGET_PLATFORM}-${i}
51 done
52 sed -e 's|^#!.*|#!/bin/bash|' -i %{BUILDROOT}/usr/lib/icecc/icecc-create-env
53
54 mkdir -pv %{BUILDROOT}/etc/profile.d
55 sed -e "s|@LIBDIR@|/usr/lib|g" \
56 < %{DIR_SOURCE}/icecream.sh > %{BUILDROOT}/etc/profile.d/icecream.sh
57
58 # create default working dir
59 mkdir -pv %{BUILDROOT}/var/cache/icecream
60 end
61 end
62
63 packages
64 package %{name}
65 requires = gcc-c++ /usr/bin/ldd
66 end
67
68 package %{name}-devel
69 template DEVEL
70 end
71 end