From 076cc5df7c9a867bf01220c2366caf6492bc4e26 Mon Sep 17 00:00:00 2001 From: Scott McCreary Date: Fri, 26 Sep 2008 19:15:50 +0000 Subject: [PATCH] Initial checkin of yasm, .bep and a simple patch to workaround configure not detecting toascii on Haiku. --- dev-lang/yasm/yasm-0.7.1-haiku.diff | 12 ++++++++++++ dev-lang/yasm/yasm-0.7.1.bep | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 dev-lang/yasm/yasm-0.7.1-haiku.diff create mode 100644 dev-lang/yasm/yasm-0.7.1.bep diff --git a/dev-lang/yasm/yasm-0.7.1-haiku.diff b/dev-lang/yasm/yasm-0.7.1-haiku.diff new file mode 100644 index 000000000..a108e7eb8 --- /dev/null +++ b/dev-lang/yasm/yasm-0.7.1-haiku.diff @@ -0,0 +1,12 @@ +diff -urN yasm-0.7.1/util.h yasm-0.7.1-haiku/util.h +--- yasm-0.7.1/util.h 2008-05-15 01:35:11.000000000 +0000 ++++ yasm-0.7.1-haiku/util.h 2008-09-26 11:19:12.000000000 +0000 +@@ -116,7 +116,7 @@ + # define USE_OUR_OWN_STRCASECMP + #endif + +-#if !defined(HAVE_TOASCII) || defined(lint) ++#if (!defined(HAVE_TOASCII) || defined(lint)) && !defined(__HAIKU__) + # define toascii(c) ((c) & 0x7F) + #endif + diff --git a/dev-lang/yasm/yasm-0.7.1.bep b/dev-lang/yasm/yasm-0.7.1.bep new file mode 100644 index 000000000..1c1a68845 --- /dev/null +++ b/dev-lang/yasm/yasm-0.7.1.bep @@ -0,0 +1,19 @@ +DESCRIPTION="Yasm assembler" +HOMEPAGE="http://www.tortall.net/projects/yasm/" +SRC_URI="http://www.tortall.net/projects/yasm/releases/yasm-0.7.1.tar.gz" +REVISION="1" +STATUS_R5="untested" +STATUS_BONE="untested" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd yasm-0.7.1 + cp /boot/home/config/share/libtool/config.guess . + cp /boot/home/config/share/libtool/config.sub . + ./configure --prefix=/boot/common LDFLAGS=-L/boot/common/lib CPPFLAG=-I/boot/common/include + make +} + +INSTALL { + make install +}