[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [lbuilds] GMP, Mpfr und Mpc + GMP-5.0.2 + Mpfr-3.0.1 + Mpc-0.9



From 0974532e696d10e019ac0fe8eab588f31ba36875 Mon Sep 17 00:00:00 2001
From: Dominik Bittner <DoBi-tyndur@xxxxxxx>
Date: Sun, 14 Aug 2011 00:01:31 +0200
Subject: [PATCH] [lbuilds] GMP, Mpfr und Mpc + GMP-5.0.2 + Mpfr-3.0.1 +
 Mpc-0.9 Signed-off-by: Dominik Bittner
 <DoBi-tyndur@xxxxxxx>

---
 lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild         |   36 +++++++++++++++++++++++++++
 lbuilds/gmp/5.0.2/patches/config.patch     |   12 +++++++++
 lbuilds/gmp/5.0.2/patches/series           |    1 +
 lbuilds/mpc/0.9/mpc-0.9.lbuild             |   37 ++++++++++++++++++++++++++++
 lbuilds/mpc/0.9/patches/config.patch       |   12 +++++++++
 lbuilds/mpc/0.9/patches/series             |    1 +
 lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild       |   36 +++++++++++++++++++++++++++
 lbuilds/mpfr/3.0.1/patches/config.patch    |   12 +++++++++
 lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch |   12 +++++++++
 lbuilds/mpfr/3.0.1/patches/series          |    2 +
 10 files changed, 161 insertions(+), 0 deletions(-)
 create mode 100644 lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild
 create mode 100644 lbuilds/gmp/5.0.2/patches/config.patch
 create mode 100644 lbuilds/gmp/5.0.2/patches/series
 create mode 100644 lbuilds/mpc/0.9/mpc-0.9.lbuild
 create mode 100644 lbuilds/mpc/0.9/patches/config.patch
 create mode 100644 lbuilds/mpc/0.9/patches/series
 create mode 100644 lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild
 create mode 100644 lbuilds/mpfr/3.0.1/patches/config.patch
 create mode 100644 lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch
 create mode 100644 lbuilds/mpfr/3.0.1/patches/series

diff --git a/lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild b/lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild
new file mode 100644
index 0000000..5d949ea
--- /dev/null
+++ b/lbuilds/gmp/5.0.2/gmp-5.0.2.lbuild
@@ -0,0 +1,36 @@
+include lutils
+include toolchain
+
+DESCRIPTION="Tools necessary to build programs"
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/gmp";
+SRC_URI="http://ftp.gnu.org/gnu/gmp/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+
+BUILD_DEPEND=""
+RUN_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_compile() {
+	cd ${MY_S}
+	./configure \
+		--build=`tc-build` \
+		--host=`tc-host` \
+		--prefix=${R} \
+		--disable-cxx \
+		|| die "configure failed"
+
+	lmake || die "make failed"
+	cd ..
+}
+
+src_install() {
+	cd ${MY_S}
+	lmake DESTDIR="${D}" install || die "make install failed"
+
+	cd "${D}/${R}"
+
+	# Sonst funktioniert mpc nicht
+	rm lib/*.la
+}
diff --git a/lbuilds/gmp/5.0.2/patches/config.patch b/lbuilds/gmp/5.0.2/patches/config.patch
new file mode 100644
index 0000000..0b86847
--- /dev/null
+++ b/lbuilds/gmp/5.0.2/patches/config.patch
@@ -0,0 +1,12 @@
+diff -urN src.orig/gmp-5.0.2//configfsf.sub src/gmp-5.0.2//configfsf.sub
+--- src.orig/gmp-5.0.2//configfsf.sub	2011-05-08 11:49:29.000000000 +0200
++++ src/gmp-5.0.2//configfsf.sub	2011-08-13 00:04:26.000000000 +0200
+@@ -1346,7 +1346,7 @@
+ 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
++	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tyndur*)
+ 	# Remember, each alternative MUST END IN *, to match a version number.
+ 		;;
+ 	-qnx*)
diff --git a/lbuilds/gmp/5.0.2/patches/series b/lbuilds/gmp/5.0.2/patches/series
new file mode 100644
index 0000000..4462183
--- /dev/null
+++ b/lbuilds/gmp/5.0.2/patches/series
@@ -0,0 +1 @@
+config.patch
diff --git a/lbuilds/mpc/0.9/mpc-0.9.lbuild b/lbuilds/mpc/0.9/mpc-0.9.lbuild
new file mode 100644
index 0000000..f5d19a9
--- /dev/null
+++ b/lbuilds/mpc/0.9/mpc-0.9.lbuild
@@ -0,0 +1,37 @@
+include lutils
+include toolchain
+
+DESCRIPTION="Tools necessary to build programs"
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/mpc";
+SRC_URI="http://www.multiprecision.org/mpc/download/${P}.tar.gz";
+
+LICENSE="GPL-2"
+
+BUILD_DEPEND="=gmp-5.0.2 =mpfr-3.0.1"
+RUN_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_compile() {
+	cd ${MY_S}
+	./configure \
+		--build=`tc-build` \
+		--host=`tc-host` \
+		--prefix=${R} \
+		--with-gmp=${S}/../env \
+		--with-mpfr=${S}/../env \
+		|| die "configure failed"
+
+	lmake || die "make failed"
+	cd ..
+}
+
+src_install() {
+	cd ${MY_S}
+	lmake DESTDIR="${D}" install || die "make install failed"
+
+	cd "${D}/${R}"
+
+	# Weißt auf das falsche Verzeichnis
+	rm lib/*.la
+}
diff --git a/lbuilds/mpc/0.9/patches/config.patch b/lbuilds/mpc/0.9/patches/config.patch
new file mode 100644
index 0000000..6827301
--- /dev/null
+++ b/lbuilds/mpc/0.9/patches/config.patch
@@ -0,0 +1,12 @@
+diff -urN src.orig/mpc-0.9//config.sub src/mpc-0.9//config.sub
+--- src.orig/mpc-0.9//config.sub	2011-01-18 14:09:45.000000000 +0100
++++ src/mpc-0.9//config.sub	2011-08-13 23:21:10.000000000 +0200
+@@ -1309,7 +1309,7 @@
+ 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
++	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tyndur*)
+ 	# Remember, each alternative MUST END IN *, to match a version number.
+ 		;;
+ 	-qnx*)
diff --git a/lbuilds/mpc/0.9/patches/series b/lbuilds/mpc/0.9/patches/series
new file mode 100644
index 0000000..4462183
--- /dev/null
+++ b/lbuilds/mpc/0.9/patches/series
@@ -0,0 +1 @@
+config.patch
diff --git a/lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild b/lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild
new file mode 100644
index 0000000..8d85a18
--- /dev/null
+++ b/lbuilds/mpfr/3.0.1/mpfr-3.0.1.lbuild
@@ -0,0 +1,36 @@
+include lutils
+include toolchain
+
+DESCRIPTION="Tools necessary to build programs"
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/mpfr";
+SRC_URI="http://www.mpfr.org/mpfr-current/${P}.tar.bz2";
+
+LICENSE="GPL-2"
+
+BUILD_DEPEND="=gmp-5.0.2"
+RUN_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_compile() {
+	cd ${MY_S}
+	./configure \
+		--build=`tc-build` \
+		--host=`tc-host` \
+		--prefix=${R} \
+		--with-gmp=${S}/../env/ \
+		|| die "configure failed"
+
+	lmake || die "make failed"
+	cd ..
+}
+
+src_install() {
+	cd ${MY_S}
+	lmake DESTDIR="${D}" install || die "make install failed"
+
+	cd "${D}/${R}"
+
+	# Sonst funktioniert mpc nicht.
+	rm lib/*.la
+}
diff --git a/lbuilds/mpfr/3.0.1/patches/config.patch b/lbuilds/mpfr/3.0.1/patches/config.patch
new file mode 100644
index 0000000..a6d6747
--- /dev/null
+++ b/lbuilds/mpfr/3.0.1/patches/config.patch
@@ -0,0 +1,12 @@
+diff -urN src.orig/mpfr-3.0.1//config.sub src/mpfr-3.0.1//config.sub
+--- src.orig/mpfr-3.0.1//config.sub	2011-04-04 12:19:46.000000000 +0200
++++ src/mpfr-3.0.1//config.sub	2011-08-13 23:10:00.000000000 +0200
+@@ -1309,7 +1309,7 @@
+ 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
++	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tyndur* )
+ 	# Remember, each alternative MUST END IN *, to match a version number.
+ 		;;
+ 	-qnx*)
diff --git a/lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch b/lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch
new file mode 100644
index 0000000..3711ee4
--- /dev/null
+++ b/lbuilds/mpfr/3.0.1/patches/mpfr-impl.patch
@@ -0,0 +1,12 @@
+diff -urN src.orig/mpfr-3.0.1//mpfr-impl.h src/mpfr-3.0.1//mpfr-impl.h
+--- src.orig/mpfr-3.0.1//mpfr-impl.h	2011-04-04 12:19:18.000000000 +0200
++++ src/mpfr-3.0.1//mpfr-impl.h	2011-08-13 23:16:56.000000000 +0200
+@@ -633,7 +633,7 @@
+ # define mp_exp_unsigned_t mpfr_uexp_t
+ #endif
+ 
+-#if MPFR_EXP_MIN >= LONG_MIN && MPFR_EXP_MAX <= LONG_MAX
++#if 1 >= 0 && 0 <= 1
+ typedef long int mpfr_eexp_t;
+ # define mpfr_get_exp_t(x,r) mpfr_get_si((x),(r))
+ # define mpfr_set_exp_t(x,e,r) mpfr_set_si((x),(e),(r))
diff --git a/lbuilds/mpfr/3.0.1/patches/series b/lbuilds/mpfr/3.0.1/patches/series
new file mode 100644
index 0000000..c5e8242
--- /dev/null
+++ b/lbuilds/mpfr/3.0.1/patches/series
@@ -0,0 +1,2 @@
+config.patch
+mpfr-impl.patch
-- 
1.7.6

-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!		
Jetzt informieren: http://www.gmx.net/de/go/freephone