]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/icecream/icecream.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / icecream / icecream.nm
index 545bff9328fb8c5846c7fbce61c8668eb779ecd9..793e1f5f43a0d4b6c3de817e1ba8a244b6a121b2 100644 (file)
@@ -1,48 +1,23 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
 # XXX man pages are missing
 # XXX initscripts for daemons are missing
 
-PKG_NAME       = icecream
-PKG_VER        = 0.9.6
-PKG_REL        = 3
+name       = icecream
+version    = 0.9.6
+release    = 3
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Compilers
-PKG_URL        = http://en.opensuse.org/Icecream
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Distributed compiler.
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Compilers
+url        = http://en.opensuse.org/Icecream
+license    = GPLv2+
+summary    = Distributed compiler.
 
-PKG_DEPS      += gcc-c++ /usr/bin/ldd
-PKG_BUILD_DEPS+= gcc-c++
 
-ICECREAM_TARGET_PLATFORM = $(subst -gnu,,$(DISTRO_MACHINE))
-
-define PKG_DESCRIPTION
+description
        Icecream is a distributed compile system. It allows parallel compiling by \
        distributing the compile jobs to several nodes of a compile network running the \
        icecc daemon. The icecc scheduler routes the jobs and provides status and \
@@ -50,29 +25,47 @@ define PKG_DESCRIPTION
        or more compile jobs depending on the number of processors and the settings of \
        the daemon. Link jobs and other jobs which cannot be distributed are executed \
        locally on the node where the compilation is started.
-endef
+end
+
+source_dl  =
+sources    = icecc-%{version}.tar.bz2
+
+build
+       requires
+               gcc-c++
+       end
+
+       DIR_APP = %{DIR_SRC}/icecc-%{version}
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       configure_options += \
+               --disable-static \
+               --enable-shared
 
-DIR_APP        = $(DIR_SRC)/icecc-$(PKG_VER)
-PKG_TARBALL    = icecc-$(PKG_VER).tar.bz2
+       install_cmds
+               ICECREAM_TARGET_PLATFORM=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
 
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --enable-shared
+               mkdir -pv %{BUILDROOT}/usr/lib/icecc/bin
+               for i in gcc g++ cc c++; do
+                       ln -svf ../../../bin/icecc %{BUILDROOT}/usr/lib/icecc/bin/${i}
+                       ln -svf ../../../bin/icecc %{BUILDROOT}/usr/lib/icecc/bin/%{ICECREAM_TARGET_PLATFORM}-${i}
+               done
+               sed -e 's|^#!.*|#!/bin/bash|' -i %{BUILDROOT}/usr/lib/icecc/icecc-create-env
 
-define STAGE_INSTALL_CMDS
-       mkdir -pv $(BUILDROOT)/usr/lib/icecc/bin
-       for i in gcc g++ cc c++; do \
-               ln -svf ../../../bin/icecc $(BUILDROOT)/usr/lib/icecc/bin/$${i}; \
-               ln -svf ../../../bin/icecc $(BUILDROOT)/usr/lib/icecc/bin/$(ICECREAM_TARGET_PLATFORM)-$${i}; \
-       done
-       sed -e 's|^#!.*|#!/bin/bash|' -i $(BUILDROOT)/usr/lib/icecc/icecc-create-env
+               mkdir -pv %{BUILDROOT}/etc/profile.d
+               sed -e "s|@LIBDIR@|/usr/lib|g" \
+                       < %{DIR_SOURCE}/icecream.sh > %{BUILDROOT}/etc/profile.d/icecream.sh
 
-       -mkdir -pv $(BUILDROOT)/etc/profile.d
-       sed -e "s|@LIBDIR@|/usr/lib|g" \
-               < $(DIR_SOURCE)/icecream.sh > $(BUILDROOT)/etc/profile.d/icecream.sh
+               # create default working dir
+               mkdir -pv %{BUILDROOT}/var/cache/icecream
+       end
+end
 
-       # create default working dir
-       -mkdir -pv $(BUILDROOT)/var/cache/icecream
-endef
+packages
+       package %{name}
+               requires = gcc-c++ /usr/bin/ldd
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end