[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tyndur-devel] (kein Betreff)
From cb94723ed342af8e96d735996b855404a59e8965 Mon Sep 17 00:00:00 2001
From: Christian Klahn <Christian.Klahn@xxxxxxx>
Date: Sat, 29 Jan 2011 00:13:28 +0100
Subject: [PATCH] neuer lbuild Nasm 2.06rc5
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
+ lbuild für Nasm 2.06rc5 hinzugefügt
Signed-off-by: Christian Klahn <Christian.Klahn@xxxxxxx>
---
lbuilds/nasm/2.06rc5/files/build.patch | 69 ++++++++++++++++++++++++++++++
lbuilds/nasm/2.06rc5/nasm-2.06rc5.lbuild | 49 +++++++++++++++++++++
2 files changed, 118 insertions(+), 0 deletions(-)
create mode 100644 lbuilds/nasm/2.06rc5/files/build.patch
create mode 100644 lbuilds/nasm/2.06rc5/nasm-2.06rc5.lbuild
diff --git a/lbuilds/nasm/2.06rc5/files/build.patch b/lbuilds/nasm/2.06rc5/files/build.patch
new file mode 100644
index 0000000..e9bb71a
--- /dev/null
+++ b/lbuilds/nasm/2.06rc5/files/build.patch
@@ -0,0 +1,69 @@
+Index: src/nasm-2.06rc5/compiler.h
+===================================================================
+--- src.orig/nasm-2.06rc5/compiler.h
++++ src/nasm-2.06rc5/compiler.h
+@@ -147,4 +147,6 @@ char *strsep(char **, const char *);
+ # define unlikely(x) (!!(x))
+ #endif
+
++#include "nasmlib.h"
++
+ #endif /* NASM_COMPILER_H */
+Index: src/nasm-2.06rc5/nasmlib.h
+===================================================================
+--- src.orig/nasm-2.06rc5/nasmlib.h
++++ src/nasm-2.06rc5/nasmlib.h
+@@ -18,6 +18,29 @@
+ #include <strings.h>
+ #endif
+
++#ifdef __TYNDUR__
++
++#define PRId32 "d"
++#define PRId64 "lld"
++
++#define PRIx8 "hhx"
++#define PRIx16 "hx"
++#define PRIx32 "x"
++#define PRIx64 "llx"
++
++#define PRIX32 "X"
++#define PRIX64 "llX"
++
++#define PRIu32 "u"
++#define PRIu64 "llu"
++
++#define INT32_MAX 0x7fffffff
++#define UINT64_C(n) n##ULL
++#define UINT32_C(n) n##U
++
++#endif
++
++
+ /*
+ * tolower table -- avoids a function call on some platforms.
+ * NOTE: unlike the tolower() function in ctype, EOF is *NOT*
+Index: src/nasm-2.06rc5/rdoff/rdfdump.c
+===================================================================
+--- src.orig/nasm-2.06rc5/rdoff/rdfdump.c
++++ src/nasm-2.06rc5/rdoff/rdfdump.c
+@@ -3,6 +3,7 @@
+ */
+
+ #include "compiler.h"
++#include "nasmlib.h"
+
+ #include <stdio.h>
+ #include <stdlib.h>
+Index: src/nasm-2.06rc5/rdoff/rdoff.c
+===================================================================
+--- src.orig/nasm-2.06rc5/rdoff/rdoff.c
++++ src/nasm-2.06rc5/rdoff/rdoff.c
+@@ -16,6 +16,7 @@
+ */
+
+ #include "compiler.h"
++#include "nasmlib.h"
+
+ #include <stdio.h>
+ #include <stdlib.h>
diff --git a/lbuilds/nasm/2.06rc5/nasm-2.06rc5.lbuild b/lbuilds/nasm/2.06rc5/nasm-2.06rc5.lbuild
new file mode 100644
index 0000000..e67083c
--- /dev/null
+++ b/lbuilds/nasm/2.06rc5/nasm-2.06rc5.lbuild
@@ -0,0 +1,49 @@
+include lutils
+include toolchain
+
+DESCRIPTION="Tools necessary to build programs"
+HOMEPAGE="http://lowlevel.brainsware.org/wiki/index.php/LOST/Pakete/Nasm"
+SRC_URI="http://www.nasm.us/pub/nasm/releasebuilds/2.06rc5/${P}.tar.bz2"
+
+LICENSE="BSD"
+
+BUILD_DEPEND=""
+RUN_DEPEND=""
+
+MY_S="${S}/${P}"
+
+src_unpack() {
+ lunpack ${P}.tar.bz2
+
+ ln -s ${F} patches
+ [ -f ${F}/series ] && ln -s ${F}/series series
+ for i in ${F}/*.patch; do
+ [ -L series ] || echo `basename $i` >> series
+ (which quilt > /dev/null 2>&1) || (patch -p1 < $i) || die "Fehler beim Anwenden von $i"
+ done
+ (which quilt > /dev/null 2>&1) && quilt push -a || die "Fehler beim Anwenden der Patches"
+}
+
+src_configure() {
+ cd ${MY_S}
+ ./configure \
+ --build=`tc-build` \
+ --host=`tc-host` \
+ --target=`tc-host` \
+ --prefix=${R} \
+ --disable-nls \
+ --disable-dependency-tracking \
+ || die "configure failed"
+}
+
+
+src_compile() {
+ cd ${MY_S}
+ lmake || die "make failed"
+}
+
+src_install() {
+ cd ${MY_S}
+ lmake INSTALLROOT="${D}" install || die "make install failed"
+ rm -r ${D}/${R}/share
+}
--
1.7.1