]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - pkgs/icecream/icecream.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / icecream / icecream.nm
CommitLineData
37bc2396 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
37bc2396
MT
4###############################################################################
5
37bc2396
MT
6# XXX man pages are missing
7# XXX initscripts for daemons are missing
8
802ea3af
MT
9name = icecream
10version = 0.9.6
11release = 3
37bc2396 12
802ea3af
MT
13maintainer = Michael Tremer <michael.tremer@ipfire.org>
14groups = Development/Compilers
15url = http://en.opensuse.org/Icecream
16license = GPLv2+
17summary = Distributed compiler.
37bc2396 18
37bc2396 19
802ea3af 20description
37bc2396
MT
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.
802ea3af
MT
28end
29
30source_dl =
31sources = icecc-%{version}.tar.bz2
32
33build
34 requires
35 gcc-c++
36 end
37
38 DIR_APP = %{DIR_SRC}/icecc-%{version}
37bc2396 39
802ea3af
MT
40 configure_options += \
41 --disable-static \
42 --enable-shared
37bc2396 43
802ea3af
MT
44 install_cmds
45 ICECREAM_TARGET_PLATFORM=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
37bc2396 46
802ea3af
MT
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
37bc2396 53
802ea3af
MT
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
37bc2396 57
802ea3af
MT
58 # create default working dir
59 mkdir -pv %{BUILDROOT}/var/cache/icecream
60 end
61end
37bc2396 62
802ea3af
MT
63packages
64 package %{name}
65 requires = gcc-c++ /usr/bin/ldd
66 end
67
68 package %{name}-devel
69 template DEVEL
70 end
71end