From bdfd41c4f18fa85b9cc392354c0e1d73b7735651 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 4 Dec 2015 21:21:32 +0000 Subject: [PATCH] libmpc: New package A dependency for GCC Signed-off-by: Michael Tremer --- config/rootfiles/common/libmpc | 7 ++++ lfs/libmpc | 77 ++++++++++++++++++++++++++++++++++ make.sh | 1 + 3 files changed, 85 insertions(+) create mode 100644 config/rootfiles/common/libmpc create mode 100644 lfs/libmpc diff --git a/config/rootfiles/common/libmpc b/config/rootfiles/common/libmpc new file mode 100644 index 0000000000..c8684ceab5 --- /dev/null +++ b/config/rootfiles/common/libmpc @@ -0,0 +1,7 @@ +#usr/include/mpc.h +#usr/lib/libmpc.a +#usr/lib/libmpc.la +#usr/lib/libmpc.so +usr/lib/libmpc.so.3 +usr/lib/libmpc.so.3.0.0 +#usr/share/info/mpc.info diff --git a/lfs/libmpc b/lfs/libmpc new file mode 100644 index 0000000000..5aa43d9ddb --- /dev/null +++ b/lfs/libmpc @@ -0,0 +1,77 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007 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 . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include Config + +VER = 1.0.3 + +THISAPP = mpc-$(VER) +DL_FILE = $(THISAPP).tar.gz +DL_FROM = $(URL_IPFIRE) +DIR_APP = $(DIR_SRC)/$(THISAPP) +TARGET = $(DIR_INFO)/$(THISAPP) + +############################################################################### +# Top-level Rules +############################################################################### + +objects = $(DL_FILE) + +$(DL_FILE) = $(DL_FROM)/$(DL_FILE) + +$(DL_FILE)_MD5 = d6a1d5f8ddea3abd2cc3e98f58352d26 + +install : $(TARGET) + +check : $(patsubst %,$(DIR_CHK)/%,$(objects)) + +download :$(patsubst %,$(DIR_DL)/%,$(objects)) + +md5 : $(subst %,%_MD5,$(objects)) + +############################################################################### +# Downloading, checking, md5sum +############################################################################### + +$(patsubst %,$(DIR_CHK)/%,$(objects)) : + @$(CHECK) + +$(patsubst %,$(DIR_DL)/%,$(objects)) : + @$(LOAD) + +$(subst %,%_MD5,$(objects)) : + @$(MD5) + +############################################################################### +# Installation Details +############################################################################### + +$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) + @$(PREBUILD) + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && ./configure --prefix=/usr + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install + @rm -rf $(DIR_APP) + @$(POSTBUILD) diff --git a/make.sh b/make.sh index 2776812852..04823322fd 100755 --- a/make.sh +++ b/make.sh @@ -330,6 +330,7 @@ buildbase() { lfsmake2 gmp lfsmake2 gmp-compat lfsmake2 mpfr + lfsmake2 libmpc lfsmake2 file lfsmake2 gcc lfsmake2 sed -- 2.39.2