]>
Commit | Line | Data |
---|---|---|
37bc2396 MT |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
4 | # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # | |
5 | # # | |
6 | # This program is free software: you can redistribute it and/or modify # | |
7 | # it under the terms of the GNU General Public License as published by # | |
8 | # the Free Software Foundation, either version 3 of the License, or # | |
9 | # (at your option) any later version. # | |
10 | # # | |
11 | # This program is distributed in the hope that it will be useful, # | |
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of # | |
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # | |
14 | # GNU General Public License for more details. # | |
15 | # # | |
16 | # You should have received a copy of the GNU General Public License # | |
17 | # along with this program. If not, see <http://www.gnu.org/licenses/>. # | |
18 | # # | |
19 | ############################################################################### | |
20 | ||
21 | ############################################################################### | |
22 | # Definitions | |
23 | ############################################################################### | |
24 | ||
25 | include $(PKGROOT)/Include | |
26 | ||
27 | # XXX man pages are missing | |
28 | # XXX initscripts for daemons are missing | |
29 | ||
30 | PKG_NAME = icecream | |
31 | PKG_VER = 0.9.6 | |
32 | PKG_REL = 1 | |
33 | ||
34 | PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org> | |
35 | PKG_GROUP = Development/Compilers | |
36 | PKG_URL = http://en.opensuse.org/Icecream | |
37 | PKG_LICENSE = GPLv2+ | |
38 | PKG_SUMMARY = Distributed compiler. | |
39 | ||
40 | PKG_DEPS += gcc-c++ | |
41 | PKG_BUILD_DEPS+= gcc-c++ | |
42 | ||
43 | define PKG_DESCRIPTION | |
44 | Icecream is a distributed compile system. It allows parallel compiling by \ | |
45 | distributing the compile jobs to several nodes of a compile network running the \ | |
46 | icecc daemon. The icecc scheduler routes the jobs and provides status and \ | |
47 | statistics information to the icecc monitor. Each compile node can accept one \ | |
48 | or more compile jobs depending on the number of processors and the settings of \ | |
49 | the daemon. Link jobs and other jobs which cannot be distributed are executed \ | |
50 | locally on the node where the compilation is started. | |
51 | endef | |
52 | ||
53 | PKG_PACKAGES += $(PKG_NAME)-devel | |
54 | ||
55 | DIR_APP = $(DIR_SRC)/icecc-$(PKG_VER) | |
56 | PKG_TARBALL = icecc-$(PKG_VER).tar.bz2 | |
57 | ||
58 | CONFIGURE_OPTIONS += \ | |
59 | --disable-static \ | |
60 | --enable-shared | |
61 | ||
62 | define STAGE_INSTALL_CMDS | |
63 | mkdir -pv $(BUILDROOT)/usr/lib/icecc/bin | |
64 | for i in gcc g++ cc c++; do \ | |
65 | ln -svf ../../../bin/icecc $(BUILDROOT)/usr/lib/icecc/bin/$${i}; \ | |
66 | ln -svf ../../../bin/icecc $(BUILDROOT)/usr/lib/icecc/bin/$(DISTRO_MACHINE)-$${i}; \ | |
67 | done | |
68 | sed -e 's|^#!.*|#!/bin/bash|' -i $(BUILDROOT)/usr/lib/icecc/icecc-create-env | |
69 | ||
70 | -mkdir -pv $(BUILDROOT)/etc/profile.d | |
71 | sed -e "s|@LIBDIR@|/usr/lib|g" \ | |
72 | < $(DIR_SOURCE)/icecream.sh > $(BUILDROOT)/etc/profile.d/icecream.sh | |
73 | ||
74 | # create default working dir | |
75 | -mkdir -pv $(BUILDROOT)/var/cache/icecream | |
76 | endef |