]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Converted lfs/gcc to new LFS format.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Jan 2009 21:06:06 +0000 (22:06 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Jan 2009 21:06:06 +0000 (22:06 +0100)
lfs/gcc

diff --git a/lfs/gcc b/lfs/gcc
index ac116492fd8b458c74a366186143056e7128e257..7854a360b1b719f3cc9d7dd4d538a4dfe7ed8bad 100644 (file)
--- a/lfs/gcc
+++ b/lfs/gcc
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007, 2008, 2009 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        #
@@ -26,15 +26,11 @@ include Config
 
 PKG_NAME   = gcc
 VER        = 4.3.3
+PKG_VER    = 0
 
 THISAPP    = $(PKG_NAME)-$(VER)
 DL_FILE    = $(THISAPP).tar.bz2
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
-CFLAGS     = -pipe
-CXXFLAGS   =
-
-GMP        = $(shell grep ^VER $(DIR_LFS)/gmp  | awk '{ print $$3 }')
-MPFR       = $(shell grep ^VER $(DIR_LFS)/mpfr | awk '{ print $$3 }')
 
 ifeq "$(STAGE)" "base"
        OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
@@ -42,6 +38,27 @@ else
        OBJECT = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)-pass$(PASS)
 endif
 
+MAINTAINER =
+GROUP      = Development/Compilers
+EXTRA      = no
+DEBUG      = no
+DEPS       =
+
+URL        = http://gcc.gnu.org/
+LICENSE    = GPLv3+ and GPLv2+ with exceptions
+SHORT_DESC = Various compilers (C, C++, Objective-C, Java, ...).
+
+define LONG_DESC
+       The gcc package contains the GNU Compiler Collection. \
+       You'll need this package in order to compile C code.
+endef
+
+CFLAGS     = -pipe
+CXXFLAGS   =
+
+GMP        = $(shell grep ^VER $(DIR_LFS)/gmp  | awk '{ print $$3 }')
+MPFR       = $(shell grep ^VER $(DIR_LFS)/mpfr | awk '{ print $$3 }')
+
 ifeq "$(MACHINE)" "i586"
        CONFIGURE_ARGS = --disable-decimal-float
 endif
@@ -58,20 +75,26 @@ objects = $(DL_FILE) \
        $(THISAPP)-branch-startfiles-1.patch \
        $(THISAPP)-asprintf_fix.patch
 
-install : $(OBJECT)
+download: $(objects)
+
+info:
+       $(DO_PKG_INFO)
+
+install: $(OBJECT)
 
-download : $(objects)
+package:
+       @$(DO_PACKAGE)
 
-$(objects) :
+$(objects):
        @$(LOAD)
 
 ###############################################################################
 # Installation Details
 ###############################################################################
 
-$(OBJECT) : 
+$(OBJECT): $(objects)
        @$(PREBUILD)
-       @rm -rf $(DIR_APP) $(DIR_SRC)/gcc-build && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
+       @rm -rf $(DIR_APP) $(DIR_SRC)/gcc-build && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
        -mkdir -v $(DIR_SRC)/gcc-build
 
        # First, unpack gmp and mpfr.