diff --git a/app-crypt/gnupg/gnupg-1.4.10.recipe b/app-crypt/gnupg/gnupg-1.4.10.recipe deleted file mode 100644 index cca4e8ad3..000000000 --- a/app-crypt/gnupg/gnupg-1.4.10.recipe +++ /dev/null @@ -1,29 +0,0 @@ -SUMMARY="The GNU project's free implementation of the OpenPGP standard" -DESCRIPTION="GnuPG is the GNU project's complete and free implementation of \ -the OpenPGP standard as defined by RFC4880 . GnuPG allows to encrypt and sign \ -your data and communication, features a versatile key management system as \ -well as access modules for all kinds of public key directories. GnuPG, also \ -known as GPG, is a command line tool with features for easy integration with \ -other applications." -HOMEPAGE="http://www.gnupg.org/" -SOURCE_URI="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.10.tar.bz2" -CHECKSUM_MD5="dcf7ed712997888d616e029637bfc303" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd gnupg-1.4.10 - libtoolize --force --copy --install - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd gnupg-1.4.10 - make install -} -LICENSE="GNU GPL v3" -COPYRIGHT="1998-2009 Free Software Foundation, Inc." diff --git a/app-crypt/gnupg/patches/gnupg-1.4.10.patch b/app-crypt/gnupg/patches/gnupg-1.4.10.patch deleted file mode 100644 index 194a713fa..000000000 --- a/app-crypt/gnupg/patches/gnupg-1.4.10.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -up gnupg-1.4.10/configure.ac.orig gnupg-1.4.10/configure.ac ---- gnupg-1.4.10/configure.ac.orig 2010-02-17 15:06:58.390594560 -0700 -+++ gnupg-1.4.10/configure.ac 2010-02-17 15:07:20.451936256 -0700 -@@ -657,6 +657,8 @@ dnl be detected. - - AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname, - [NETLIBS="-lnsl $NETLIBS"])) -+AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(network, gethostbyname, -+ [NETLIBS="-lnetwork $NETLIBS"])) - AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt, - [NETLIBS="-lsocket $NETLIBS"])) - -diff -up gnupg-1.4.10/util/dotlock.c.orig gnupg-1.4.10/util/dotlock.c ---- gnupg-1.4.10/util/dotlock.c.orig 2010-02-17 15:07:04.697040896 -0700 -+++ gnupg-1.4.10/util/dotlock.c 2010-02-17 15:07:12.601620480 -0700 -@@ -432,7 +432,11 @@ make_dotlock( DOTLOCK h, long timeout ) - { - #ifndef HAVE_DOSISH_SYSTEM - # ifndef __riscos__ -+# ifdef __HAIKU__ -+ if( !symlink(h->tname, h->lockname) ) -+# else - if( !link(h->tname, h->lockname) ) -+# endif - { - /* fixme: better use stat to check the link count */ - h->locked = 1; diff --git a/app-shells/bash/bash-4.1.recipe b/app-shells/bash/bash-4.1.recipe deleted file mode 100644 index 716a013df..000000000 --- a/app-shells/bash/bash-4.1.recipe +++ /dev/null @@ -1,27 +0,0 @@ -SUMMARY="The GNU Bourne Again Shell" -DESCRIPTION=" -Bash is an sh-compatible command language interpreter that \ -executes commands read from the standard input or from a file. Bash also \ -incorporates useful features from the Korn and C shells (ksh and csh). -" -HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html" -SOURCE_URI="ftp://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz" -CHECKSUM_MD5="9800d8724815fd84994d9be65ab5e7b8" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd bash-4.1 - ./configure - make -} - -INSTALL() -{ - cd bash-4.1 - make install DESTDIR=${DESTDIR} -} -MESSAGE="Bash does not compile as is on GCC2. Sorry. Patches from Haiku may fix this eventually." -LICENSE="GNU GPL v3" -COPYRIGHT="1989, Brian Fox; 2010, Chet Ramey" diff --git a/dev-games/flatzebra/flatzebra-0.1.3.recipe b/dev-games/flatzebra/flatzebra-0.1.3.recipe deleted file mode 100644 index d1b917b3f..000000000 --- a/dev-games/flatzebra/flatzebra-0.1.3.recipe +++ /dev/null @@ -1,27 +0,0 @@ -DESCRIPTION="A generic game engine for 2D double-buffering animation" -HOMEPAGE="http://sarrazip.com/dev/burgerspace.html" -SOURCE_URI="http://perso.b2b2c.ca/sarrazip/dev/flatzebra-0.1.3.tar.gz" -CHECKSUM_MD5="4f595c64e4ef2c82a2da4d420eacea1a" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="media-libs/libsdl >= 1.2.4 - media-libs/libsdl_image >= 1.2.2 - media-libs/libsdl_mixer >= 1.2.4" -BUILD() -{ - cd flatzebra-0.1.3 - libtoolize --force --copy --install - aclocal -I macros - autoconf - automake - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd flatzebra-0.1.3 - make install -} -LICENSE="GNU GPL v2" -COPYRIGHT="2009 Pierre Sarrazin." diff --git a/dev-games/flatzebra/patches/flatzebra-0.1.3.patch b/dev-games/flatzebra/patches/flatzebra-0.1.3.patch deleted file mode 100644 index 9a303f014..000000000 --- a/dev-games/flatzebra/patches/flatzebra-0.1.3.patch +++ /dev/null @@ -1,86 +0,0 @@ -diff -Naur flatzebra-0.1.3/flatzebra-0.1.spec flatzebra-0.1.3-haiku/flatzebra-0.1.spec ---- flatzebra-0.1.3/flatzebra-0.1.spec 2009-06-22 01:14:32.000000000 +0000 -+++ flatzebra-0.1.3-haiku/flatzebra-0.1.spec 1970-01-01 00:00:00.000000000 +0000 -@@ -1,82 +0,0 @@ --# $Id: flatzebra-0.1.spec.in,v 1.3 2009/02/27 02:17:20 sarrazip Exp $ --# RPM specification file. -- --# Release number can be specified with rpm --define 'rel SOMETHING' ... --# If no such --define is used, the release number is 1. --# --# Source archive's extension can be specified with rpm --define 'srcext .foo' --# where .foo is the source archive's actual extension. --# To compile an RPM from a .bz2 source archive, give the command --# rpmbuild -ta --define 'srcext .bz2' flatzebra-0.1.3.tar.bz2 --# --%if %{?rel:0}%{!?rel:1} --%define rel 1 --%endif --%if %{?srcext:0}%{!?srcext:1} --%define srcext .gz --%endif -- --Summary: A generic game engine for 2D double-buffering animation --Name: flatzebra --Version: 0.1.3 --Release: %{rel} --License: GPL --Group: Amusements/Games --Source: %{name}-%{version}.tar%{srcext} --URL: http://sarrazip.com/dev/burgerspace.html --Prefix: /usr --BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root --BuildRequires: SDL-devel >= 1.2.4 --BuildRequires: SDL_image-devel >= 1.2.2 --BuildRequires: SDL_mixer-devel >= 1.2.4 --Requires: SDL >= 1.2.4 --Requires: SDL_image >= 1.2.2 --Requires: SDL_mixer >= 1.2.4 -- --%description --Generic Game Engine library used by BurgerSpace et al. -- --%description -l fr --Moteur de jeu générique utilisé par BurgerSpace et al. -- --%package devel --Summary: C++ header files for the flatzebra library --Group: Development/Libraries --Requires: flatzebra = 0.1.3 -- --%description devel --C++ header files for the flatzebra library. -- --%description -l fr devel --En-têtes C++ pour la librairie flatzebra. -- -- --%prep --%setup -q -- --%build --%configure --make %{?_smp_mflags} -- --%install --rm -fR "$RPM_BUILD_ROOT" --make install DESTDIR="$RPM_BUILD_ROOT" INSTALL="%{__install} -p" -- --%clean --rm -fR $RPM_BUILD_ROOT -- --%post -p /sbin/ldconfig -- --%postun -p /sbin/ldconfig -- --%files --%defattr(-, root, root) --%{_libdir}/lib*.so.* --%doc %{_defaultdocdir}/* -- --%files devel --%defattr(-, root, root) --%{_includedir}/* --%{_libdir}/lib*.so --%{_prefix}/lib/lib*.la --%{_libdir}/pkgconfig/* diff --git a/dev-lang/fpc/fpc-2.4.0.recipe b/dev-lang/fpc/fpc-2.4.0.recipe deleted file mode 100644 index 10235e3c7..000000000 --- a/dev-lang/fpc/fpc-2.4.0.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="Free Pascal Compiler" -HOMEPAGE="http://www.freepascal.org" -SOURCE_URI="ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/source/fpc-2.4.0.source.tar.gz" -CHECKSUM_MD5="34340820710239bea2ceca7f43ef8cab" -REVISION="1" -STATUS_HAIKU="unstable" -DEPEND="" - -BUILD() -{ - cd fpc-2.4.0 - make - -} - -INSTALL() -{ - cd fpc-2.4.0 - make install - -} -#LICENSE="" -#COPYRIGHT="" diff --git a/dev-lang/fpc/fpc-2.6.0.recipe b/dev-lang/fpc/fpc-2.6.0.recipe deleted file mode 100644 index fc21f572e..000000000 --- a/dev-lang/fpc/fpc-2.6.0.recipe +++ /dev/null @@ -1,41 +0,0 @@ -DESCRIPTION="An open source compiler for pascal and object pascal" -HOMEPAGE="http://www.freepascal.org" -SOURCE_URI="ftp://ftp.freepascal.org/pub/fpc/dist/2.6.0/source/fpc-2.6.0.source.tar.gz - http://fpc.planetmirror.com/pub/fpc/dist/2.6.0/source/fpc-2.6.0.source.tar.gz - ftp://gd.tuwien.ac.at/languages/pascal/fpc/dist/2.6.0/source/fpc-2.6.0.source.tar.gz - ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.6.0/source/fpc-2.6.0.source.tar.gz - http://mirror.mirimar.net/freepascal/dist/2.6.0/source/fpc-2.6.0.source.tar.gz - ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/source/fpc-2.6.0.source.tar.gz - ftp://ftp.no.freepascal.org/pub/fpc/dist/2.6.0/source/fpc-2.6.0.source.tar.gz - ftp://ftp.chg.ru/pub/lang/pascal/fpc/dist/2.6.0/source/fpc-2.6.0.source.tar.gz" - -CHECKSUM_MD5="0edf0d6f52e1e3fd6ef6836431f4d13b" -REVISION="1" -STATUS_HAIKU="untested" -DEPEND="dev-lang/fpc" - -BUILD() -{ - cd fpc-2.6.0 - make build -} - -INSTALL() -{ - cd fpc-2.6.0 - make install INSTALL_PREFIX=${DESTDIR}`finddir B_USER_CONFIG_DIRECTORY` \ - FPCDIR=${DESTDIR}`finddir B_USER_LIB_DIRECTORY`/fpc/2.6.0 - # Make link to the ppc386 executable - ln -fs ${DESTDIR}`finddir B_USER_LIB_DIRECTORY`/fpc/2.6.0/ppc386 \ - ${DESTDIR}`finddir B_USER_CONFIG_DIRECTORY`/bin -} - -TEST() -{ - cd fpc-2.6.0/tests - make full TEST_FPC=${DESTDIR}`finddir B_USER_CONFIG_DIRECTORY`/bin/fpc -} - -LICENSE="GNU LGPL v3 - GNU GPL v3" -COPYRIGHT="1993-2011 by Florian Klaempfl" diff --git a/dev-lang/v8/patches/v8-r13067.patch b/dev-lang/v8/patches/v8-r13067.patch deleted file mode 100644 index 035b9ded4..000000000 --- a/dev-lang/v8/patches/v8-r13067.patch +++ /dev/null @@ -1,1381 +0,0 @@ -diff -Naur v8-r13067/build/common.gypi v8-r13067-haiku/build/common.gypi ---- v8-r13067/build/common.gypi 2012-12-24 04:17:35.255590400 +0000 -+++ v8-r13067-haiku/build/common.gypi 2012-12-24 04:10:09.000000000 +0000 -@@ -277,7 +277,7 @@ - }, - }], - ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ -- or OS=="netbsd"', { -+ or OS=="netbsd" or OS=="haiku"', { - 'conditions': [ - [ 'v8_no_strict_aliasing==1', { - 'cflags': [ '-fno-strict-aliasing' ], -@@ -288,7 +288,7 @@ - 'defines': [ '__C99FEATURES__=1' ], # isinf() etc. - }], - ['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ -- or OS=="netbsd" or OS=="mac" or OS=="android") and \ -+ or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="haiku") and \ - (v8_target_arch=="arm" or v8_target_arch=="ia32" or \ - v8_target_arch=="mipsel")', { - # Check whether the host compiler and target compiler support the -@@ -360,7 +360,8 @@ - ['v8_enable_extra_checks==1', { - 'defines': ['ENABLE_EXTRA_CHECKS',], - }], -- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd"', { -+ ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ -+ or OS=="haiku"', { - 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', - '-Wnon-virtual-dtor', '-Woverloaded-virtual' ], - }], -@@ -389,7 +390,7 @@ - 'defines': ['ENABLE_EXTRA_CHECKS',], - }], - ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" \ -- or OS=="android"', { -+ or OS=="android" or OS=="haiku"', { - 'cflags!': [ - '-O2', - '-Os', -diff -Naur v8-r13067/build/standalone.gypi v8-r13067-haiku/build/standalone.gypi ---- v8-r13067/build/standalone.gypi 2012-12-24 04:17:35.258473984 +0000 -+++ v8-r13067-haiku/build/standalone.gypi 2012-12-24 04:10:09.000000000 +0000 -@@ -90,7 +90,7 @@ - }, - 'conditions': [ - ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ -- or OS=="netbsd"', { -+ or OS=="netbsd" or OS=="haiku"', { - 'target_defaults': { - 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', - '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', -@@ -100,6 +100,10 @@ - [ 'OS=="linux"', { - 'cflags': [ '-ansi' ], - }], -+ [ 'OS=="haiku"', { -+ 'cflags!': [ '-pthread' ], -+ 'ldflags!': [ '-pthread' ], -+ }], - [ 'visibility=="hidden"', { - 'cflags': [ '-fvisibility=hidden' ], - }], -diff -Naur v8-r13067/src/atomicops.h v8-r13067-haiku/src/atomicops.h ---- v8-r13067/src/atomicops.h 2012-12-24 04:17:34.352583680 +0000 -+++ v8-r13067-haiku/src/atomicops.h 2012-12-24 04:10:09.000000000 +0000 -@@ -69,7 +69,7 @@ - - // Use AtomicWord for a machine-sized pointer. It will use the Atomic32 or - // Atomic64 routines below, depending on your architecture. --#if defined(__OpenBSD__) && defined(__i386__) -+#if (defined(__OpenBSD__) || defined(__HAIKU__)) && defined(__i386__) - typedef Atomic32 AtomicWord; - #else - typedef intptr_t AtomicWord; -diff -Naur v8-r13067/src/d8.gyp v8-r13067-haiku/src/d8.gyp ---- v8-r13067/src/d8.gyp 2012-12-24 04:17:34.042467328 +0000 -+++ v8-r13067-haiku/src/d8.gyp 2012-12-24 04:10:09.000000000 +0000 -@@ -62,7 +62,8 @@ - 'sources': [ 'd8-readline.cc' ], - }], - ['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ -- or OS=="openbsd" or OS=="solaris" or OS=="android")', { -+ or OS=="openbsd" or OS=="solaris" or OS=="android" \ -+ or OS=="haiku")', { - 'sources': [ 'd8-posix.cc', ] - }], - [ 'OS=="win"', { -diff -Naur v8-r13067/src/globals.h v8-r13067-haiku/src/globals.h ---- v8-r13067/src/globals.h 2012-12-24 04:17:34.246153216 +0000 -+++ v8-r13067-haiku/src/globals.h 2012-12-24 04:10:09.000000000 +0000 -@@ -178,7 +178,12 @@ - #endif - #else // V8_HOST_ARCH_64_BIT - #define V8_INTPTR_C(x) (x) -+#if defined(__HAIKU__) -+// (u)intptr_t is long on Haiku -+#define V8_PTR_PREFIX "l" -+#else - #define V8_PTR_PREFIX "" -+#endif - #endif // V8_HOST_ARCH_64_BIT - - // The following macro works on both 32 and 64-bit platforms. -diff -Naur v8-r13067/src/ia32/deoptimizer-ia32.cc v8-r13067-haiku/src/ia32/deoptimizer-ia32.cc ---- v8-r13067/src/ia32/deoptimizer-ia32.cc 2012-12-24 04:17:29.666632192 +0000 -+++ v8-r13067-haiku/src/ia32/deoptimizer-ia32.cc 2012-12-24 04:10:09.000000000 +0000 -@@ -354,7 +354,7 @@ - PrintF("[on-stack replacement: begin 0x%08" V8PRIxPTR " ", - reinterpret_cast(function_)); - function_->PrintName(); -- PrintF(" => node=%u, frame=%d->%d, ebp:esp=0x%08x:0x%08x]\n", -+ PrintF(" => node=%u, frame=%d->%d, ebp:esp=0x%08" V8PRIxPTR ":0x%08" V8PRIxPTR "]\n", - ast_id, - input_frame_size, - output_frame_size, -@@ -468,7 +468,7 @@ - ok ? "finished" : "aborted", - reinterpret_cast(function_)); - function_->PrintName(); -- PrintF(" => pc=0x%0x]\n", output_[0]->GetPc()); -+ PrintF(" => pc=0x%0" V8PRIxPTR "]\n", output_[0]->GetPc()); - } - } - -@@ -514,7 +514,7 @@ - intptr_t callers_pc = output_[frame_index - 1]->GetPc(); - output_frame->SetFrameSlot(output_offset, callers_pc); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's pc\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; caller's pc\n", - top_address + output_offset, output_offset, callers_pc); - } - -@@ -525,7 +525,7 @@ - intptr_t fp_value = top_address + output_offset; - output_frame->SetFp(fp_value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's fp\n", -+ PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08" V8PRIxPTR " ; caller's fp\n", - fp_value, output_offset, value); - } - -@@ -535,7 +535,7 @@ - Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)); - output_frame->SetFrameSlot(output_offset, context); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; context (adaptor sentinel)\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; context (adaptor sentinel)\n", - top_address + output_offset, output_offset, context); - } - -@@ -544,7 +544,7 @@ - value = reinterpret_cast(function); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; function\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; function\n", - top_address + output_offset, output_offset, value); - } - -@@ -553,7 +553,7 @@ - value = reinterpret_cast(Smi::FromInt(height - 1)); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; argc (%d)\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; argc (%d)\n", - top_address + output_offset, output_offset, value, height - 1); - } - -@@ -612,7 +612,7 @@ - intptr_t callers_pc = output_[frame_index - 1]->GetPc(); - output_frame->SetFrameSlot(output_offset, callers_pc); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's pc\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; caller's pc\n", - top_address + output_offset, output_offset, callers_pc); - } - -@@ -623,7 +623,7 @@ - intptr_t fp_value = top_address + output_offset; - output_frame->SetFp(fp_value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's fp\n", -+ PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08" V8PRIxPTR " ; caller's fp\n", - fp_value, output_offset, value); - } - -@@ -632,7 +632,7 @@ - value = output_[frame_index - 1]->GetContext(); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; context\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; context\n", - top_address + output_offset, output_offset, value); - } - -@@ -641,7 +641,7 @@ - value = reinterpret_cast(Smi::FromInt(StackFrame::CONSTRUCT)); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; function (construct sentinel)\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; function (construct sentinel)\n", - top_address + output_offset, output_offset, value); - } - -@@ -650,7 +650,7 @@ - value = reinterpret_cast(construct_stub); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; code object\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; code object\n", - top_address + output_offset, output_offset, value); - } - -@@ -659,7 +659,7 @@ - value = reinterpret_cast(Smi::FromInt(height - 1)); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; argc (%d)\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; argc (%d)\n", - top_address + output_offset, output_offset, value, height - 1); - } - -@@ -669,7 +669,7 @@ - value = output_frame->GetFrameSlot(output_frame_size - kPointerSize); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; allocated receiver\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; allocated receiver\n", - top_address + output_offset, output_offset, value); - } - -@@ -894,7 +894,7 @@ - } - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's pc\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; caller's pc\n", - top_address + output_offset, output_offset, value); - } - -@@ -917,7 +917,7 @@ - output_frame->SetFp(fp_value); - if (is_topmost) output_frame->SetRegister(ebp.code(), fp_value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; caller's fp\n", -+ PrintF(" 0x%08" V8PRIxPTR ": [top + %d] <- 0x%08" V8PRIxPTR " ; caller's fp\n", - fp_value, output_offset, value); - } - ASSERT(!is_bottommost || !has_alignment_padding_ || -@@ -937,7 +937,7 @@ - output_frame->SetContext(value); - if (is_topmost) output_frame->SetRegister(esi.code(), value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; context\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; context\n", - top_address + output_offset, output_offset, value); - } - -@@ -950,7 +950,7 @@ - ASSERT(!is_bottommost || input_->GetFrameSlot(input_offset) == value); - output_frame->SetFrameSlot(output_offset, value); - if (FLAG_trace_deopt) { -- PrintF(" 0x%08x: [top + %d] <- 0x%08x ; function\n", -+ PrintF(" 0x%08x: [top + %d] <- 0x%08" V8PRIxPTR " ; function\n", - top_address + output_offset, output_offset, value); - } - -diff -Naur v8-r13067/src/platform-haiku.cc v8-r13067-haiku/src/platform-haiku.cc ---- v8-r13067/src/platform-haiku.cc 1970-01-01 00:00:00.000000000 +0000 -+++ v8-r13067-haiku/src/platform-haiku.cc 2012-12-24 04:10:09.000000000 +0000 -@@ -0,0 +1,898 @@ -+// Copyright 2012 the V8 project authors. All rights reserved. -+// Redistribution and use in source and binary forms, with or without -+// modification, are permitted provided that the following conditions are -+// met: -+// -+// * Redistributions of source code must retain the above copyright -+// notice, this list of conditions and the following disclaimer. -+// * Redistributions in binary form must reproduce the above -+// copyright notice, this list of conditions and the following -+// disclaimer in the documentation and/or other materials provided -+// with the distribution. -+// * Neither the name of Google Inc. nor the names of its -+// contributors may be used to endorse or promote products derived -+// from this software without specific prior written permission. -+// -+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -+ -+// Platform specific code for Haiku goes here. For the POSIX comaptible parts -+// the implementation is in platform-posix.cc. -+ -+#include -+#include -+#include -+#include -+#include -+#include -+#include -+#include // mmap & munmap -+#include // mmap & munmap -+#include // open -+#include // open -+#include // sysconf -+#include // index -+#include -+#include -+#include -+ -+#undef MAP_TYPE -+ -+#include "v8.h" -+ -+#include "platform-posix.h" -+#include "platform.h" -+#include "v8threads.h" -+#include "vm-state-inl.h" -+ -+ -+namespace v8 { -+namespace internal { -+ -+// pthread_t's are pointers to structs on Haiku -+static const pthread_t kNoThread = NULL; -+ -+ -+double ceiling(double x) { -+ return ceil(x); -+} -+ -+ -+static Mutex* limit_mutex = NULL; -+ -+ -+void OS::PostSetUp() { -+ POSIXPostSetUp(); -+} -+ -+ -+uint64_t OS::CpuFeaturesImpliedByPlatform() { -+ return 0; // Haiku runs on anything. -+} -+ -+ -+int OS::ActivationFrameAlignment() { -+ // With gcc 4.4 the tree vectorization optimizer can generate code -+ // that requires 16 byte alignment such as movdqa on x86. -+ return 16; -+} -+ -+ -+void OS::ReleaseStore(volatile AtomicWord* ptr, AtomicWord value) { -+#if (defined(V8_TARGET_ARCH_ARM) && defined(__arm__)) || \ -+ (defined(V8_TARGET_ARCH_MIPS) && defined(__mips__)) -+ // Only use on ARM or MIPS hardware. -+ MemoryBarrier(); -+#else -+ __asm__ __volatile__("" : : : "memory"); -+ // An x86 store acts as a release barrier. -+#endif -+ *ptr = value; -+} -+ -+ -+const char* OS::LocalTimezone(double time) { -+ if (isnan(time)) return ""; -+ time_t tv = static_cast(floor(time/msPerSecond)); -+ struct tm* t = localtime(&tv); -+ if (NULL == t) return ""; -+ return t->tm_zone; -+} -+ -+ -+double OS::LocalTimeOffset() { -+ time_t tv = time(NULL); -+ struct tm* t = localtime(&tv); -+ // tm_gmtoff includes any daylight savings offset, so subtract it. -+ return static_cast(t->tm_gmtoff * msPerSecond - -+ (t->tm_isdst > 0 ? 3600 * msPerSecond : 0)); -+} -+ -+ -+// We keep the lowest and highest addresses mapped as a quick way of -+// determining that pointers are outside the heap (used mostly in assertions -+// and verification). The estimate is conservative, i.e., not all addresses in -+// 'allocated' space are actually allocated to our heap. The range is -+// [lowest, highest), inclusive on the low and and exclusive on the high end. -+static void* lowest_ever_allocated = reinterpret_cast(-1); -+static void* highest_ever_allocated = reinterpret_cast(0); -+ -+ -+static void UpdateAllocatedSpaceLimits(void* address, int size) { -+ ASSERT(limit_mutex != NULL); -+ ScopedLock lock(limit_mutex); -+ -+ lowest_ever_allocated = Min(lowest_ever_allocated, address); -+ highest_ever_allocated = -+ Max(highest_ever_allocated, -+ reinterpret_cast(reinterpret_cast(address) + size)); -+} -+ -+ -+bool OS::IsOutsideAllocatedSpace(void* address) { -+ return address < lowest_ever_allocated || address >= highest_ever_allocated; -+} -+ -+ -+size_t OS::AllocateAlignment() { -+ return sysconf(_SC_PAGESIZE); -+} -+ -+ -+void* OS::Allocate(const size_t requested, -+ size_t* allocated, -+ bool is_executable) { -+ const size_t msize = RoundUp(requested, AllocateAlignment()); -+ int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); -+ void* addr = OS::GetRandomMmapAddr(); -+ void* mbase = mmap(addr, msize, prot, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); -+ if (mbase == MAP_FAILED) { -+ LOG(i::Isolate::Current(), -+ StringEvent("OS::Allocate", "mmap failed")); -+ return NULL; -+ } -+ *allocated = msize; -+ UpdateAllocatedSpaceLimits(mbase, msize); -+ return mbase; -+} -+ -+ -+void OS::Free(void* address, const size_t size) { -+ // TODO(1240712): munmap has a return value which is ignored here. -+ int result = munmap(address, size); -+ USE(result); -+ ASSERT(result == 0); -+} -+ -+ -+void OS::Sleep(int milliseconds) { -+ unsigned int ms = static_cast(milliseconds); -+ usleep(1000 * ms); -+} -+ -+ -+void OS::Abort() { -+ // Redirect to std abort to signal abnormal program termination. -+ if (FLAG_break_on_abort) { -+ DebugBreak(); -+ } -+ abort(); -+} -+ -+ -+void OS::DebugBreak() { -+// TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, -+// which is the architecture of generated code). -+#if (defined(__arm__) || defined(__thumb__)) -+# if defined(CAN_USE_ARMV5_INSTRUCTIONS) -+ asm("bkpt 0"); -+# endif -+#elif defined(__mips__) -+ asm("break"); -+#else -+ asm("int $3"); -+#endif -+} -+ -+ -+class PosixMemoryMappedFile : public OS::MemoryMappedFile { -+ public: -+ PosixMemoryMappedFile(FILE* file, void* memory, int size) -+ : file_(file), memory_(memory), size_(size) { } -+ virtual ~PosixMemoryMappedFile(); -+ virtual void* memory() { return memory_; } -+ virtual int size() { return size_; } -+ private: -+ FILE* file_; -+ void* memory_; -+ int size_; -+}; -+ -+ -+OS::MemoryMappedFile* OS::MemoryMappedFile::open(const char* name) { -+ FILE* file = fopen(name, "r+"); -+ if (file == NULL) return NULL; -+ -+ fseek(file, 0, SEEK_END); -+ int size = ftell(file); -+ -+ void* memory = -+ mmap(OS::GetRandomMmapAddr(), -+ size, -+ PROT_READ | PROT_WRITE, -+ MAP_SHARED, -+ fileno(file), -+ 0); -+ return new PosixMemoryMappedFile(file, memory, size); -+} -+ -+ -+OS::MemoryMappedFile* OS::MemoryMappedFile::create(const char* name, int size, -+ void* initial) { -+ FILE* file = fopen(name, "w+"); -+ if (file == NULL) return NULL; -+ int result = fwrite(initial, size, 1, file); -+ if (result < 1) { -+ fclose(file); -+ return NULL; -+ } -+ void* memory = -+ mmap(OS::GetRandomMmapAddr(), -+ size, -+ PROT_READ | PROT_WRITE, -+ MAP_SHARED, -+ fileno(file), -+ 0); -+ return new PosixMemoryMappedFile(file, memory, size); -+} -+ -+ -+PosixMemoryMappedFile::~PosixMemoryMappedFile() { -+ if (memory_) OS::Free(memory_, size_); -+ fclose(file_); -+} -+ -+ -+void OS::LogSharedLibraryAddresses() { -+ // TODO -+ // Loop through images (get_next_image_info()) and print data/text -+ // addresses. -+} -+ -+ -+void OS::SignalCodeMovingGC() { -+} -+ -+ -+int OS::StackWalk(Vector frames) { -+ // dladdr -+ return 0; -+} -+ -+// No MAP_NORESERVE on Haiku means we can't reserve without -+// committing or decommit at all. -+#define MAP_NORESERVE 0 -+ -+// Constants used for mmap. -+static const int kMmapFd = -1; -+static const int kMmapFdOffset = 0; -+ -+VirtualMemory::VirtualMemory() : address_(NULL), size_(0) { } -+ -+VirtualMemory::VirtualMemory(size_t size) { -+ address_ = ReserveRegion(size); -+ size_ = size; -+} -+ -+ -+VirtualMemory::VirtualMemory(size_t size, size_t alignment) -+ : address_(NULL), size_(0) { -+ ASSERT(IsAligned(alignment, static_cast(OS::AllocateAlignment()))); -+ size_t request_size = RoundUp(size + alignment, -+ static_cast(OS::AllocateAlignment())); -+ void* reservation = mmap(OS::GetRandomMmapAddr(), -+ request_size, -+ PROT_NONE, -+ MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -+ kMmapFd, -+ kMmapFdOffset); -+ if (reservation == MAP_FAILED) return; -+ -+ Address base = static_cast
(reservation); -+ Address aligned_base = RoundUp(base, alignment); -+ ASSERT_LE(base, aligned_base); -+ -+ // Unmap extra memory reserved before and after the desired block. -+ if (aligned_base != base) { -+ size_t prefix_size = static_cast(aligned_base - base); -+ OS::Free(base, prefix_size); -+ request_size -= prefix_size; -+ } -+ -+ size_t aligned_size = RoundUp(size, OS::AllocateAlignment()); -+ ASSERT_LE(aligned_size, request_size); -+ -+ if (aligned_size != request_size) { -+ size_t suffix_size = request_size - aligned_size; -+ OS::Free(aligned_base + aligned_size, suffix_size); -+ request_size -= suffix_size; -+ } -+ -+ ASSERT(aligned_size == request_size); -+ -+ address_ = static_cast(aligned_base); -+ size_ = aligned_size; -+} -+ -+ -+VirtualMemory::~VirtualMemory() { -+ if (IsReserved()) { -+ bool result = ReleaseRegion(address(), size()); -+ ASSERT(result); -+ USE(result); -+ } -+} -+ -+ -+bool VirtualMemory::IsReserved() { -+ return address_ != NULL; -+} -+ -+ -+void VirtualMemory::Reset() { -+ address_ = NULL; -+ size_ = 0; -+} -+ -+ -+bool VirtualMemory::Commit(void* address, size_t size, bool is_executable) { -+ return CommitRegion(address, size, is_executable); -+} -+ -+ -+bool VirtualMemory::Uncommit(void* address, size_t size) { -+ return UncommitRegion(address, size); -+} -+ -+ -+bool VirtualMemory::Guard(void* address) { -+ OS::Guard(address, OS::CommitPageSize()); -+ return true; -+} -+ -+ -+void* VirtualMemory::ReserveRegion(size_t size) { -+ void* result = mmap(OS::GetRandomMmapAddr(), -+ size, -+ PROT_NONE, -+ MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -+ kMmapFd, -+ kMmapFdOffset); -+ -+ if (result == MAP_FAILED) return NULL; -+ -+ return result; -+} -+ -+ -+bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) { -+ int prot = PROT_READ | PROT_WRITE | (is_executable ? PROT_EXEC : 0); -+ if (MAP_FAILED == mmap(base, -+ size, -+ prot, -+ MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -+ kMmapFd, -+ kMmapFdOffset)) { -+ return false; -+ } -+ -+ UpdateAllocatedSpaceLimits(base, size); -+ return true; -+} -+ -+ -+bool VirtualMemory::UncommitRegion(void* base, size_t size) { -+ return mmap(base, -+ size, -+ PROT_NONE, -+ MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_FIXED, -+ kMmapFd, -+ kMmapFdOffset) != MAP_FAILED; -+} -+ -+ -+bool VirtualMemory::ReleaseRegion(void* base, size_t size) { -+ return munmap(base, size) == 0; -+} -+ -+ -+bool VirtualMemory::HasLazyCommits() { -+ return true; -+} -+ -+ -+class Thread::PlatformData : public Malloced { -+ public: -+ PlatformData() : thread_(kNoThread) {} -+ -+ pthread_t thread_; // Thread handle for pthread. -+}; -+ -+Thread::Thread(const Options& options) -+ : data_(new PlatformData()), -+ stack_size_(options.stack_size()) { -+ set_name(options.name()); -+} -+ -+ -+Thread::~Thread() { -+ delete data_; -+} -+ -+ -+static void* ThreadEntry(void* arg) { -+ Thread* thread = reinterpret_cast(arg); -+ thread->data()->thread_ = pthread_self(); -+ ASSERT(thread->data()->thread_ != kNoThread); -+ thread->Run(); -+ return NULL; -+} -+ -+ -+void Thread::set_name(const char* name) { -+ strncpy(name_, name, sizeof(name_)); -+ name_[sizeof(name_) - 1] = '\0'; -+} -+ -+ -+void Thread::Start() { -+ pthread_attr_t* attr_ptr = NULL; -+ pthread_attr_t attr; -+ if (stack_size_ > 0) { -+ pthread_attr_init(&attr); -+ pthread_attr_setstacksize(&attr, static_cast(stack_size_)); -+ attr_ptr = &attr; -+ } -+ int result = pthread_create(&data_->thread_, attr_ptr, ThreadEntry, this); -+ CHECK_EQ(0, result); -+ ASSERT(data_->thread_ != kNoThread); -+} -+ -+ -+void Thread::Join() { -+ pthread_join(data_->thread_, NULL); -+} -+ -+ -+Thread::LocalStorageKey Thread::CreateThreadLocalKey() { -+ pthread_key_t key; -+ int result = pthread_key_create(&key, NULL); -+ USE(result); -+ ASSERT(result == 0); -+ return static_cast(key); -+} -+ -+ -+void Thread::DeleteThreadLocalKey(LocalStorageKey key) { -+ pthread_key_t pthread_key = static_cast(key); -+ int result = pthread_key_delete(pthread_key); -+ USE(result); -+ ASSERT(result == 0); -+} -+ -+ -+void* Thread::GetThreadLocal(LocalStorageKey key) { -+ pthread_key_t pthread_key = static_cast(key); -+ return pthread_getspecific(pthread_key); -+} -+ -+ -+void Thread::SetThreadLocal(LocalStorageKey key, void* value) { -+ pthread_key_t pthread_key = static_cast(key); -+ pthread_setspecific(pthread_key, value); -+} -+ -+ -+void Thread::YieldCPU() { -+ sched_yield(); -+} -+ -+ -+class HaikuMutex : public Mutex { -+ public: -+ HaikuMutex() { -+ pthread_mutexattr_t attrs; -+ int result = pthread_mutexattr_init(&attrs); -+ ASSERT(result == 0); -+ result = pthread_mutexattr_settype(&attrs, PTHREAD_MUTEX_RECURSIVE); -+ ASSERT(result == 0); -+ result = pthread_mutex_init(&mutex_, &attrs); -+ ASSERT(result == 0); -+ USE(result); -+ } -+ -+ virtual ~HaikuMutex() { pthread_mutex_destroy(&mutex_); } -+ -+ virtual int Lock() { -+ int result = pthread_mutex_lock(&mutex_); -+ return result; -+ } -+ -+ virtual int Unlock() { -+ int result = pthread_mutex_unlock(&mutex_); -+ return result; -+ } -+ -+ virtual bool TryLock() { -+ int result = pthread_mutex_trylock(&mutex_); -+ // Return false if the lock is busy and locking failed. -+ if (result == EBUSY) { -+ return false; -+ } -+ ASSERT(result == 0); // Verify no other errors. -+ return true; -+ } -+ -+ private: -+ pthread_mutex_t mutex_; // Pthread mutex for POSIX platforms. -+}; -+ -+ -+Mutex* OS::CreateMutex() { -+ return new HaikuMutex(); -+} -+ -+ -+class HaikuSemaphore : public Semaphore { -+ public: -+ explicit HaikuSemaphore(int count) { sem_ = create_sem(count, ""); } -+ virtual ~HaikuSemaphore() { delete_sem(sem_); } -+ -+ virtual void Wait(); -+ virtual bool Wait(int timeout); -+ virtual void Signal() { release_sem(sem_); } -+ private: -+ sem_id sem_; -+}; -+ -+ -+void HaikuSemaphore::Wait() { -+ while (true) { -+ int result = acquire_sem(sem_); -+ if (result == B_NO_ERROR) return; // Successfully got semaphore. -+ CHECK(result == B_INTERRUPTED); // Signal caused spurious wakeup. -+ } -+} -+ -+ -+#ifndef TIMEVAL_TO_TIMESPEC -+#define TIMEVAL_TO_TIMESPEC(tv, ts) do { \ -+ (ts)->tv_sec = (tv)->tv_sec; \ -+ (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -+} while (false) -+#endif -+ -+ -+bool HaikuSemaphore::Wait(int timeout) { -+ // Wait for semaphore signalled or timeout. -+ while (true) { -+ int result = acquire_sem_etc(sem_, 1, B_RELATIVE_TIMEOUT, timeout); -+ if (result == B_NO_ERROR) return true; // Successfully got semaphore. -+ if (result == B_TIMED_OUT || result == B_WOULD_BLOCK) return false; // Timeout. -+ CHECK(result == B_INTERRUPTED); // Signal caused spurious wakeup. -+ } -+} -+ -+ -+Semaphore* OS::CreateSemaphore(int count) { -+ return new HaikuSemaphore(count); -+} -+ -+ -+static pthread_t GetThreadID() { -+ return pthread_self(); -+} -+ -+ -+static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { -+ USE(info); -+ if (signal != SIGPROF) return; -+ -+ Isolate* isolate = Isolate::UncheckedCurrent(); -+ if (isolate == NULL || !isolate->IsInitialized() || !isolate->IsInUse()) { -+ // We require a fully initialized and entered isolate. -+ return; -+ } -+ if (v8::Locker::IsActive() && -+ !isolate->thread_manager()->IsLockedByCurrentThread()) { -+ return; -+ } -+ -+ Sampler* sampler = isolate->logger()->sampler(); -+ if (sampler == NULL || !sampler->IsActive()) return; -+ -+ TickSample sample_obj; -+ TickSample* sample = CpuProfiler::StartTickSampleEvent(isolate); -+ if (sample == NULL) sample = &sample_obj; -+ -+ // Extracting the sample from the context is extremely machine dependent. -+ ucontext_t* ucontext = reinterpret_cast(context); -+ mcontext_t& mcontext = ucontext->uc_mcontext; -+ sample->state = isolate->current_vm_state(); -+#if V8_HOST_ARCH_IA32 -+ sample->pc = reinterpret_cast
(mcontext.eip); -+ sample->sp = reinterpret_cast
(mcontext.esp); -+ sample->fp = reinterpret_cast
(mcontext.ebp); -+#elif V8_HOST_ARCH_X64 -+ sample->pc = reinterpret_cast
(mcontext.rip); -+ sample->sp = reinterpret_cast
(mcontext.rsp); -+ sample->fp = reinterpret_cast
(mcontext.rbp); -+#elif V8_HOST_ARCH_ARM -+ sample->pc = reinterpret_cast
(mcontext.r15); -+ sample->sp = reinterpret_cast
(mcontext.r13); -+ sample->fp = reinterpret_cast
(mcontext.r11); -+#elif V8_HOST_ARCH_MIPS -+ #error TODO -+#endif // V8_HOST_ARCH_* -+ sampler->SampleStack(sample); -+ sampler->Tick(sample); -+ CpuProfiler::FinishTickSampleEvent(isolate); -+} -+ -+ -+class CpuProfilerSignalHandler { -+ public: -+ static void SetUp() { if (!mutex_) mutex_ = OS::CreateMutex(); } -+ static void TearDown() { delete mutex_; } -+ -+ static void InstallSignalHandler() { -+ struct sigaction sa; -+ ScopedLock lock(mutex_); -+ if (signal_handler_installed_counter_ > 0) { -+ signal_handler_installed_counter_++; -+ return; -+ } -+ sa.sa_sigaction = ProfilerSignalHandler; -+ sigemptyset(&sa.sa_mask); -+ sa.sa_flags = SA_RESTART | SA_SIGINFO; -+ if (sigaction(SIGPROF, &sa, &old_signal_handler_) == 0) { -+ signal_handler_installed_counter_++; -+ } -+ } -+ -+ static void RestoreSignalHandler() { -+ ScopedLock lock(mutex_); -+ if (signal_handler_installed_counter_ == 0) -+ return; -+ if (signal_handler_installed_counter_ == 1) { -+ sigaction(SIGPROF, &old_signal_handler_, 0); -+ } -+ signal_handler_installed_counter_--; -+ } -+ -+ static bool signal_handler_installed() { -+ return signal_handler_installed_counter_ > 0; -+ } -+ -+ private: -+ static int signal_handler_installed_counter_; -+ static struct sigaction old_signal_handler_; -+ static Mutex* mutex_; -+}; -+ -+ -+int CpuProfilerSignalHandler::signal_handler_installed_counter_ = 0; -+struct sigaction CpuProfilerSignalHandler::old_signal_handler_; -+Mutex* CpuProfilerSignalHandler::mutex_ = NULL; -+ -+ -+class Sampler::PlatformData : public Malloced { -+ public: -+ PlatformData() : vm_tid_(GetThreadID()) {} -+ -+ void SendProfilingSignal() { -+ if (!CpuProfilerSignalHandler::signal_handler_installed()) return; -+ pthread_kill(vm_tid_, SIGPROF); -+ } -+ -+ private: -+ const pthread_t vm_tid_; -+}; -+ -+ -+class SignalSender : public Thread { -+ public: -+ enum SleepInterval { -+ HALF_INTERVAL, -+ FULL_INTERVAL -+ }; -+ -+ static const int kSignalSenderStackSize = 64 * KB; -+ -+ explicit SignalSender(int interval) -+ : Thread(Thread::Options("SignalSender", kSignalSenderStackSize)), -+ interval_(interval) {} -+ -+ static void SetUp() { if (!mutex_) mutex_ = OS::CreateMutex(); } -+ static void TearDown() { delete mutex_; } -+ -+ static void AddActiveSampler(Sampler* sampler) { -+ ScopedLock lock(mutex_); -+ SamplerRegistry::AddActiveSampler(sampler); -+ if (instance_ == NULL) { -+ // Start a thread that will send SIGPROF signal to VM threads, -+ // when CPU profiling will be enabled. -+ instance_ = new SignalSender(sampler->interval()); -+ instance_->Start(); -+ } else { -+ ASSERT(instance_->interval_ == sampler->interval()); -+ } -+ } -+ -+ static void RemoveActiveSampler(Sampler* sampler) { -+ ScopedLock lock(mutex_); -+ SamplerRegistry::RemoveActiveSampler(sampler); -+ if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { -+ RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_); -+ delete instance_; -+ instance_ = NULL; -+ } -+ } -+ -+ // Implement Thread::Run(). -+ virtual void Run() { -+ SamplerRegistry::State state; -+ while ((state = SamplerRegistry::GetState()) != -+ SamplerRegistry::HAS_NO_SAMPLERS) { -+ bool cpu_profiling_enabled = -+ (state == SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS); -+ bool runtime_profiler_enabled = RuntimeProfiler::IsEnabled(); -+ // When CPU profiling is enabled both JavaScript and C++ code is -+ // profiled. We must not suspend. -+ if (!cpu_profiling_enabled) { -+ if (rate_limiter_.SuspendIfNecessary()) continue; -+ } -+ if (cpu_profiling_enabled && runtime_profiler_enabled) { -+ if (!SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, NULL)) { -+ return; -+ } -+ Sleep(HALF_INTERVAL); -+ if (!SamplerRegistry::IterateActiveSamplers(&DoRuntimeProfile, NULL)) { -+ return; -+ } -+ Sleep(HALF_INTERVAL); -+ } else { -+ if (cpu_profiling_enabled) { -+ if (!SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, NULL)) { -+ return; -+ } -+ } -+ if (runtime_profiler_enabled) { -+ if (!SamplerRegistry::IterateActiveSamplers(&DoRuntimeProfile, -+ NULL)) { -+ return; -+ } -+ } -+ Sleep(FULL_INTERVAL); -+ } -+ } -+ } -+ -+ static void DoCpuProfile(Sampler* sampler, void*) { -+ if (!sampler->IsProfiling()) return; -+ sampler->platform_data()->SendProfilingSignal(); -+ } -+ -+ static void DoRuntimeProfile(Sampler* sampler, void* ignored) { -+ if (!sampler->isolate()->IsInitialized()) return; -+ sampler->isolate()->runtime_profiler()->NotifyTick(); -+ } -+ -+ void Sleep(SleepInterval full_or_half) { -+ // Convert ms to us and subtract 100 us to compensate delays -+ // occuring during signal delivery. -+ useconds_t interval = interval_ * 1000 - 100; -+ if (full_or_half == HALF_INTERVAL) interval /= 2; -+ int result = usleep(interval); -+#ifdef DEBUG -+ if (result != 0 && errno != EINTR) { -+ fprintf(stderr, -+ "SignalSender usleep error; interval = %lu, errno = %d\n", -+ interval, -+ errno); -+ ASSERT(result == 0 || errno == EINTR); -+ } -+#endif -+ USE(result); -+ } -+ -+ const int interval_; -+ RuntimeProfilerRateLimiter rate_limiter_; -+ -+ // Protects the process wide state below. -+ static Mutex* mutex_; -+ static SignalSender* instance_; -+ -+ private: -+ DISALLOW_COPY_AND_ASSIGN(SignalSender); -+}; -+ -+ -+Mutex* SignalSender::mutex_ = NULL; -+SignalSender* SignalSender::instance_ = NULL; -+ -+ -+void OS::SetUp() { -+ // Seed the random number generator. We preserve microsecond resolution. -+ uint64_t seed = Ticks() ^ (getpid() << 16); -+ srandom(static_cast(seed)); -+ limit_mutex = CreateMutex(); -+ -+ SignalSender::SetUp(); -+ CpuProfilerSignalHandler::SetUp(); -+} -+ -+ -+void OS::TearDown() { -+ SignalSender::TearDown(); -+ CpuProfilerSignalHandler::TearDown(); -+ delete limit_mutex; -+} -+ -+ -+Sampler::Sampler(Isolate* isolate, int interval) -+ : isolate_(isolate), -+ interval_(interval), -+ profiling_(false), -+ active_(false), -+ has_processing_thread_(false), -+ samples_taken_(0) { -+ data_ = new PlatformData; -+} -+ -+ -+Sampler::~Sampler() { -+ ASSERT(!IsActive()); -+ delete data_; -+} -+ -+ -+void Sampler::DoSample() { -+ platform_data()->SendProfilingSignal(); -+} -+ -+ -+void Sampler::Start() { -+ ASSERT(!IsActive()); -+ SetActive(true); -+ SignalSender::AddActiveSampler(this); -+} -+ -+ -+void Sampler::Stop() { -+ ASSERT(IsActive()); -+ SignalSender::RemoveActiveSampler(this); -+ SetActive(false); -+} -+ -+ -+void Sampler::StartSampling() { -+ CpuProfilerSignalHandler::InstallSignalHandler(); -+} -+ -+ -+void Sampler::StopSampling() { -+ CpuProfilerSignalHandler::RestoreSignalHandler(); -+} -+ -+ -+} } // namespace v8::internal -diff -Naur v8-r13067/src/platform.h v8-r13067-haiku/src/platform.h ---- v8-r13067/src/platform.h 2012-12-24 04:17:34.145227776 +0000 -+++ v8-r13067-haiku/src/platform.h 2012-12-24 04:10:09.000000000 +0000 -@@ -96,6 +96,10 @@ - - #endif // WIN32 - -+#ifdef __HAIKU__ -+#define isless(x, y) __builtin_isless(x, y) -+#endif // __HAIKU__ -+ - #include "atomicops.h" - #include "lazy-instance.h" - #include "platform-tls.h" -@@ -107,7 +111,7 @@ - - // Use AtomicWord for a machine-sized pointer. It is assumed that - // reads and writes of naturally aligned values of this type are atomic. --#if defined(__OpenBSD__) && defined(__i386__) -+#if (defined(__OpenBSD__) || defined(__HAIKU__)) && defined(__i386__) - typedef Atomic32 AtomicWord; - #else - typedef intptr_t AtomicWord; -diff -Naur v8-r13067/tools/android-run.py v8-r13067-haiku/tools/android-run.py ---- v8-r13067/tools/android-run.py 2012-12-24 04:17:38.883425280 +0000 -+++ v8-r13067-haiku/tools/android-run.py 2012-12-24 04:12:45.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/disasm.py v8-r13067-haiku/tools/disasm.py ---- v8-r13067/tools/disasm.py 2012-12-24 04:17:38.872939520 +0000 -+++ v8-r13067-haiku/tools/disasm.py 2012-12-24 04:12:53.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2011 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/gc-nvp-trace-processor.py v8-r13067-haiku/tools/gc-nvp-trace-processor.py ---- v8-r13067/tools/gc-nvp-trace-processor.py 2012-12-24 04:17:38.844103680 +0000 -+++ v8-r13067-haiku/tools/gc-nvp-trace-processor.py 2012-12-24 04:13:09.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2010 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/gen-postmortem-metadata.py v8-r13067-haiku/tools/gen-postmortem-metadata.py ---- v8-r13067/tools/gen-postmortem-metadata.py 2012-12-24 04:17:38.834142208 +0000 -+++ v8-r13067-haiku/tools/gen-postmortem-metadata.py 2012-12-24 04:13:24.000000000 +0000 -@@ -1,5 +1,4 @@ --#!/usr/bin/env python -- -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/grokdump.py v8-r13067-haiku/tools/grokdump.py ---- v8-r13067/tools/grokdump.py 2012-12-24 04:17:38.750780416 +0000 -+++ v8-r13067-haiku/tools/grokdump.py 2012-12-24 04:13:35.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/gyp/v8.gyp v8-r13067-haiku/tools/gyp/v8.gyp ---- v8-r13067/tools/gyp/v8.gyp 2012-12-24 04:17:38.516161536 +0000 -+++ v8-r13067-haiku/tools/gyp/v8.gyp 2012-12-24 04:10:09.000000000 +0000 -@@ -743,6 +743,17 @@ - 'libraries': [ '-lwinmm.lib', '-lws2_32.lib' ], - }, - }], -+ ['OS=="haiku"', { -+ 'link_settings': { -+ 'libraries': [ -+ '-lnetwork', -+ ]}, -+ 'sources': [ -+ '../../src/platform-haiku.cc', -+ '../../src/platform-posix.cc', -+ ], -+ } -+ ], - ['component=="shared_library"', { - 'defines': [ - 'BUILDING_V8_SHARED', -diff -Naur v8-r13067/tools/js2c.py v8-r13067-haiku/tools/js2c.py ---- v8-r13067/tools/js2c.py 2012-12-24 04:17:38.776470528 +0000 -+++ v8-r13067-haiku/tools/js2c.py 2012-12-24 04:13:42.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/ll_prof.py v8-r13067-haiku/tools/ll_prof.py ---- v8-r13067/tools/ll_prof.py 2012-12-24 04:17:38.824442880 +0000 -+++ v8-r13067-haiku/tools/ll_prof.py 2012-12-24 04:15:04.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/presubmit.py v8-r13067-haiku/tools/presubmit.py ---- v8-r13067/tools/presubmit.py 2012-12-24 04:17:38.800063488 +0000 -+++ v8-r13067-haiku/tools/presubmit.py 2012-12-24 04:15:09.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/process-heap-prof.py v8-r13067-haiku/tools/process-heap-prof.py ---- v8-r13067/tools/process-heap-prof.py 2012-12-24 04:17:38.827588608 +0000 -+++ v8-r13067-haiku/tools/process-heap-prof.py 2012-12-24 04:15:13.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2009 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/run-tests.py v8-r13067-haiku/tools/run-tests.py ---- v8-r13067/tools/run-tests.py 2012-12-24 04:17:38.779878400 +0000 -+++ v8-r13067-haiku/tools/run-tests.py 2012-12-24 04:15:19.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/stats-viewer.py v8-r13067-haiku/tools/stats-viewer.py ---- v8-r13067/tools/stats-viewer.py 2012-12-24 04:17:38.831258624 +0000 -+++ v8-r13067-haiku/tools/stats-viewer.py 2012-12-24 04:15:24.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2008 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/status-file-converter.py v8-r13067-haiku/tools/status-file-converter.py ---- v8-r13067/tools/status-file-converter.py 2012-12-24 04:17:38.783024128 +0000 -+++ v8-r13067-haiku/tools/status-file-converter.py 2012-12-24 04:15:29.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/test-server.py v8-r13067-haiku/tools/test-server.py ---- v8-r13067/tools/test-server.py 2012-12-24 04:17:38.890503168 +0000 -+++ v8-r13067-haiku/tools/test-server.py 2012-12-24 04:15:37.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/test-wrapper-gypbuild.py v8-r13067-haiku/tools/test-wrapper-gypbuild.py ---- v8-r13067/tools/test-wrapper-gypbuild.py 2012-12-24 04:17:38.796393472 +0000 -+++ v8-r13067-haiku/tools/test-wrapper-gypbuild.py 2012-12-24 04:15:43.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/test.py v8-r13067-haiku/tools/test.py ---- v8-r13067/tools/test.py 2012-12-24 04:17:38.870318080 +0000 -+++ v8-r13067-haiku/tools/test.py 2012-12-24 04:15:49.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - # - # Copyright 2012 the V8 project authors. All rights reserved. - # Redistribution and use in source and binary forms, with or without -diff -Naur v8-r13067/tools/testrunner/server/daemon.py v8-r13067-haiku/tools/testrunner/server/daemon.py ---- v8-r13067/tools/testrunner/server/daemon.py 2012-12-24 04:17:37.866910208 +0000 -+++ v8-r13067-haiku/tools/testrunner/server/daemon.py 2012-12-24 04:15:57.000000000 +0000 -@@ -1,4 +1,4 @@ --#!/usr/bin/env python -+#!/boot/common/bin/python - - # This code has been written by Sander Marechal and published at: - # http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ -diff -Naur v8-r13067/tools/utils.py v8-r13067-haiku/tools/utils.py ---- v8-r13067/tools/utils.py 2012-12-24 04:17:38.839647232 +0000 -+++ v8-r13067-haiku/tools/utils.py 2012-12-24 04:10:09.000000000 +0000 -@@ -63,6 +63,8 @@ - return 'solaris' - elif id == 'NetBSD': - return 'netbsd' -+ elif id == 'Haiku': -+ return 'haiku' - else: - return None - -@@ -83,6 +85,8 @@ - return 'ia32' - elif id == 'amd64': - return 'ia32' -+ elif id == 'BePC': -+ return 'ia32' - else: - return None - diff --git a/dev-lang/v8/v8-r13067.recipe b/dev-lang/v8/v8-r13067.recipe deleted file mode 100644 index 229708e18..000000000 --- a/dev-lang/v8/v8-r13067.recipe +++ /dev/null @@ -1,49 +0,0 @@ -DESCRIPTION="V8 is Google's open source JavaScript engine." -HOMEPAGE="https://code.google.com/p/v8/" -SOURCE_URI="svn+http://v8.googlecode.com/svn/trunk/#13067" -REVISION="1" -STATUS_HAIKU="unstable" -DEPEND="" -#CHECKSUM_MD5="" -MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." -BUILD() -{ - gyp_patch_path=$(dirname ${PWD})/patches/gyp-r1501.patch - cd v8-r13067 - cd build - svn co http://gyp.googlecode.com/svn/trunk/@1501 gyp - cd gyp - patch -p1 -i $gyp_patch_path - cd ../.. - make library=shared ia32.debug -} - -TEST() -{ - cd v8-r13067 - make ia32.debug.check -} - -INSTALL() -{ - cd v8-r13067 - includedir=${DESTDIR}/`finddir B_COMMON_HEADERS_DIRECTORY`/v8 - mkdir -p ${includedir} - cp -R ./include/* ${includedir} - libdir=${DESTDIR}/`finddir B_COMMON_LIB_DIRECTORY` - mkdir -p ${libdir} - cp -R ./out/ia32.debug/obj.target/tools/gyp/*.a ${libdir} - cp -R ./out/ia32.debug/obj.target/tools/gyp/*.so ${libdir} - bindir=${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`/v8 - mkdir -p ${bindir} - cp ./out/ia32.debug/cctest ${bindir} - cp ./out/ia32.debug/d8 ${bindir} - cp ./out/ia32.debug/lineprocessor ${bindir} - cp ./out/ia32.debug/mksnapshot ${bindir} - cp ./out/ia32.debug/preparser ${bindir} - cp ./out/ia32.debug/process ${bindir} - cp ./out/ia32.debug/shell ${bindir} -} - -LICENSE="BSD (3-clause)" -COPYRIGHT="2006-2012 The V8 Project Authors" diff --git a/dev-libs/boehm_gc/boehm_gc-7.2_alpha6.recipe b/dev-libs/boehm_gc/boehm_gc-7.2_alpha6.recipe deleted file mode 100644 index 562873b9f..000000000 --- a/dev-libs/boehm_gc/boehm_gc-7.2_alpha6.recipe +++ /dev/null @@ -1,36 +0,0 @@ -DESCRIPTION="The Boehm-Demers-Weiser conservative garbage collector" -HOMEPAGE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/" -SOURCE_URI="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2alpha6.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -CHECKSUM_MD5="319d0b18cc4eb735c8038ece9df055e4" - -BUILD() -{ - cd gc-7.2alpha6 - libtoolize --force --copy --install - autoconf -f - ./configure --prefix=$(finddir B_COMMON_DIRECTORY) \ - --datadir=$(finddir B_COMMON_DOCUMENTATION_DIRECTORY) \ - --enable-threads=posix --enable-thread-local-alloc --enable-parallel-mark - make -} - -INSTALL() -{ - cd gc-7.2alpha6 - make install -} - -TEST() -{ - cd gc-7.2alpha6 - make check -} - -LICENSE="BOEHM" -COPYRIGHT="1988, 1989 Hans-J. Boehm, Alan J. Demers - 1991-1996 by Xerox Corporation. All rights reserved. - 1996-1999 by Silicon Graphics. All rights reserved. - 1999-2004 Hewlett-Packard Development Company, L.P." diff --git a/dev-libs/boehm_gc/patches/boehm_gc-7.2_alpha6.patch b/dev-libs/boehm_gc/patches/boehm_gc-7.2_alpha6.patch deleted file mode 100644 index e5f093551..000000000 --- a/dev-libs/boehm_gc/patches/boehm_gc-7.2_alpha6.patch +++ /dev/null @@ -1,247 +0,0 @@ -diff -ru gc-7.2alpha6-orig/configure.ac gc-7.2alpha6/configure.ac ---- gc-7.2alpha6-orig/configure.ac 2011-06-14 12:34:55.000000000 +0000 -+++ gc-7.2alpha6/configure.ac 2012-03-16 00:46:16.500695040 +0000 -@@ -83,6 +83,7 @@ - AH_TEMPLATE([GC_DARWIN_THREADS], [Define to support Darwin pthreads.]) - AH_TEMPLATE([GC_FREEBSD_THREADS], [Define to support FreeBSD pthreads.]) - AH_TEMPLATE([GC_GNU_THREADS], [Define to support GNU pthreads.]) -+AH_TEMPLATE([GC_HAIKU_THREADS], [Define to support Haiku pthreads.]) - AH_TEMPLATE([GC_HPUX_THREADS], [Define to support HP/UX 11 pthreads.]) - AH_TEMPLATE([GC_IRIX_THREADS], [Define to support Irix pthreads.]) - AH_TEMPLATE([GC_LINUX_THREADS], [Define to support pthreads on Linux.]) -@@ -127,6 +128,10 @@ - AC_DEFINE(GC_AIX_THREADS) - AC_DEFINE(_REENTRANT) - ;; -+ *-*-haiku*) -+ AC_DEFINE(GC_HAIKU_THREADS) -+ AC_DEFINE(_REENTRANT) -+ ;; - *-*-hpux11*) - AC_MSG_WARN("Only HP/UX 11 POSIX threads are supported.") - AC_DEFINE(GC_HPUX_THREADS) -diff -ru gc-7.2alpha6-orig/dyn_load.c gc-7.2alpha6/dyn_load.c ---- gc-7.2alpha6-orig/dyn_load.c 2011-05-31 15:27:11.000000000 +0000 -+++ gc-7.2alpha6/dyn_load.c 2012-03-23 22:11:06.758906880 +0000 -@@ -63,7 +63,7 @@ - !(defined(FREEBSD) && defined(__ELF__)) && \ - !(defined(OPENBSD) && (defined(__ELF__) || defined(M68K))) && \ - !(defined(NETBSD) && defined(__ELF__)) && !defined(HURD) && \ -- !defined(DARWIN) && !defined(CYGWIN32) -+ !defined(DARWIN) && !defined(CYGWIN32) && !defined(HAIKU) - --> We only know how to find data segments of dynamic libraries for the - --> above. Additional SVR4 variants might not be too - --> hard to add. -@@ -1419,6 +1419,22 @@ - - #endif /* DARWIN */ - -+#ifdef HAIKU -+#include -+ -+GC_INNER void GC_register_dynamic_libraries() -+{ -+ image_info info; -+ int32 cookie = 0; -+ while (get_next_image_info(0, &cookie, &info) == B_OK) -+ { -+ void *data = info.data; -+ GC_add_roots_inner(data, data + info.data_size, TRUE); -+ } -+} -+ -+#endif /* HAIKU */ -+ - #elif defined(PCR) - - # include "il/PCR_IL.h" -diff -ru gc-7.2alpha6-orig/include/gc_config_macros.h gc-7.2alpha6/include/gc_config_macros.h ---- gc-7.2alpha6-orig/include/gc_config_macros.h 2011-04-24 13:09:21.000000000 +0000 -+++ gc-7.2alpha6/include/gc_config_macros.h 2012-03-16 00:44:30.556793856 +0000 -@@ -65,7 +65,7 @@ - || defined(GC_IRIX_THREADS) || defined(GC_LINUX_THREADS) \ - || defined(GC_NETBSD_THREADS) || defined(GC_OPENBSD_THREADS) \ - || defined(GC_OSF1_THREADS) || defined(GC_SOLARIS_THREADS) \ -- || defined(GC_WIN32_THREADS) -+ || defined(GC_WIN32_THREADS) || defined(GC_HAIKU_THREADS) - # ifndef GC_THREADS - # define GC_THREADS - # endif -diff -ru gc-7.2alpha6-orig/include/private/config.h.in gc-7.2alpha6/include/private/config.h.in ---- gc-7.2alpha6-orig/include/private/config.h.in 2010-09-11 11:27:06.000000000 +0000 -+++ gc-7.2alpha6/include/private/config.h.in 2012-03-16 00:49:30.038273024 +0000 -@@ -45,6 +45,9 @@ - /* Define to support GNU pthreads. */ - #undef GC_GNU_THREADS - -+/* Define to support Haiku pthreads. */ -+#undef GC_HAIKU_THREADS -+ - /* Define if backtrace information is supported. */ - #undef GC_HAVE_BUILTIN_BACKTRACE - -Only in gc-7.2alpha6/include/private: config.h.in~ -diff -ru gc-7.2alpha6-orig/include/private/gcconfig.h gc-7.2alpha6/include/private/gcconfig.h ---- gc-7.2alpha6-orig/include/private/gcconfig.h 2011-05-31 15:27:12.000000000 +0000 -+++ gc-7.2alpha6/include/private/gcconfig.h 2012-03-23 22:28:55.210501632 +0000 -@@ -234,6 +234,11 @@ - # define BEOS - # define mach_type_known - # endif -+# if defined(__HAIKU__) && defined(_X86_) -+# define I386 -+# define HAIKU -+# define mach_type_known -+# endif - # if defined(OPENBSD) && defined(__amd64__) - # define X86_64 - # define mach_type_known -@@ -1110,6 +1115,15 @@ - extern int etext[]; - # define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) - # endif -+# ifdef HAIKU -+# define OS_TYPE "HAIKU" -+# include -+# define GETPAGESIZE() B_PAGE_SIZE -+ extern int etext[]; -+# define DATASTART ((ptr_t)((((word) (etext)) + 0xfff) & ~0xfff)) -+# define DYNAMIC_LOADING -+# define MPROTECT_VDB -+# endif - # ifdef SOLARIS - # define OS_TYPE "SOLARIS" - extern int _etext[], _end[]; -@@ -2345,7 +2359,7 @@ - #if defined(SVR4) || defined(LINUX) || defined(IRIX5) || defined(HPUX) \ - || defined(OPENBSD) || defined(NETBSD) || defined(FREEBSD) \ - || defined(DGUX) || defined(BSD) || defined(HURD) \ -- || defined(AIX) || defined(DARWIN) || defined(OSF1) -+ || defined(AIX) || defined(DARWIN) || defined(OSF1) || defined(HAIKU) - # define UNIX_LIKE /* Basic Unix-like system calls work. */ - #endif - -@@ -2423,7 +2437,8 @@ - - #if ((defined(UNIX_LIKE) && (defined(DARWIN) || defined(HURD) \ - || defined(OPENBSD) || defined(ARM32) \ -- || defined(MIPS) || defined(AVR32))) \ -+ || defined(MIPS) || defined(AVR32) \ -+ || defined(HAIKU))) \ - || (defined(LINUX) && (defined(SPARC) || defined(M68K))) \ - || (defined(RTEMS) && defined(I386))) && !defined(NO_GETCONTEXT) - # define NO_GETCONTEXT -@@ -2721,6 +2736,9 @@ - # elif defined(SN_TARGET_PS3) - void *ps3_get_mem(size_t size); - # define GET_MEM(bytes) (struct hblk*)ps3_get_mem(bytes) -+# elif defined(HAIKU) -+ ptr_t GC_haiku_get_mem(GC_word bytes); -+# define GET_MEM(bytes) (struct hblk*)GC_haiku_get_mem(bytes) - # else - ptr_t GC_unix_get_mem(GC_word bytes); - # define GET_MEM(bytes) (struct hblk *)GC_unix_get_mem(bytes) -diff -ru gc-7.2alpha6-orig/include/private/thread_local_alloc.h gc-7.2alpha6/include/private/thread_local_alloc.h ---- gc-7.2alpha6-orig/include/private/thread_local_alloc.h 2011-05-13 14:40:31.000000000 +0000 -+++ gc-7.2alpha6/include/private/thread_local_alloc.h 2012-03-16 00:55:25.252706816 +0000 -@@ -47,7 +47,7 @@ - # define USE_COMPILER_TLS - # elif defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) \ - || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS) \ -- || defined(GC_NETBSD_THREADS) -+ || defined(GC_NETBSD_THREADS) || defined(GC_HAIKU_THREADS) - # define USE_PTHREAD_SPECIFIC - # elif defined(GC_HPUX_THREADS) - # ifdef __GNUC__ -diff -ru gc-7.2alpha6-orig/os_dep.c gc-7.2alpha6/os_dep.c ---- gc-7.2alpha6-orig/os_dep.c 2011-05-31 15:27:11.000000000 +0000 -+++ gc-7.2alpha6/os_dep.c 2012-03-23 22:32:31.656932864 +0000 -@@ -790,7 +790,7 @@ - } - #endif /* !MSWIN32 */ - --#ifdef BEOS -+#if defined(BEOS) || defined(HAIKU) - # include - - GC_API int GC_CALL GC_get_stack_base(struct GC_stack_base *sb) -@@ -801,7 +801,7 @@ - return GC_SUCCESS; - } - # define HAVE_GET_STACK_BASE --#endif /* BEOS */ -+#endif /* BEOS || HAIKU */ - - #ifdef OS2 - GC_API int GC_CALL GC_get_stack_base(struct GC_stack_base *sb) -@@ -1127,7 +1127,7 @@ - # define GET_MAIN_STACKBASE_SPECIAL - #elif !defined(BEOS) && !defined(AMIGA) && !defined(OS2) \ - && !defined(MSWIN32) && !defined(MSWINCE) && !defined(CYGWIN32) \ -- && !defined(GC_OPENBSD_THREADS) \ -+ && !defined(GC_OPENBSD_THREADS) && !defined(HAIKU) \ - && (!defined(GC_SOLARIS_THREADS) || defined(_STRICT_STDC)) - - # if defined(LINUX) && defined(USE_GET_STACKBASE_FOR_MAIN) -@@ -1977,7 +1977,7 @@ - # if !defined(OS2) && !defined(PCR) && !defined(AMIGA) && !defined(MSWIN32) \ - && !defined(MSWINCE) && !defined(MACOS) && !defined(DOS4GW) \ - && !defined(NONSTOP) && !defined(SN_TARGET_PS3) && !defined(RTEMS) \ -- && !defined(__CC_ARM) -+ && !defined(__CC_ARM) && !defined(HAIKU) - - # define SBRK_ARG_T ptrdiff_t - -@@ -2302,6 +2302,19 @@ - } - #endif - -+#ifdef HAIKU -+#include -+ -+ptr_t GC_haiku_get_mem(word bytes) -+{ -+ void* mem; -+ if (posix_memalign(&mem, GC_page_size, bytes) == 0) -+ return mem; -+ else -+ return NULL; -+} -+#endif -+ - #ifdef USE_MUNMAP - - /* For now, this only works on Win32/WinCE and some Unix-like */ -@@ -2903,7 +2916,9 @@ - # elif !defined(MSWIN32) && !defined(MSWINCE) - # include - # include --# include -+# if !defined(HAIKU) -+# include -+# endif - - # define PROTECT(addr, len) \ - if (mprotect((caddr_t)(addr), (size_t)(len), \ -@@ -3062,6 +3077,8 @@ - /* Empirically c.trapno == 14, on IA32, but is that useful? */ - /* Should probably consider alignment issues on other */ - /* architectures. */ -+# elif defined(HAIKU) -+# define CODE_OK TRUE - # elif defined(HPUX) - # define CODE_OK (si -> si_code == SEGV_ACCERR \ - || si -> si_code == BUS_ADRERR \ -diff -ru gc-7.2alpha6-orig/pthread_support.c gc-7.2alpha6/pthread_support.c ---- gc-7.2alpha6-orig/pthread_support.c 2011-05-31 15:27:11.000000000 +0000 -+++ gc-7.2alpha6/pthread_support.c 2012-03-16 00:39:06.171442176 +0000 -@@ -938,7 +938,8 @@ - GC_nprocs = pthread_num_processors_np(); - # elif defined(GC_OSF1_THREADS) || defined(GC_AIX_THREADS) \ - || defined(GC_SOLARIS_THREADS) || defined(GC_GNU_THREADS) \ -- || defined(PLATFORM_ANDROID) || defined(NACL) -+ || defined(PLATFORM_ANDROID) || defined(NACL) \ -+ || defined(GC_HAIKU_THREADS) - GC_nprocs = sysconf(_SC_NPROCESSORS_ONLN); - if (GC_nprocs <= 0) GC_nprocs = 1; - # elif defined(GC_IRIX_THREADS) diff --git a/dev-libs/libdwarf/libdwarf-20120410.recipe b/dev-libs/libdwarf/libdwarf-20120410.recipe deleted file mode 100644 index be790d7d6..000000000 --- a/dev-libs/libdwarf/libdwarf-20120410.recipe +++ /dev/null @@ -1,33 +0,0 @@ -DESCRIPTION=" -libdwarf and dwarfdump - library and utility for working with DWARF Debugging \ -Information Format. -" -HOMEPAGE="http://reality.sgiweb.org/davea/dwarf.html" -SOURCE_URI="http://reality.sgiweb.org/davea/libdwarf-20120410.tar.gz" -CHECKSUM_MD5="77c8b351f11738bc9fa50474a69d5b36" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/libelf >= 0.8.13" -BUILD() -{ - cd dwarf-20120410/libdwarf - ./configure --enable-shared --prefix=$(finddir B_COMMON_DIRECTORY) - make - cd ../dwarfdump - LDFLAGS="-L../libdwarf -L/boot/common/lib" ./configure --prefix=$(finddir B_COMMON_DIRECTORY) - LIBRARY_PATH=$LIBRARY_PATH:../libdwarf/ make -} - -INSTALL() -{ - cd dwarf-20120410/libdwarf - make install - cd ../dwarfdump - make install -} - -LICENSE="GNU GPL v2 - GNU LGPL v2.1" -COPYRIGHT="2000,2002,2004,2005 Silicon Graphics, Inc. All Rights Reserved. - 2007-2010 David Anderson. All Rights Reserved. - 2007-2010 Sun Microsystems, Inc. All rights reserved" diff --git a/dev-libs/libdwarf/patches/libdwarf-20120410.patch b/dev-libs/libdwarf/patches/libdwarf-20120410.patch deleted file mode 100644 index 4cadb6777..000000000 --- a/dev-libs/libdwarf/patches/libdwarf-20120410.patch +++ /dev/null @@ -1,67 +0,0 @@ -diff -urN dwarf-20120410/dwarfdump/dwarfdump.c dwarf-20120410-c89/dwarfdump/dwarfdump.c ---- dwarf-20120410/dwarfdump/dwarfdump.c 2012-04-10 18:48:29.043515904 +0000 -+++ dwarf-20120410-c89/dwarfdump/dwarfdump.c 2012-09-04 21:36:54.000000000 +0000 -@@ -1320,9 +1320,9 @@ - case 'S': - /* -S option: strings for 'any' and 'match' */ - { -+ const char *tempstr = 0; - boolean err = TRUE; - search_is_on = TRUE; -- const char *tempstr = 0; - /* -S text */ - if (strncmp(optarg,"match=",6) == 0) { - -diff -urN dwarf-20120410/dwarfdump/print_die.c dwarf-20120410-c89/dwarfdump/print_die.c ---- dwarf-20120410/dwarfdump/print_die.c 2012-04-10 18:48:29.038010880 +0000 -+++ dwarf-20120410-c89/dwarfdump/print_die.c 2012-09-04 21:39:20.000000000 +0000 -@@ -2257,8 +2257,8 @@ - /* Follow reference chain, looking for self references */ - res = dwarf_offdie_b(dbg,ref_off,is_info,&ref_die,&err); - if (res == DW_DLV_OK) { -- ++die_indent_level; - struct esb_s copy_base; -+ ++die_indent_level; - if (dump_visited_info) { - Dwarf_Off off; - dwarf_die_CU_offset(die, &off, &err); -diff -urN dwarf-20120410/libdwarf/gennames.c dwarf-20120410-c89/libdwarf/gennames.c ---- dwarf-20120410/libdwarf/gennames.c 2012-04-10 18:48:29.002359296 +0000 -+++ dwarf-20120410-c89/libdwarf/gennames.c 2012-09-04 21:20:40.000000000 +0000 -@@ -486,8 +486,8 @@ - - /* Process each line from 'dwarf.h' */ - while (!feof(f_dwarf_in)) { -- errno = 0; - char *fgbad = fgets(line_in,sizeof(line_in),f_dwarf_in); -+ errno = 0; - if(!fgbad) { - if(feof(f_dwarf_in)) { - break; -diff -urN dwarf-20120410/libdwarf/Makefile.in dwarf-20120410-c89/libdwarf/Makefile.in ---- dwarf-20120410/libdwarf/Makefile.in 2012-04-10 18:48:29.002359296 +0000 -+++ dwarf-20120410-c89/libdwarf/Makefile.in 2012-09-04 21:28:30.000000000 +0000 -@@ -46,8 +46,9 @@ - - prefix = @prefix@ - exec_prefix = @exec_prefix@ --bindir = $(exec_prefix)/bin --libdir = $(exec_prefix)/lib -+bindir = $(DESTDIR)$(prefix)/bin -+libdir = $(DESTDIR)$(prefix)/lib -+incdir = $(DESTDIR)$(prefix)/include/libdwarf - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ -@@ -213,7 +214,10 @@ - rm -f dwarf_names_enum.h dwarf_names_new.h dwarf_names.c dwarf_names.h - - install: all -- echo "No install provided, see comments in the README" -+ install -m 0755 -d $(incdir) -+ install -m 0755 libdwarf.h $(incdir) -+ install -m 0755 dwarf.h $(incdir) -+ install -m 0755 libdwarf.so $(libdir) - - distclean: clean - rm -f config.status config.log config.cache config.h diff --git a/dev-scheme/chicken/chicken-4.5.0.recipe b/dev-scheme/chicken/chicken-4.5.0.recipe deleted file mode 100644 index 90d90fc18..000000000 --- a/dev-scheme/chicken/chicken-4.5.0.recipe +++ /dev/null @@ -1,21 +0,0 @@ -DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler" -HOMEPAGE="http://www.call-with-current-continuation.org/" -SOURCE_URI="http://chicken.wiki.br/releases/4.5.0/chicken-4.5.0.tar.gz" -CHECKSUM_MD5="753aea676a18c8dc0161dfb4d1717e20" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd chicken-4.5.0 - make PLATFORM=haiku PREFIX=/boot/common -} - -INSTALL() -{ - cd chicken-4.5.0 - make PLATFORM=haiku PREFIX=/boot/common install -} -LICENSE="BSD (2-clause)" -COPYRIGHT="2008-2010 The Chicken Team - 2000-2007 Felix L. Winkelmann" diff --git a/dev-scheme/chicken/chicken-4.7.0.recipe b/dev-scheme/chicken/chicken-4.7.0.recipe deleted file mode 100644 index 1dec27ee7..000000000 --- a/dev-scheme/chicken/chicken-4.7.0.recipe +++ /dev/null @@ -1,43 +0,0 @@ -DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler" -HOMEPAGE="http://www.call-cc.org/" -SOURCE_URI="http://code.call-cc.org/releases/4.7.0/chicken-4.7.0.tar.gz" -CHECKSUM_MD5="9389388fdf04c3c64de29633aae12539" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd chicken-4.7.0 - if [ `gcc -dumpversion | cut -f1 -d.` -eq "2" ];then - echo "Removing -fwrapv flag for gcc2 build" - sed -i 's/-fwrapv//' Makefile.haiku - fi - make PLATFORM=haiku PREFIX=`finddir B_COMMON_DIRECTORY` \ - MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man/man1 \ - DOCDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc/chicken \ - DATADIR=`finddir B_COMMON_DATA_DIRECTORY`/chicken - -} - -INSTALL() -{ - cd chicken-4.7.0 - make PLATFORM=haiku PREFIX=`finddir B_COMMON_DIRECTORY` install \ - MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man/man1 \ - DOCDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc/chicken \ - DATADIR=`finddir B_COMMON_DATA_DIRECTORY`/chicken -} - -TEST() -{ - if ! type -p csi > /dev/null;then - echo "ERROR: Chicken must be installed before running the test suite" - exit 1 - fi - cd chicken-4.7.0 - make PLATFORM=haiku PREFIX=`finddir B_COMMON_DIRECTORY` check -} - -LICENSE="BSD (2-clause)" -COPYRIGHT="2008-2011 The Chicken Team - 2000-2007 Felix L. Winkelmann" diff --git a/dev-scheme/chicken/patches/chicken-4.5.0.patch b/dev-scheme/chicken/patches/chicken-4.5.0.patch deleted file mode 100644 index c19167a89..000000000 --- a/dev-scheme/chicken/patches/chicken-4.5.0.patch +++ /dev/null @@ -1,207 +0,0 @@ -diff -up chicken-4.5.0/Makefile.haiku.orig chicken-4.5.0/Makefile.haiku ---- chicken-4.5.0/Makefile.haiku.orig 2010-05-21 18:19:06.229638144 -0600 -+++ chicken-4.5.0/Makefile.haiku 2010-05-21 18:19:06.230424576 -0600 -@@ -0,0 +1,106 @@ -+# Makefile.haiku - configuration for Haiku -*- Makefile -*- -+# -+# Copyright (c) 2010, The Chicken Team -+# All rights reserved. -+# -+# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following -+# conditions are met: -+# -+# Redistributions of source code must retain the above copyright notice, this list of conditions and the following -+# disclaimer. -+# Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following -+# disclaimer in the documentation and/or other materials provided with the distribution. -+# Neither the name of the author nor the names of its contributors may be used to endorse or promote -+# products derived from this software without specific prior written permission. -+# -+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS -+# OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY -+# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR -+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -+# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -+# POSSIBILITY OF SUCH DAMAGE. -+ -+ -+ifneq ($(CONFIG),) -+include $(CONFIG) -+endif -+ -+SRCDIR ?= ./ -+ -+# platform configuration -+ -+ARCH ?= $(shell sh $(SRCDIR)/config-arch.sh) -+ -+# options -+ -+C_COMPILER_OPTIONS ?= -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H -+ifdef DEBUGBUILD -+C_COMPILER_OPTIMIZATION_OPTIONS ?= -g -Wall -Wno-unused -+else -+ifdef OPTIMIZE_FOR_SPEED -+C_COMPILER_OPTIMIZATION_OPTIONS ?= -O3 -fomit-frame-pointer -+else -+C_COMPILER_OPTIMIZATION_OPTIONS ?= -Os -fomit-frame-pointer -+endif -+endif -+LINKER_LINK_SHARED_LIBRARY_OPTIONS = -shared -+LINKER_LINK_SHARED_DLOADABLE_OPTIONS = -L. -shared -Wl,-R$(RUNTIME_LINKER_PATH) -+LINKER_LINK_SHARED_PROGRAM_OPTIONS = -Wl,-R$(RUNTIME_LINKER_PATH) -+LIBCHICKEN_SO_LINKER_OPTIONS = -Wl,-soname,libchicken.so$(SONAME_VERSION) -+LIBUCHICKEN_SO_LINKER_OPTIONS = -Wl,-soname,libuchicken.so$(SONAME_VERSION) -+LIBRARIES = -lnetwork -+NEEDS_RELINKING = yes -+USES_SONAME = yes -+ -+# special files -+ -+CHICKEN_CONFIG_H = chicken-config.h -+ -+# select default and internal settings -+ -+include $(SRCDIR)/defaults.make -+ -+chicken-config.h: chicken-defaults.h -+ echo "/* GENERATED */" >$@ -+ echo "#define HAVE_DIRENT_H 1" >>$@ -+ echo "#define HAVE_DLFCN_H 1" >>$@ -+ echo "#define HAVE_INTTYPES_H 1" >>$@ -+ echo "#define HAVE_LIMITS_H 1" >>$@ -+ echo "#define HAVE_LONG_LONG 1" >>$@ -+ echo "#define HAVE_MEMMOVE 1" >>$@ -+ echo "#define HAVE_MEMORY_H 1" >>$@ -+ echo "#define HAVE_STDINT_H 1" >>$@ -+ echo "#define HAVE_STDLIB_H 1" >>$@ -+ echo "#define HAVE_STRERROR 1" >>$@ -+ echo "#define HAVE_STRINGS_H 1" >>$@ -+ echo "#define HAVE_STRING_H 1" >>$@ -+ echo "#define HAVE_STRTOLL 1" >>$@ -+ echo "#define HAVE_STRTOQ 1" >>$@ -+ echo "#define HAVE_SYS_STAT_H 1" >>$@ -+ echo "#define HAVE_SYS_TYPES_H 1" >>$@ -+ echo "#define HAVE_UNISTD_H 1" >>$@ -+ echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>$@ -+ echo "#define STDC_HEADERS 1" >>$@ -+ echo "#define HAVE_ALLOCA 1" >>$@ -+ echo "#define HAVE_ALLOCA_H 1" >>$@ -+ echo "#define HAVE_GRP_H 1" >>$@ -+ echo "#define HAVE_ERRNO_H 1" >>$@ -+ echo "#define HAVE_GCVT 1" >>$@ -+ echo "#define HAVE_MEMMOVE 1" >>$@ -+ echo "#define C_STACK_GROWS_DOWNWARD 1" >>$@ -+ echo "#define SIGIO 0" >>$@ -+ifdef GCHOOKS -+ echo "#define C_GC_HOOKS" >>$@ -+endif -+ifdef SYMBOLGC -+ echo "#define C_COLLECT_ALL_SYMBOLS" >>$@ -+endif -+ifneq ($(HACKED_APPLY),) -+ echo "#define C_HACKED_APPLY" >>$@ -+endif -+ cat chicken-defaults.h >>$@ -+ -+include $(SRCDIR)/rules.make -diff -up chicken-4.5.0/Makefile.orig chicken-4.5.0/Makefile ---- chicken-4.5.0/Makefile.orig 2010-05-11 09:50:34.038535168 -0600 -+++ chicken-4.5.0/Makefile 2010-05-21 18:19:06.207355904 -0600 -@@ -55,6 +55,7 @@ $(STANDARD_TARGETS): - @echo " $(MAKE) PLATFORM=cygwin" - @echo " $(MAKE) PLATFORM=solaris" - @echo " $(MAKE) PLATFORM=cross-linux-mingw" -+ @echo " $(MAKE) PLATFORM=haiku" - @echo "" - @echo "For more information, consult the README file." - @exit 1 -diff -up chicken-4.5.0/chicken.h.orig chicken-4.5.0/chicken.h ---- chicken-4.5.0/chicken.h.orig 2010-05-11 09:50:35.002097152 -0600 -+++ chicken-4.5.0/chicken.h 2010-05-21 18:19:06.273154048 -0600 -@@ -93,6 +93,10 @@ - # include - #endif - -+#if defined(__HAIKU__) -+# include -+#endif -+ - /* Byteorder in machine word */ - - #if defined(__MINGW32__) -@@ -664,6 +668,8 @@ typedef unsigned __int64 uint64_t; - # define C_SOFTWARE_VERSION "hpux" - #elif defined(__DragonFly__) - # define C_SOFTWARE_VERSION "dragonfly" -+#elif defined(__HAIKU__) -+# define C_SOFTWARE_VERSION "haiku" - #elif defined(__sun__) - # if defined(__svr4__) - # define C_SOFTWARE_VERSION "solaris" -@@ -2336,6 +2342,25 @@ C_path_to_executable(C_char *fname) - - return NULL; - } -+# elif defined(__HAIKU__) -+{ -+ image_info info; -+ int32 cookie = 0; -+ int32 i; -+ -+ while (get_next_image_info(0, &cookie, &info) == B_OK) { -+ if (info.type == B_APP_IMAGE) { -+ C_strcat(buffer, info.name); -+ -+ for(i = C_strlen(buffer); i >= 0 && buffer[ i ] != '/'; --i); -+ -+ buffer[ i ] = '\0'; -+ -+ return buffer; -+ } -+ } -+} -+ return NULL; - # else - return NULL; - # endif -diff -up chicken-4.5.0/config-arch.sh.orig chicken-4.5.0/config-arch.sh ---- chicken-4.5.0/config-arch.sh.orig 2010-05-11 09:50:35.006029312 -0600 -+++ chicken-4.5.0/config-arch.sh 2010-05-21 18:19:06.294649856 -0600 -@@ -27,7 +27,7 @@ - - - case "`uname -m`" in -- i*86) echo "x86";; -+ i*86|BePC) echo "x86";; - "Power Macintosh"|ppc|powerpc|macppc) - case "`uname -s`" in - Darwin) echo "ppc.darwin";; -diff -up chicken-4.5.0/manual/Acknowledgements.orig chicken-4.5.0/manual/Acknowledgements ---- chicken-4.5.0/manual/Acknowledgements.orig 2010-05-11 09:50:36.024641536 -0600 -+++ chicken-4.5.0/manual/Acknowledgements 2010-05-21 18:19:06.297795584 -0600 -@@ -32,8 +32,8 @@ Moukayed, Chris Moline, Eric E. Moore, J - David N. Murray, Lars Nilsson, Ian Oversby, o.t., Gene Pavlovsky, Levi - Pearson, Jeronimo Pellegrini, Nicolas Pelletier, Derrell Piper, Carlos - Pita, Robin Lee Powell, Pupeno, Davide Puricelli, presto, Doug Quale, --Eric Raible, Ivan Raikov, Joel Reymont, Eric Rochester, Paul --Romanchenko, Andreas Rottman, David Rush, Lars Rustemeier, Daniel -+Eric Raible, Ivan Raikov, Joel Reymont, Chris Roberts, Eric Rochester, -+Paul Romanchenko, Andreas Rottman, David Rush, Lars Rustemeier, Daniel - Sadilek, Oskar Schirmer, Burton Samograd, Reed Sheridan, Ronald - Schroeder, Spencer Schumann, Ivan Shcheklein, Alex Shinn, Ivan - Shmakov, Shmul, Tony Sidaway, Jeffrey B. Siegal, Andrey Sidorenko, -diff -up chicken-4.5.0/tests/runtests.sh.orig chicken-4.5.0/tests/runtests.sh ---- chicken-4.5.0/tests/runtests.sh.orig 2010-05-11 09:50:38.052953088 -0600 -+++ chicken-4.5.0/tests/runtests.sh 2010-05-21 18:20:30.098041856 -0600 -@@ -8,6 +8,7 @@ set -e - TEST_DIR=`pwd` - export DYLD_LIBRARY_PATH=${TEST_DIR}/.. - export LD_LIBRARY_PATH=${TEST_DIR}/.. -+export LIBRARY_PATH=${TEST_DIR}/..:${LIBRARY_PATH} - - mkdir -p test-repository - diff --git a/games-puzzle/gnurobbo/gnurobbo-0.65.recipe b/games-puzzle/gnurobbo/gnurobbo-0.65.recipe deleted file mode 100644 index 6329e17fa..000000000 --- a/games-puzzle/gnurobbo/gnurobbo-0.65.recipe +++ /dev/null @@ -1,30 +0,0 @@ -DESCRIPTION=" -GNU Robbo is a free open source reimplementation of Janusz Pelc's Robbo for \ -the Atari XE/XL which was distributed by LK Avalon in 1989. -" -HOMEPAGE="http://gnurobbo.sourceforge.net/" -SOURCE_URI="http://mirrors.ludost.net/gentoo/distfiles/gnurobbo-0.65.6-source.tar.gz" -CHECKSUM_MD5="bb7d2bc1282429ac5c0b89966b07e0cc" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="media-lib/libsdl >= 1.2.14 - media-lib/sdl-mixer >= 1.2.11 - media-lib/sdl-image >= 1.2.10 - media-lib/sdl-ttf >= 2.0.10" -BUILD() -{ - cd gnurobbo-0.65.6 - make -} - -INSTALL() -{ - cd gnurobbo-0.65.6 - APPS_DIR=`finddir B_APPS_DIRECTORY` - mkdir -p ${DESTDIR}${APPS_DIR}/gnurobbo - cp gnurobbo ${DESTDIR}${APPS_DIR}/gnurobbo - cp -rf data ${DESITDIR}${APPS_DIR}/gnurobbo -} - -COPYRIGHT="2002-2010 The GNU Robbo Team" -LICENSE="GNU LGPL v2.1" diff --git a/media-gfx/graphviz/graphviz-2.24.recipe b/media-gfx/graphviz/graphviz-2.24.recipe deleted file mode 100644 index bc21f75d7..000000000 --- a/media-gfx/graphviz/graphviz-2.24.recipe +++ /dev/null @@ -1,31 +0,0 @@ -DESCRIPTION="graphviz - Open Source Graph Visualization Software." -HOMEPAGE="http://www.graphviz.org/" -SOURCE_URI="http://www.graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.24.0.tar.gz" -CHECKSUM_MD5="806a30dbc3f8deb219216f35be0e7a40" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd graphviz-2.24.0 - libtoolize -fci - aclocal -I m4 - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --disable-shared \ - --enable-static \ - CFLAGS="-O0" \ - LDFLAGS="-L`finddir B_COMMON_LIB_DIRECTORY` -liconv" - make -} - -INSTALL() -{ - cd graphviz-2.24.0 - make install - cd `finddir B_COMMON_BIN_DIRECTORY` - ln -s dot_static dot -} - -LICENSE="CPL v1.0" -COPYRIGHT="1994-2010 AT&T Corp." diff --git a/media-gfx/graphviz/patches/graphviz-2.24.patch b/media-gfx/graphviz/patches/graphviz-2.24.patch deleted file mode 100644 index e9101d560..000000000 --- a/media-gfx/graphviz/patches/graphviz-2.24.patch +++ /dev/null @@ -1,68 +0,0 @@ -diff -ur graphviz-2.24.0/config.h.in graphviz-2.24.0-haiku/config.h.in ---- graphviz-2.24.0/config.h.in 2009-06-16 17:24:58.000000000 -0600 -+++ graphviz-2.24.0-haiku/config.h.in 2009-11-19 00:21:13.000000000 -0700 -@@ -54,6 +54,9 @@ - /* Define to 1 if you have the header file. */ - #undef HAVE_CRT_EXTERNS_H - -+/* Define to 1 if you have the header file. */ -+#undef HAVE_SYSEXITS_H -+ - /* Define to 1 if you have the `deflateBound' function. */ - #undef HAVE_DEFLATEBOUND - -diff -ur graphviz-2.24.0/configure.ac graphviz-2.24.0-haiku/configure.ac ---- graphviz-2.24.0/configure.ac 2009-06-16 17:24:18.000000000 -0600 -+++ graphviz-2.24.0-haiku/configure.ac 2009-11-19 00:21:20.000000000 -0700 -@@ -111,6 +111,7 @@ - CYGWIN=no - MINGW32=no - DARWIN9=no -+HAIKU=no - case "${host_os}" in - *uwin* ) - UWIN=yes -@@ -160,6 +161,16 @@ - BROWSER="open" - AC_DEFINE_UNQUOTED(DARWIN_DYLIB,"$DARWIN_DYLIB",[Define for Darwin-style shared library names.]) - ;; -+ *haiku* ) -+ HAIKU=yes -+ HAIKU_SYSTEM_FONTPATH=`finddir B_SYSTEM_FONTS_DIRECTORY` -+ HAIKU_COMMON_FONTPATH=`finddir B_COMMON_FONTS_DIRECTORY` -+ HAIKU_USER_FONTPATH=`finddir B_USER_FONTS_DIRECTORY` -+ DEFAULT_FONTPATH="$HAIKU_SYSTEM_FONTPATH:$HAIKU_SYSTEM_FONTPATH/ttfonts:$HAIKU_SYSTEM_FONTPATH/psfonts:$HAIKU_COMMON_FONTPATH:$HAIKU_COMMON_FONTPATH/ttfonts:$HAIKU_COMMON_FONTPATH/psfonts:$HAIKU_USER_FONTPATH:$HAIKU_USER_FONTPATH/ttfonts:$HAIKU_USER_FONTPATH/psfonts" -+ PATHSEPARATOR=":" -+ NO_POSTSCRIPT_ALIAS=1 -+ BROWSER="open" -+ ;; - * ) # This sucks! Whatever happened to standards for file system layout? - DEFAULT_FONTPATH="/usr/share/fonts/default/Type1:/usr/X11R6/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/truetype:/usr/X11R6/lib/X11/fonts/TTF:/usr/share/fonts/TrueType:/usr/share/fonts/truetype:/usr/openwin/lib/X11/fonts/TrueType:/usr/X11R6/lib/X11/fonts/Type1:/usr/common/share/fonts/ttf"; - PATHSEPARATOR=":" -@@ -364,7 +375,7 @@ - errno.h time.h unistd.h fenv.h string.h strings.h inttypes.h setjmp.h \ - sys/time.h sys/times.h sys/types.h sys/select.h fpu_control.h \ - sys/fpu.h sys/socket.h sys/stat.h sys/mman.h \ -- sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h) -+ sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h sysexits.h) - AC_HEADER_TIME - AC_HEADER_DIRENT - AC_HEADER_STDBOOL -diff -ur graphviz-2.24.0/contrib/diffimg/diffimg.c graphviz-2.24.0-haiku/contrib/diffimg/diffimg.c ---- graphviz-2.24.0/contrib/diffimg/diffimg.c 2009-06-02 19:10:49.000000000 -0600 -+++ graphviz-2.24.0-haiku/contrib/diffimg/diffimg.c 2009-11-19 00:21:13.000000000 -0700 -@@ -47,7 +47,14 @@ - #define bool int - #define false 0 - #else -+#if defined HAVE_SYSEXITS_H - #include -+#else -+#define EX_USAGE 64 -+#define EX_DATAERR 65 -+#define EX_NOINPUT 66 -+#define EX_UNAVAILABLE 69 -+#endif - #endif - #include - #if defined HAVE_STDBOOL_H && ! defined __cplusplus diff --git a/media-gfx/tuxpaint/patches/tuxpaint-0.9.21.patch b/media-gfx/tuxpaint/patches/tuxpaint-0.9.21.patch deleted file mode 100644 index 5b10cccd1..000000000 --- a/media-gfx/tuxpaint/patches/tuxpaint-0.9.21.patch +++ /dev/null @@ -1,386 +0,0 @@ -diff -urN tuxpaint-0.9.21/Makefile tuxpaint-0.9.21-haiku/Makefile ---- tuxpaint-0.9.21/Makefile 2009-04-28 22:18:57.000000000 -0700 -+++ tuxpaint-0.9.21-haiku/Makefile 2009-11-07 21:26:50.000000000 -0800 -@@ -46,7 +46,7 @@ - echo "$(1)"; \ - fi ;) - --beos_RSRC_CMD:=xres -o tuxpaint src/tuxpaint.rsrc -+beos_RSRC_CMD:=rc src/tuxpaint.rdef && xres -o tuxpaint src/tuxpaint.rsrc - RSRC_CMD:=$($(OS)_RSRC_CMD) - - beos_MIMESET_CMD:=mimeset -f tuxpaint -@@ -79,7 +79,7 @@ - - windows_ARCH_LINKS:=-lintl $(PNG) -lwinspool -lshlwapi $(FRIBIDI_LIB) - osx_ARCH_LINKS:=$(PAPER_LIB) $(FRIBIDI_LIB) --beos_ARCH_LINKS:="-lintl $(PNG) -lz -lbe -liconv $(FRIBIDI_LIB)" -+beos_ARCH_LINKS:="-lintl $(PNG) -lz -lbe -lnetwork -liconv $(FRIBIDI_LIB)" - linux_ARCH_LINKS:=$(PAPER_LIB) $(FRIBIDI_LIB) - ARCH_LINKS:=$($(OS)_ARCH_LINKS) - -@@ -92,11 +92,10 @@ - # Where things will go when ultimately installed: - windows_PREFIX:=/usr/local - osx_PREFIX:=/usr/local --beos_PREFIX:=/boot/apps/Games/TuxPaint -+beos_PREFIX:=$(shell finddir B_APPS_DIRECTORY)/TuxPaint - linux_PREFIX:=/usr/local - PREFIX:=$($(OS)_PREFIX) - -- - # Root directory to place files when creating packages. - # PKG_ROOT is the old name for this, and should be undefined. - # "TuxPaint-1" is the OLPC XO name. Installing to ./ is bad! -@@ -137,6 +136,10 @@ - CONFDIR:=$(DESTDIR)$(PREFIX)/etc/tuxpaint - endif - -+ifeq ($(SYSNAME),Haiku) -+ CONFDIR:=$(shell finddir B_USER_SETTINGS_DIRECTORY)/TuxPaint -+endif -+ - # Icons and launchers: - ICON_PREFIX:=$(DESTDIR)$(PREFIX)/share/pixmaps - X11_ICON_PREFIX:=$(DESTDIR)$(PREFIX)/X11R6/include/X11/pixmaps -diff -urN tuxpaint-0.9.21/src/fonts.c tuxpaint-0.9.21-haiku/src/fonts.c ---- tuxpaint-0.9.21/src/fonts.c 2009-06-06 11:22:00.000000000 -0700 -+++ tuxpaint-0.9.21-haiku/src/fonts.c 2009-11-08 13:52:07.000000000 -0800 -@@ -67,6 +67,11 @@ - #include "win32_print.h" - #endif - -+#ifdef __HAIKU__ -+#include -+#include -+#endif -+ - #ifdef __APPLE__ - #include "wrapperdata.h" - extern WrapperData macosx; -@@ -456,7 +461,9 @@ - close(sv[1]); - return; - } -+#ifndef __HAIKU__ - nice(42); // be nice, letting the main thread get the CPU -+#endif - sched_yield(); // try to let the parent run right now - prctl(PR_SET_PDEATHSIG, 9); // get killed if parent exits - font_socket_fd = sv[1]; -@@ -699,6 +706,14 @@ - loadfonts(screen, "/boot/home/config/font/ttffonts"); - loadfonts(screen, "/usr/share/fonts"); - loadfonts(screen, "/usr/X11R6/lib/X11/fonts"); -+#elif defined(__HAIKU__) -+ dev_t volume = dev_for_path("/boot"); -+ char buffer[B_PATH_NAME_LENGTH+B_FILE_NAME_LENGTH]; -+ status_t result; -+ result = find_directory(B_SYSTEM_FONTS_DIRECTORY, volume, false, buffer, sizeof(buffer)); -+ loadfonts(screen, buffer); -+ result = find_directory(B_COMMON_FONTS_DIRECTORY, volume, false, buffer, sizeof(buffer)); -+ loadfonts(screen, buffer); - #elif defined(__APPLE__) - loadfonts(screen, "/System/Library/Fonts"); - loadfonts(screen, "/Library/Fonts"); -diff -urN tuxpaint-0.9.21/src/tuxpaint.c tuxpaint-0.9.21-haiku/src/tuxpaint.c ---- tuxpaint-0.9.21/src/tuxpaint.c 2009-06-18 13:51:58.000000000 -0700 -+++ tuxpaint-0.9.21-haiku/src/tuxpaint.c 2009-11-07 15:40:44.000000000 -0800 -@@ -212,7 +212,7 @@ - - #include - --#ifdef __BEOS__ -+#if defined __BEOS__ || defined __HAIKU__ - #include - #else - #include -@@ -245,7 +245,7 @@ - #include - #include - --#ifdef __BEOS__ -+#if defined __BEOS__ || defined __HAIKU__ - - /* BeOS */ - -@@ -948,7 +948,7 @@ - magic_api *magic_api_struct; /* Pointer to our internal functions; passed to shared object's functions when we call them */ - - --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - #include - #if !defined(PAPER_H) - #error "---------------------------------------------------" -@@ -1396,7 +1396,7 @@ - static void stamp_draw(int x, int y); - static void rec_undo_buffer(void); - static void show_usage(FILE * f, char *prg); --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !(__HAIKU__) - void show_available_papersizes(FILE * fi, char * prg); - #endif - static void setup(int argc, char *argv[]); -@@ -4998,6 +4998,8 @@ - printf(" Built for Windows (WIN32)\n"); - #elif __BEOS__ - printf(" Built for BeOS (__BEOS__)\n"); -+#elif __HAIKU__ -+ printf(" Built for Haiku (__HAIKU__)\n"); - #elif NOKIA_770 - printf(" Built for Maemo (NOKIA_770)\n"); - #elif OLPC_XO -@@ -5116,7 +5118,7 @@ - #endif - " %s [--printdelay=SECONDS]\n" - " %s [--altprintmod | --altprintalways | --altprintnever]\n" --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - " %s [--papersize PAPERSIZE | --papersize help]\n" - #endif - " %s [--lang LANGUAGE | --locale LOCALE | --lang help]\n" -@@ -5135,7 +5137,7 @@ - blank, - #endif - blank, blank, --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - blank, - #endif - blank, blank, blank, blank, blank); -@@ -6188,7 +6190,7 @@ - - - --#if defined(__BEOS__) || defined(WIN32) -+#if defined(__BEOS__) || defined(__HAIKU__) || defined(WIN32) - /* if run from gui, like OpenTracker in BeOS or Explorer in Windows, - find path from which binary was run and change dir to it - so all files will be local :) */ -@@ -6281,7 +6283,7 @@ - colorfile[0] = '\0'; - - --#ifdef __BEOS__ -+#if defined __BEOS__ || defined __HAIKU__ - /* Fancy cursors on BeOS are buggy in SDL */ - - no_fancy_cursors = 1; -@@ -6293,7 +6295,7 @@ - - savedir = GetDefaultSaveDir("TuxPaint"); - datadir = GetDefaultSaveDir("TuxPaint"); --#elif __BEOS__ -+#elif defined__BEOS__ || __HAIKU__ - /* BeOS */ - - savedir = strdup("./userdata"); -@@ -6368,7 +6370,7 @@ - #if defined(WIN32) - /* Default local config file in users savedir directory on Windows */ - snprintf(str, sizeof(str), "%s/tuxpaint.cfg", savedir); /* FIXME */ --#elif defined(__BEOS__) -+#elif defined(__BEOS__) || defined(__HAIKU__) - /* BeOS: Use a "tuxpaint.cfg" file: */ - - strcpy(str, "tuxpaint.cfg"); -@@ -6593,7 +6595,7 @@ - { - alt_print_command_default = ALTPRINT_MOD; - } --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - else if (strstr(argv[i], "--papersize=") == argv[i]) - { - papersize = strdup(argv[i] + strlen("--papersize=")); -@@ -10149,7 +10151,7 @@ - disallow_print = 1; - #endif - --#ifdef __BEOS__ -+#if defined __BEOS__ || defined __HAIKU__ - if (!IsPrinterAvailable()) - disallow_print = disable_print = 1; - #endif -@@ -12321,7 +12323,7 @@ - free(lock_fname); - } - --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - if (papersize != NULL) - free(papersize); - #endif -@@ -15436,7 +15438,7 @@ - - void do_print(void) - { --#if !defined(WIN32) && !defined(__BEOS__) && !defined(__APPLE__) -+#if !defined(WIN32) && !defined(__BEOS__) && !defined(__APPLE__) && !defined(__HAIKU__) - char *pcmd; - FILE *pi; - -@@ -15488,7 +15490,7 @@ - if (error) - fprintf(stderr, "%s\n", error); - } --#elif defined(__BEOS__) -+#elif defined(__BEOS__) || defined(__HAIKU__) - /* BeOS */ - - SurfacePrint(canvas); -@@ -16171,7 +16173,7 @@ - #endif - use_print_config = 0; - } --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - else if (strstr(str, "printcommand=") == str) - { - /* FIXME: This would need to be done one argument (space-delim'd) at a time */ -@@ -16249,7 +16251,7 @@ - { - alt_print_command_default = ALTPRINT_NEVER; - } --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - else if (strstr(str, "papersize=") == str) - { - papersize = strdup(str + strlen("papersize=")); -@@ -18727,7 +18729,7 @@ - return(which != -1); - } - --#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) -+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__BEOS__) && !defined(__HAIKU__) - void show_available_papersizes(FILE * fi, char * prg) - { - const struct paper * ppr; -diff -urN tuxpaint-0.9.21/src/tuxpaint.rdef tuxpaint-0.9.21-haiku/src/tuxpaint.rdef ---- tuxpaint-0.9.21/src/tuxpaint.rdef 1969-12-31 16:00:00.000000000 -0800 -+++ tuxpaint-0.9.21-haiku/src/tuxpaint.rdef 2009-11-07 15:40:44.000000000 -0800 -@@ -0,0 +1,123 @@ -+ -+resource large_icon array { -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0000000000FFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000000000FFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000700000400000000FFFFFFFFFFFFFFFF" -+ $"FF000000FFFF00FFFFFFFFFFFFFF00003F10133F1A000000FFFFFFFFFFFFFFFF" -+ $"0000000300000000FFFFFFFFFFFF001C1C1C3F3F3F05000000FFFFFFFFFFFFFF" -+ $"0000000000000000FFFFFFFFFFFF0010123F16183F06000000FFFFFFFFFFFFFF" -+ $"0000000000000000FFFFFFFF0000071D3F3F0A141D00000000FFFFFFFFFFFFFF" -+ $"000000000000000000FFFF000085F9BD85831E3F0B00000000FFFFFFFFFFFFFF" -+ $"00000000000000000000FF00BD85F9F9F9F9BD090000000000FFFFFFFFFFFFFF" -+ $"0000000000000000000000AB8503F9F9F9F9F9B10000000000FFFFFFFFFFFFFF" -+ $"FF00000100000000000000AB85ABF9F9F9F9F9AB0000000000FFFFFFFFFFFFFF" -+ $"FFFFFF00000000000000000285F9F9F9F9F9F9B10000000000FFFFFFFFFFFFFF" -+ $"FFFFFFFFFF0000000000000002ABBDF9F9F985010000000000FFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFF00000000000000000004D7D70000000000000000FFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFF0000000000000004030000000000000000000000FFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFF000000031B3F3F1A0600000000000000000000FFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFF0000000E3F3F3F3F180000080200000000000000FFFFFF" -+ $"FFFFFFFFFFFFFFFF00000005183F3F1E59DA0600070C0000000000000000FFFF" -+ $"FFFFFFFFFFFFFFFF0000103F3F3FDABBBBC48A0700110500000000000000FFFF" -+ $"FFFFFFFFFFFFFF0000033F3F3F3FBABBE3CA8A8485AB1300000000000000FFFF" -+ $"FFFFFFFFFFFFFF0000083F3F3F59E9A8A90F89D1AB841300000000000010FFFF" -+ $"FFFFFFFFFFFFFF0000083F3F3F1D1C3F3F3F3F0101130200000000D78900FFFF" -+ $"FFFFFFFFFFFFFF0000033F3F3F3F3F3F3F3F3F0102060000000007628300FFFF" -+ $"FFFFFFFFFFFFFF0000001A3F3F3F3F3F3F3F3F01000000031004000000FFFFFF" -+ $"FFFFFFFFFFFFFFFF00000B3F3F3F3F3F3F3F3F0000000F0E030000FFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFF00000000000000000000000000000000000000FFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+}; -+ -+resource mini_icon array { -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFF000000FFFFFFFFFF" -+ $"0000FFFFFFFFFF00103F0000FFFFFFFF" -+ $"00000000FFFFFF103F180600FFFFFFFF" -+ $"00000000FF0085BD833F0000FFFFFFFF" -+ $"0000000000AB03F9F9B10000FFFFFFFF" -+ $"FF0000000002F9F9F9B10000FFFFFFFF" -+ $"FFFFFF0000000004D700000000FFFFFF" -+ $"FFFFFFFF00001B3F060000000000FFFF" -+ $"FFFFFFFF00053F1EDA000C00000000FF" -+ $"FFFFFF00033F3FBBCA84AB00000000FF" -+ $"FFFFFF00083F1D3F3F01130000D700FF" -+ $"FFFFFF00003F3F3F3F0100030400FFFF" -+ $"FFFFFFFF000000000000000000FFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+ $"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF" -+}; -+ -+ -+resource vector_icon array { -+ $"6E6369660602001602B8B10BBA4D843A4D84B8B10B4A0E9346F9C10000FF2105" -+ $"FF02000602B796BAB8831C38831CB796BA4A8259494B3900FFBC00FFFFDD7D02" -+ $"01060239670F00000000000039670F4A302B4B07CD00EB427CD9701A36020006" -+ $"03B1F29A361F94B61F94B1F29A4A80FD4B204A00E6B871919D7D44FF49391002" -+ $"00060331EAABB5ED5B35ED5B31EAAB4BFBBC4B7E58007C5C2078D5A72CFFFECA" -+ $"310D021DCA35CC7FCA35CC7FCA63CB8CCA97C97ECA53CA5CCA97C97ECB3EC8E4" -+ $"CAEEC957CB3EC8E4CB3EC8E4CB3EC8E4CBCDC80ACC5AC5C6CCA4C727CC25C4C8" -+ $"CA7EC2F7CB27C3B3CA35C2A6C959C1C6C9C3C22FC8FAC166C84DC07CC85FC0E3" -+ $"C83EC027C865BF4BC85CBFAB56BE0EC865BB94C887BCCBC81CB8F0C4DFB619C7" -+ $"4FB687C4DFB619C4DFB60CC4DFB60CC4DFB60CC41BB60CC41BB60CC151B690BF" -+ $"D1BBACC023B8B0BE37BC0ABD1ABEDDBD25BCF0BD1EBF05BCE9BEDDBCE3BED9BC" -+ $"ACBEB4BC4BBE4BBC81BE76BB83BDACB9F5BBD1BA44BCC8B9C1BB2DB8DCB99FB9" -+ $"B8B986B872B9ACB87BBA7BB877BA2EB87CBAAFB862BA6FB867BA7BB7C331B59E" -+ $"B9ACB682B971B4D9B9DEB3B6BB7BB421BAD0B363BC0220BD26B326BC9B20BD26" -+ $"20BDB920BDB9B30FBE60B49EBE4BB3F8BE86B75FBFE5BBF5C403B9DAC1C4BAF2" -+ $"C548BA0DC91CBA0AC6DBBA0FCA8ABB3ECC7FBA9FCB8DBB3ECC7F020DBD7CCC7F" -+ $"BD7CCC7FBCD5CB9ABC01C835BBF0C9E5BC09C779BCB8C61CBC3CC698BD24C5B0" -+ $"BE4BC540BDD9C5B7BE64C456BF27C34C3DC3A0C029C2BDC264C3BAC1B4C311C2" -+ $"D8C428C326C53EC2FFC4B5C326C53EC326C53EC326C53EC33DC58CC377C612C3" -+ $"5AC5D0C377C612C3C4C6D2C3C4C6D2C3E2C72CC3F7C810C3F7C790C3E4C998C3" -+ $"95CC7FC420CB6FC395CC7FBD7CCC7FBD7CCC7FBD7CCC7F020DC371BD32C3D0BD" -+ $"8DC371BD32C374BD31C374BD31C319BD08C26FBCA8C2C8BCD1C26FBCA8C270BC" -+ $"ACC270BCACC22EBC9EC1B9BC6FC1F5BC85C1B9BC6FC1BABC6CC1BABC6CC15DBC" -+ $"5FC0ADBC32C107BC48C0ADBC32C0ADBC32C0ADBC32BE5BBBD3BDE9BFF6BCCBBE" -+ $"20BE51C0A1C03FC13FBF42C0EDC0F4C17BC240C1A1C1B1C1A2C2A6C1A0C371C1" -+ $"70C339C18CC418C11CC471BEB9C49BBFC7C456BE10020FC5C6B9C4C5D4BAF5C5" -+ $"BDB8FCC458B893C54BB86FC381B8B3C2DEBA32C348B98BC2EBB8FEC195B893C2" -+ $"61B85AC105B8BBC04BBAB8C064B9D7C03ABB56C0ADBC0EC046BBD8C0ADBC0EC0" -+ $"ACBC11C0ACBC11C107BC28C1BABC4CC15EBC3FC1BABC4CC1B9BC4BC1B9BC4BC2" -+ $"06BC5AC24CBC26C218BC2FC260BC46C27DBC94C268BC73C27DBC94C279BC95C2" -+ $"79BC95C2D5BCBFC37EBD1EC32639C37EBD1EC37DBD1AC37DBD1AC3D1BD35C495" -+ $"BD1AC442BD41C547BCC60202C1A1BA32C0B6B9DAC200BA8C44BB4AC1C8BB45C0" -+ $"9DBB530202C3D2BADDC34DBAF4C497BABAC3A1BC3EC46BBC65C30ABC210202BF" -+ $"64BDD1BE7CBD77BFD1BE54BEDDBF94BF76BFA0BE21BF860002C6AFCB98C6AFCB" -+ $"98C7B3CBA6C966CA7BC8DECB03C966CA7B0005C5B3C96AC5B3C96AC5BEC939C5" -+ $"E0C8D3C5C1C8FDC60AC89BC682C844C650C875C6E4C7E4C6CBC6DEC70BC75FC6" -+ $"62C60BC57EC482C546C59BC57EC4820608FBBFC320C6B3C305C739C33AC62DC3" -+ $"53C60AC1FDC578C2C3C578C137C578BFCCC6E3C05BC5E5BF3CC7E0BFAAC894BF" -+ $"63C89DC01EC885C124C7F5C0EAC7F5C15EC7F5C1F7C81DC183C81DC26BC81DC3" -+ $"00C7E60606AE0BC353C60AC320C6B3C33AC62DC305C739C300C7E6C447C814C4" -+ $"7AC735C45FC79DC494C6CDC4BBC6870607EF3EC6B9C760C6B9C7A5C6B9C74CC6" -+ $"B2C725C6B7C739C6B2C725C4BBC687C47AC735C494C6CDC45FC79DC447C814C5" -+ $"FBC874C5FBC87450C854C660C821C646C83BC699C7E90607FB3FCC68C96ACC46" -+ $"C9D0CC8FC8F7CBF0C8CBCB6BC8A1CB6BC8A1CB5CC8B7CB3EC8E4CB4CC8CECB3E" -+ $"C8E4CB3EC8E4CB3EC8E4CAFEC941CAA0C979CAB9C96CCAA0C979CBCFC9BCCBCF" -+ $"C9BCCBCFC9BC0D0A000100000A010101000A020102000A010103000A00010400" -+ $"0A000105000A000106000A0101071001178122040A0101081001178122040A03" -+ $"0109000A04010A000A05010B000A05010C00" -+}; -+ -+ -+resource app_signature "application/x-vnd.newbreedsoftware-tuxpaint"; -+ -+resource app_version { -+ major = 0, -+ middle = 150994944, -+ minor = 234881024, -+ -+ variety = B_APPV_DEVELOPMENT, -+ internal = 0, -+ -+ short_info = "Drawing program", -+ long_info = "A simple drawing program for children." -+}; -+ -+resource app_flags B_SINGLE_LAUNCH; diff --git a/media-gfx/tuxpaint/tuxpaint-0.9.21.recipe b/media-gfx/tuxpaint/tuxpaint-0.9.21.recipe deleted file mode 100644 index bd96e145d..000000000 --- a/media-gfx/tuxpaint/tuxpaint-0.9.21.recipe +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION="tuxpaint - Drawing program designed for young children" -HOMEPAGE="http://www.tuxpaint.org/" -SOURCE_URI="http://downloads.sourceforge.net/tuxpaint/tuxpaint-0.9.21.tar.gz" -CHECKSUM_MD5="a88401d1860648098eeed819cff038fa" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="media-libs/libsdl >= 1.2.14 - media-libs/sdl-ttf >= 2.0.9 - media-libs/sdl-image > 1.2.10 - dev-libs/fribidi >= 0.19.2 - app-text/libpaper >= 1.1.23+nmu2 - media-libs/libpng >= 1.2 - media-libs/freetype >= 2.3.11 - media-libs/sdl-mixer >= 1.2.11 - dev-util/pkgconfig >= 0.23 - sys-devel/gettext >= 0.17" - -BUILD() -{ - cd tuxpaint-0.9.21 - make -} - -INSTALL() -{ - cd tuxpaint-0.9.21 - make install -} diff --git a/media-libs/gd/gd-2.0.36rc1.recipe b/media-libs/gd/gd-2.0.36rc1.recipe deleted file mode 100644 index 00aa59cf1..000000000 --- a/media-libs/gd/gd-2.0.36rc1.recipe +++ /dev/null @@ -1,26 +0,0 @@ -DESCRIPTION="GD is an open source library for the dynamic creation of images by programmers." -HOMEPAGE="http://www.libgd.org" -SOURCE_URI="http://www.libgd.org/releases/gd-2.0.36RC1.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="media-libs/libpng >= 1.2.44 - media-libs/jpeg >= 6 - media-libs/giflib >= 4.1.6" - -CHECKSUM_MD5="39ac48e6d5e0012a3bd2248a0102f209" -BUILD() -{ - cd gd-2.0.36RC1 - libtoolize --force --copy --install - aclocal -I config - autoconf - automake - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd gd-2.0.36RC1 - make install -} diff --git a/media-libs/giflib/giflib-4.1.6.recipe b/media-libs/giflib/giflib-4.1.6.recipe deleted file mode 100644 index b0107c0a4..000000000 --- a/media-libs/giflib/giflib-4.1.6.recipe +++ /dev/null @@ -1,27 +0,0 @@ -DESCRIPTION="giflib - A library for processing GIFs" -HOMEPAGE="http://sourceforge.net/projects/giflib/" -SOURCE_URI="http://freefr.dl.sourceforge.net/project/giflib/giflib-4.x/giflib-4.1.6/giflib-4.1.6.tar.gz" -CHECKSUM_MD5="4ff2ecec336b9724c5190f06e8a40f9e" -REVISION="3" -STATUS_HAIKU="stable" -DEPEND="" - -BUILD() -{ - cd giflib-4.1.6 - sed -i 's#gl/gl.h#GL/gl.h#' configure.ac - sed -i 's#gl.gl.h#GL/gl.h#' lib/dev2gif.c - libtoolize --force --copy --install - ./autogen.sh - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd giflib-4.1.6 - make install -} - -LICENSE="MIT" -COPYRIGHT="1997-2007 Eric S. Raymond and Toshio Kuratomi" diff --git a/media-libs/liblo/liblo-0.26.recipe b/media-libs/liblo/liblo-0.26.recipe deleted file mode 100644 index e8723ab67..000000000 --- a/media-libs/liblo/liblo-0.26.recipe +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION="Lightweight OSC (Open Sound Control) Implementation" -HOMEPAGE="http://liblo.sourceforge.net/" -SOURCE_URI="http://downloads.sourceforge.net/liblo/liblo-0.26.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" -CHECKSUM_MD5="5351de14262560e15e7f23865293b16f" -BUILD() -{ - cd liblo-0.26 - libtoolize --force --copy --install - aclocal - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd liblo-0.26 - make install DESTDIR="${DESTDIR}" -} - -LICENSE="GNU LGPL v2.1" -COPYRIGHT="2008-2009 Stephen Sinclair - 2008 Kentaro Fukuchi - 2005-2008 Nicholas Humfrey - 2005 Martin Habets - 2005-2006 Steve Harris" diff --git a/media-libs/liblo/patch/liblo-0.26.patch b/media-libs/liblo/patch/liblo-0.26.patch deleted file mode 100644 index 1adad275e..000000000 --- a/media-libs/liblo/patch/liblo-0.26.patch +++ /dev/null @@ -1,105 +0,0 @@ -diff -aur liblo-0.26/liblo.pc.in liblo-0.26_Haiku/liblo.pc.in ---- liblo-0.26/liblo.pc.in 2008-06-02 19:10:42.012845056 -0700 -+++ liblo-0.26_Haiku/liblo.pc.in 2012-05-15 16:42:17.135528448 -0700 -@@ -6,5 +6,5 @@ - Name: liblo - Version: @PACKAGE_VERSION@ - Description: A lightweight OSC server/client library --Libs: -L${libdir} -llo -lpthread -+Libs: -L${libdir} -llo - Cflags: -I${includedir} -diff -aur liblo-0.26/src/Makefile.am liblo-0.26_Haiku/src/Makefile.am ---- liblo-0.26/src/Makefile.am 2009-03-07 09:09:52.017825792 -0800 -+++ liblo-0.26_Haiku/src/Makefile.am 2012-05-15 16:35:36.973340672 -0700 -@@ -13,7 +13,7 @@ - - liblo_la_CFLAGS = -Wall -I$(top_srcdir) - liblo_la_SOURCES = $(SOURCE_FILES) --liblo_la_LIBADD = -lpthread -+liblo_la_LIBADD = - liblo_la_LDFLAGS = -export-dynamic -version-info @LO_SO_VERSION@ - - noinst_PROGRAMS = testlo subtest -diff -aur liblo-0.26/src/server.c liblo-0.26_Haiku/src/server.c ---- liblo-0.26/src/server.c 2009-03-05 23:09:26.018087936 -0800 -+++ liblo-0.26_Haiku/src/server.c 2012-05-15 16:31:29.817627136 -0700 -@@ -958,44 +960,44 @@ - - //inet_ntop(s->addr.ss_family, &s->addr.padding, hostname, sizeof(hostname)); - if (s->protocol == LO_UDP && s->addr_len>0) { -- err = getnameinfo((struct sockaddr *)&s->addr, sizeof(s->addr), -- hostname, sizeof(hostname), portname, sizeof(portname), -- NI_NUMERICHOST | NI_NUMERICSERV); -- if (err) { -- switch (err) { -- case EAI_AGAIN: -- lo_throw(s, err, "Try again", path); -- break; -- case EAI_BADFLAGS: -- lo_throw(s, err, "Bad flags", path); -- break; -- case EAI_FAIL: -- lo_throw(s, err, "Failed", path); -- break; -- case EAI_FAMILY: -- lo_throw(s, err, "Cannot resolve address family", path); -- break; -- case EAI_MEMORY: -- lo_throw(s, err, "Out of memory", path); -- break; -- case EAI_NONAME: -- lo_throw(s, err, "Cannot resolve", path); -- break; -+ err = getnameinfo((struct sockaddr *)&s->addr, sizeof(struct sockaddr), -+ hostname, sizeof(hostname), portname, sizeof(portname), -+ NI_NUMERICHOST | NI_NUMERICSERV); -+ if (err) { -+ switch (err) { -+ case EAI_AGAIN: -+ lo_throw(s, err, "Try again", path); -+ break; -+ case EAI_BADFLAGS: -+ lo_throw(s, err, "Bad flags", path); -+ break; -+ case EAI_FAIL: -+ lo_throw(s, err, "Failed", path); -+ break; -+ case EAI_FAMILY: -+ lo_throw(s, err, "Cannot resolve address family", path); -+ break; -+ case EAI_MEMORY: -+ lo_throw(s, err, "Out of memory", path); -+ break; -+ case EAI_NONAME: -+ lo_throw(s, err, "Cannot resolve", path); -+ break; - #ifndef WIN32 -- case EAI_SYSTEM: -- lo_throw(s, err, strerror(err), path); -- break; --#endif -- default: -- lo_throw(s, err, "Unknown error", path); -- break; -- } -+ case EAI_SYSTEM: -+ lo_throw(s, err, strerror(err), path); -+ break; -+#endif -+ default: -+ lo_throw(s, err, "Unknown error", path); -+ break; -+ } - -- return; -- } -+ return; -+ } - } else { -- hostname[0] = '\0'; -- portname[0] = '\0'; -+ hostname[0] = '\0'; -+ portname[0] = '\0'; - } - - diff --git a/media-sound/fluidsynth/fluidsynth-1.1.3.recipe b/media-sound/fluidsynth/fluidsynth-1.1.3.recipe deleted file mode 100644 index 501fbc795..000000000 --- a/media-sound/fluidsynth/fluidsynth-1.1.3.recipe +++ /dev/null @@ -1,24 +0,0 @@ -DESCRIPTION="Fluidsynth is a software real-time synthesizer based on the Soundfont 2 specifications." -HOMEPAGE="http://www.fluidsynth.org/" -SOURCE_URI="http://sourceforge.net/projects/fluidsynth/files/fluidsynth-1.1.3/fluidsynth-1.1.3.tar.bz2/download" -CHECKSUM_MD5="6e35225b088eae0c2af0b78097941655" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/glib >= 2.24.1 - media-libs/libsndfile >= 1.0.18" - -BUILD() -{ - cd fluidsynth-1.1.3 - cmake . - make -} - -INSTALL() -{ - cd fluidsynth-1.1.3 - make install -} - -LICENSE="GNU LGPL v2.1" -COPYRIGHT="2007-2010 Josh Green, Pedro Lopez-Cabanillas, David Henningsson" diff --git a/media-sound/fluidsynth/fluidsynth-1.1_midi_buffer.recipe b/media-sound/fluidsynth/fluidsynth-1.1_midi_buffer.recipe deleted file mode 100644 index 1a3d0c6bc..000000000 --- a/media-sound/fluidsynth/fluidsynth-1.1_midi_buffer.recipe +++ /dev/null @@ -1,26 +0,0 @@ -DESCRIPTION="A branch for adding a new function to the FluidSynth API, fluid_player_add_mem." -HOMEPAGE="https://code.launchpad.net/~mgiuca/fluidsynth/midi-buffer" -SOURCE_URI="bzr+lp:~mgiuca/fluidsynth/midi-buffer" -#CHECKSUM_MD5="" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/glib >= 2.24.1 - media-libs/libsndfile >= 1.0.18" - -BUILD() -{ - cd fluidsynth-1.1-midi-buffer - cd fluidsynth - cmake . - make -} - -INSTALL() -{ - cd fluidsynth-1.1-midi-buffer - cd fluidsynth - make install -} - -LICENSE="GNU LGPL v2.1" -COPYRIGHT="2007-2011 Matt Giuca, Josh Green, Pedro Lopez-Cabanillas, David Henningsson" diff --git a/media-sound/fluidsynth/patches/fluidsynth-1.1-midi-buffer.patch b/media-sound/fluidsynth/patches/fluidsynth-1.1-midi-buffer.patch deleted file mode 100644 index e21a1f21f..000000000 --- a/media-sound/fluidsynth/patches/fluidsynth-1.1-midi-buffer.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -Naur fluidsynth-1.1-midi-buffer/fluidsynth/CMakeLists.txt fluidsynth-1.1-midi-buffer-haiku/fluidsynth/CMakeLists.txt ---- fluidsynth-1.1-midi-buffer/fluidsynth/CMakeLists.txt 2011-04-24 20:59:42.047710208 -0300 -+++ fluidsynth-1.1-midi-buffer-haiku/fluidsynth/CMakeLists.txt 2011-04-24 21:01:20.278134784 -0300 -@@ -166,10 +166,18 @@ - add_definitions ( -mms-bitfields ) - endif ( MINGW ) - else ( WIN32 ) --# Check PThreads, but not in Windows -- find_package ( Pthreads REQUIRED ) -- set ( HAVE_LIBPTHREAD ${PTHREADS_FOUND} ) -- set ( LIBFLUID_LIBS "m" ) -+ -+if (UNIX AND NOT BEOS) -+# Check PThreads, but not in Windows -+ find_package ( Pthreads REQUIRED ) -+ set ( HAVE_LIBPTHREAD ${PTHREADS_FOUND} ) -+ set ( LIBFLUID_LIBS "m" ) -+endif (UNIX AND NOT BEOS) -+ -+if (BEOS) -+set ( LIBFLUID_LIBS "network") -+endif (BEOS) -+ - endif ( WIN32 ) - - # IBM OS/2 -diff -Naur fluidsynth-1.1-midi-buffer/fluidsynth/src/utils/fluid_sys.h fluidsynth-1.1-midi-buffer-haiku/fluidsynth/src/utils/fluid_sys.h ---- fluidsynth-1.1-midi-buffer/fluidsynth/src/utils/fluid_sys.h 2011-04-24 20:59:42.047710208 -0300 -+++ fluidsynth-1.1-midi-buffer-haiku/fluidsynth/src/utils/fluid_sys.h 2011-04-24 21:02:01.829685760 -0300 -@@ -335,7 +335,7 @@ - sample data. - */ - --#if defined(HAVE_SYS_MMAN_H) && !defined(__OS2__) -+#if defined(HAVE_SYS_MMAN_H) && !defined(__OS2__) && !defined(__HAIKU__) - #define fluid_mlock(_p,_n) mlock(_p, _n) - #define fluid_munlock(_p,_n) munlock(_p,_n) - #else diff --git a/media-sound/fluidsynth/patches/fluidsynth-1.1.3.patch b/media-sound/fluidsynth/patches/fluidsynth-1.1.3.patch deleted file mode 100644 index a43b39386..000000000 --- a/media-sound/fluidsynth/patches/fluidsynth-1.1.3.patch +++ /dev/null @@ -1,34 +0,0 @@ -diff -Naur fluidsynth-1.1.3/CMakeLists.txt fluidsynth-1.1.3-haiku/CMakeLists.txt ---- fluidsynth-1.1.3/CMakeLists.txt 2010-10-10 22:16:30.031457280 -0300 -+++ fluidsynth-1.1.3-haiku/CMakeLists.txt 2011-04-24 14:21:01.000000000 -0300 -@@ -152,9 +152,18 @@ - endif ( MINGW ) - else ( WIN32 ) - # Check PThreads, but not in Windows -+ -+if (UNIX AND NOT BEOS) -+# Check PThreads, but not in Windows - find_package ( Pthreads REQUIRED ) - set ( HAVE_LIBPTHREAD ${PTHREADS_FOUND} ) - set ( LIBFLUID_LIBS "m" ) -+endif (UNIX AND NOT BEOS) -+ -+if (BEOS) -+set ( LIBFLUID_LIBS "network") -+endif (BEOS) -+ - endif ( WIN32 ) - - # IBM OS/2 -diff -Naur fluidsynth-1.1.3/src/utils/fluid_sys.h fluidsynth-1.1.3-haiku/src/utils/fluid_sys.h ---- fluidsynth-1.1.3/src/utils/fluid_sys.h 2010-10-10 22:16:30.022806528 -0300 -+++ fluidsynth-1.1.3-haiku/src/utils/fluid_sys.h 2011-04-24 14:17:52.000000000 -0300 -@@ -335,7 +335,7 @@ - sample data. - */ - --#if defined(HAVE_SYS_MMAN_H) && !defined(__OS2__) -+#if defined(HAVE_SYS_MMAN_H) && !defined(__OS2__) && !defined(__HAIKU__) - #define fluid_mlock(_p,_n) mlock(_p, _n) - #define fluid_munlock(_p,_n) munlock(_p,_n) - #else diff --git a/media-sound/fluidsynth/patches/fluidsynth-1.1_midi_buffer.patch b/media-sound/fluidsynth/patches/fluidsynth-1.1_midi_buffer.patch deleted file mode 100644 index e21a1f21f..000000000 --- a/media-sound/fluidsynth/patches/fluidsynth-1.1_midi_buffer.patch +++ /dev/null @@ -1,38 +0,0 @@ -diff -Naur fluidsynth-1.1-midi-buffer/fluidsynth/CMakeLists.txt fluidsynth-1.1-midi-buffer-haiku/fluidsynth/CMakeLists.txt ---- fluidsynth-1.1-midi-buffer/fluidsynth/CMakeLists.txt 2011-04-24 20:59:42.047710208 -0300 -+++ fluidsynth-1.1-midi-buffer-haiku/fluidsynth/CMakeLists.txt 2011-04-24 21:01:20.278134784 -0300 -@@ -166,10 +166,18 @@ - add_definitions ( -mms-bitfields ) - endif ( MINGW ) - else ( WIN32 ) --# Check PThreads, but not in Windows -- find_package ( Pthreads REQUIRED ) -- set ( HAVE_LIBPTHREAD ${PTHREADS_FOUND} ) -- set ( LIBFLUID_LIBS "m" ) -+ -+if (UNIX AND NOT BEOS) -+# Check PThreads, but not in Windows -+ find_package ( Pthreads REQUIRED ) -+ set ( HAVE_LIBPTHREAD ${PTHREADS_FOUND} ) -+ set ( LIBFLUID_LIBS "m" ) -+endif (UNIX AND NOT BEOS) -+ -+if (BEOS) -+set ( LIBFLUID_LIBS "network") -+endif (BEOS) -+ - endif ( WIN32 ) - - # IBM OS/2 -diff -Naur fluidsynth-1.1-midi-buffer/fluidsynth/src/utils/fluid_sys.h fluidsynth-1.1-midi-buffer-haiku/fluidsynth/src/utils/fluid_sys.h ---- fluidsynth-1.1-midi-buffer/fluidsynth/src/utils/fluid_sys.h 2011-04-24 20:59:42.047710208 -0300 -+++ fluidsynth-1.1-midi-buffer-haiku/fluidsynth/src/utils/fluid_sys.h 2011-04-24 21:02:01.829685760 -0300 -@@ -335,7 +335,7 @@ - sample data. - */ - --#if defined(HAVE_SYS_MMAN_H) && !defined(__OS2__) -+#if defined(HAVE_SYS_MMAN_H) && !defined(__OS2__) && !defined(__HAIKU__) - #define fluid_mlock(_p,_n) mlock(_p, _n) - #define fluid_munlock(_p,_n) munlock(_p,_n) - #else diff --git a/media-video/gnash/OptionalPackageDescription b/media-video/gnash/OptionalPackageDescription deleted file mode 100644 index 82bcd1610..000000000 --- a/media-video/gnash/OptionalPackageDescription +++ /dev/null @@ -1,5 +0,0 @@ -Package: Gnash -Version: 0.8 -Copyright: Copyright (C) 2005-2010 Free Software Foundation, Inc. -License: GNU GPL v3 -URL: http://www.gnu.org/software/gnash/ diff --git a/media-video/gnash/gnash-0.recipe b/media-video/gnash/gnash-0.recipe deleted file mode 100644 index 062478428..000000000 --- a/media-video/gnash/gnash-0.recipe +++ /dev/null @@ -1,114 +0,0 @@ -DESCRIPTION="Gnash - GNU Flash player" -HOMEPAGE="http://www.gnu.org/software/gnash/" -# dummy -SOURCE_URI="http://ports.haiku-files.org/export/682/haikuports/trunk/media-video/gnash/mime.zip" -CHECKSUM_MD5="1d22a6d67f69d0bfaf2f63e7e8e9d39f" -REVISION="1" -STATUS_HAIKU="stable" -MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." -DEPEND="media-video/ffmpeg >= 0.5 - media-image/giflib >= ?? - agg >= ?? - dev-libs/boost >= ??" -# Use 'install-gnash-deps --compile-time' to install deps -# -# notes: -# * the /boot/preferences/Gnash directory is not inserted into the archive, -# but it might be used to supplement /boot/home/config/settings/Gnash -# * on Haiku alpha -# ** versioned symlinks to libraries must be created; -# ** sound must be disabled in ~/config/Gnash/gnashrc; -# ** if you don't mind replacing system files, installing libroot with chgset 34161 backported will improve stability. -# ** more info on webpage -# - - -BUILD() -{ - if test ! -e gnash; then - bzr branch http://bzr.savannah.gnu.org/r/gnash/trunk/ gnash || true; - fi - - pushd gnash - setgcc gcc4 - if test ! -e configure; then - ./autogen.sh ; - rm config.status || true ; - fi - if test ! -e config.status; then - ./configure --prefix=/boot/apps/Gnash --exec-prefix=/boot/apps/Gnash --bindir=/boot/apps/Gnash --sysconfdir=/boot/preferences/Gnash --libdir=/boot/common/lib --enable-renderer=agg --enable-fps-debug=yes --enable-plugins --enable-npapi --with-npapi-plugindir=/boot/apps/Gnash CXXFLAGS='-Wno-multichar' --enable-scriptable; - fi - make "CXXFLAGS=-I/boot/common/include/boost-1_38/" - - pushd plugin/npapi ; - mkdir -pv .libs ; - MIMELOCATION=`pwd` ; - MIMELOCATION=`dirname "$MIMELOCATION"` ; - MIMELOCATION=`dirname "$MIMELOCATION"` ; - MIMELOCATION=`dirname "$MIMELOCATION"` ; - MIMELOCATION=`dirname "$MIMELOCATION"` ; - MIMELOCATION="$MIMELOCATION/download/mime.zip" ; - unzip -o "$MIMELOCATION" ; - for GCC_VERSION in gcc2 gcc4 ; do - ( echo "compiling libgnashplugin.$GCC_VERSION.so" && - setgcc $GCC_VERSION - PLUGIN_SRCS="mozilla-sdk/np_entry mozilla-sdk/npp_gate mozilla-sdk/npn_gate plugin callbacks external pluginScriptObject" - for src in $PLUGIN_SRCS; do - echo "$src".cpp - g++ -DHAVE_CONFIG_H -I. -I../.. -DPLUGIN_TRACE -DXP_HAIKU -DGNASHBINDIR=\"/boot/common/bin\" -DSYSCONFDIR=\"/boot/preferences/Gnash\" -I../libcore/parser -I../../libbase -I../backend -I./mozilla-sdk -I./mozilla-sdk/include -I/boot/common/include -I/boot/common/include/boost-1_38/ -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wnon-virtual-dtor -Wunused -Wno-multichar -c "$src".cpp -o "$src".o ; - done ; - PLUGIN_SRCS="${PLUGIN_SRCS} " - g++ -shared ${PLUGIN_SRCS// /.o } -lbe -lnetwork -o .libs/libgnashplugin.$GCC_VERSION.so && - copyattr x .libs/libgnashplugin.$GCC_VERSION.so - ) || (setgcc gcc4; exit 1); - done ; - rm x ; - setgcc gcc4 - popd - - popd -} -INSTALL() -{ - cd gnash - setgcc gcc4 - make install "CXXFLAGS=-I/boot/common/include/boost-1_38/" - - true DISTRODIR=`pwd`/../../distro - ROOTDIR=/boot/develop/haikuports/media-video/gnash - DISTRODIR=/boot/develop/haikuports/media-video/gnash/distro - if test ! -e "$DISTRODIR"; then - exit 1; - fi - - install plugin/npapi/.libs/libgnashplugin.gcc2.so "$DISTRODIR/boot/apps/Gnash" - install plugin/npapi/.libs/libgnashplugin.gcc4.so "$DISTRODIR/boot/apps/Gnash" - - pushd "$DISTRODIR" - - mkdir -pv boot/home/config/settings - cp -r boot/preferences/Gnash boot/home/config/settings - - mkdir -pv boot/home/config/settings/Mozilla/plugins - ln -s /boot/apps/Gnash/libgnashplugin.gcc2.so boot/home/config/settings/Mozilla/plugins/ - ln -s /boot/apps/Gnash/libgnashplugin.gcc4.so boot/home/config/settings/Mozilla/plugins/ - - rm boot/apps/Gnash/gprocessor boot/apps/Gnash/rtmpget boot/apps/Gnash/gnash - rm -r boot/apps/Gnash/include boot/apps/Gnash/share - rm -r boot/common/lib/pkgconfig - rm -r boot/common/lib/gnash/libmoz* || true - mkdir -pv boot/common/bin/ - ln -sf /boot/apps/Gnash/haiku-gnash boot/common/bin/haiku-gnash - ln -sf /boot/apps/Gnash/haiku-gnash boot/common/bin/gnash - for i in boot/common/lib/gnash/*; do - strip --strip-unneeded "$i" || true; - done - strip --strip-debug boot/apps/Gnash/haiku-gnash || true - - xres -o boot/apps/Gnash/haiku-gnash -a VICN:101:BEOS:ICON $ROOTDIR/additional-files/gnash.hvif - - popd - - - read -p "Gnash installed, press key " -} diff --git a/net-libs/enet/enet-1.2.2.recipe b/net-libs/enet/enet-1.2.2.recipe deleted file mode 100644 index 93b5e4061..000000000 --- a/net-libs/enet/enet-1.2.2.recipe +++ /dev/null @@ -1,24 +0,0 @@ -DESCRIPTION="enet" -HOMEPAGE="http://enet.bespin.org" -SOURCE_URI="http://enet.bespin.org/download/enet-1.2.2.tar.gz" -CHECKSUM_MD5="bae05cb752649e8c692944d5480fb861" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" - -BUILD() -{ - cd enet-1.2.2 - libtoolize --force --copy --install - autoreconf -i - ./configure --prefix=`finddir B_COMMON_DIRECTORY` -} - -INSTALL() -{ - cd enet-1.2.2 - make install -} - -LICENSE="MIT" -COPYRIGHT="2002-2010 Lee Salzman" diff --git a/net-libs/enet/patches/enet-1.2.2.patch b/net-libs/enet/patches/enet-1.2.2.patch deleted file mode 100644 index 86802132d..000000000 --- a/net-libs/enet/patches/enet-1.2.2.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Naur enet-1.2.2/configure.ac enet-1.2.2-haiku/configure.ac ---- enet-1.2.2/configure.ac 2010-05-20 13:55:27.056623104 -0300 -+++ enet-1.2.2-haiku/configure.ac 2011-04-24 01:31:41.000000000 -0300 -@@ -16,6 +16,8 @@ - - AC_CHECK_MEMBER(struct msghdr.msg_flags, [AC_DEFINE(HAS_MSGHDR_FLAGS)], , [#include ]) - -+AC_CHECK_LIB(network, connect) -+ - AC_CHECK_TYPE(socklen_t, [AC_DEFINE(HAS_SOCKLEN_T)], , - #include - #include diff --git a/net-misc/tor/patches/tor-0.2.2.35.patch b/net-misc/tor/patches/tor-0.2.2.35.patch deleted file mode 100644 index ca348e840..000000000 --- a/net-misc/tor/patches/tor-0.2.2.35.patch +++ /dev/null @@ -1,78 +0,0 @@ -diff -Naur tor-0.2.2.35/configure.in tor-0.2.2.35-haiku/configure.in ---- tor-0.2.2.35/configure.in 2011-12-15 18:00:33.013893632 +0100 -+++ tor-0.2.2.35-haiku/configure.in 2011-12-18 01:13:44.216268800 +0100 -@@ -215,7 +215,7 @@ - - AC_C_BIGENDIAN - --AC_SEARCH_LIBS(socket, [socket]) -+AC_SEARCH_LIBS(socket, [socket network]) - AC_SEARCH_LIBS(gethostbyname, [nsl]) - AC_SEARCH_LIBS(dlopen, [dl]) - AC_SEARCH_LIBS(inet_aton, [resolv]) -@@ -340,6 +340,19 @@ - fi - AC_SUBST(TOR_LIBEVENT_LIBS) - -+dnl ------------------------------------------------------ -+dnl Where do you live, libm? -+ -+dnl On some platforms (Haiku/BeOS) the math library is -+dnl part of libroot. In which case don't link against lm -+TOR_LIB_MATH="" -+save_LIBS="$LIBS" -+AC_SEARCH_LIBS(cos, [m], , AC_MSG_ERROR([Could not find libm and libcore does not provide the functions.])) -+if test "$ac_cv_search_cos" != "none required"; then -+ TOR_LIB_MATH="$ac_cv_search_cos" -+fi -+LIBS="$save_LIBS" -+AC_SUBST(TOR_LIB_MATH) - - dnl ------------------------------------------------------ - dnl Where do you live, openssl? And how do we call you? -diff -Naur tor-0.2.2.35/src/or/Makefile.am tor-0.2.2.35-haiku/src/or/Makefile.am ---- tor-0.2.2.35/src/or/Makefile.am 2011-12-15 17:28:37.048758784 +0100 -+++ tor-0.2.2.35-haiku/src/or/Makefile.am 2011-12-18 00:53:00.718536704 +0100 -@@ -43,7 +43,7 @@ - tor_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ @TOR_LDFLAGS_libevent@ - tor_LDADD = ./libtor.a ../common/libor.a ../common/libor-crypto.a \ - ../common/libor-event.a \ -- @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ -+ @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ - - noinst_HEADERS = buffers.h circuitbuild.h circuitlist.h circuituse.h \ - command.h config.h connection_edge.h connection.h connection_or.h \ -diff -Naur tor-0.2.2.35/src/test/Makefile.am tor-0.2.2.35-haiku/src/test/Makefile.am ---- tor-0.2.2.35/src/test/Makefile.am 2011-12-15 17:28:37.022806528 +0100 -+++ tor-0.2.2.35-haiku/src/test/Makefile.am 2011-12-18 00:53:47.138412032 +0100 -@@ -25,6 +25,6 @@ - @TOR_LDFLAGS_libevent@ - test_LDADD = ../or/libtor.a ../common/libor.a ../common/libor-crypto.a \ - ../common/libor-event.a \ -- @TOR_ZLIB_LIBS@ -lm @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ -+ @TOR_ZLIB_LIBS@ @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ - - noinst_HEADERS = tinytest.h tinytest_macros.h test.h -diff -Naur tor-0.2.2.35/src/tools/Makefile.am tor-0.2.2.35-haiku/src/tools/Makefile.am ---- tor-0.2.2.35/src/tools/Makefile.am 2011-12-15 17:28:37.020971520 +0100 -+++ tor-0.2.2.35-haiku/src/tools/Makefile.am 2011-12-18 00:54:15.212336640 +0100 -@@ -3,16 +3,16 @@ - - tor_resolve_SOURCES = tor-resolve.c - tor_resolve_LDFLAGS = @TOR_LDFLAGS_libevent@ --tor_resolve_LDADD = ../common/libor.a -lm @TOR_LIBEVENT_LIBS@ @TOR_LIB_WS32@ -+tor_resolve_LDADD = ../common/libor.a @TOR_LIB_MATH@ @TOR_LIBEVENT_LIBS@ @TOR_LIB_WS32@ - - tor_gencert_SOURCES = tor-gencert.c - tor_gencert_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ - @TOR_LDFLAGS_libevent@ - tor_gencert_LDADD = ../common/libor.a ../common/libor-crypto.a \ -- -lm @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ -+ @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ - - tor_checkkey_SOURCES = tor-checkkey.c - tor_checkkey_LDFLAGS = @TOR_LDFLAGS_zlib@ @TOR_LDFLAGS_openssl@ \ - @TOR_LDFLAGS_libevent@ - tor_checkkey_LDADD = ../common/libor.a ../common/libor-crypto.a \ -- -lm @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ -+ @TOR_LIB_MATH@ @TOR_ZLIB_LIBS@ @TOR_LIBEVENT_LIBS@ @TOR_OPENSSL_LIBS@ @TOR_LIB_WS32@ @TOR_LIB_GDI@ diff --git a/net-misc/tor/tor-0.2.2.35.recipe b/net-misc/tor/tor-0.2.2.35.recipe deleted file mode 100644 index 16880a52a..000000000 --- a/net-misc/tor/tor-0.2.2.35.recipe +++ /dev/null @@ -1,32 +0,0 @@ -DESCRIPTION="Anonymizing overlay network for TCP" -HOMEPAGE="http://www.torproject.org/" -SOURCE_URI="https://www.torproject.org/dist/tor-0.2.2.35.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/openssl >= 0.9.8 - dev-libs/libevent >= 2.0.10" -CHECKSUM_MD5="dcecf699c4b929319d5f1ce0358d4835" -BUILD() -{ - cd tor-0.2.2.35 - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd tor-0.2.2.35 - make install -} - -TEST() -{ - cd tor-0.2.2.35 - make test -} - -LICENSE="Zlib" -COPYRIGHT="2001-2004, Roger Dingledine - 2004-2006, Roger Dingledine, Nick Mathewson - 2007-2011, The Tor Project, Inc." diff --git a/net-misc/tor/tor-0.2.3.25.recipe b/net-misc/tor/tor-0.2.3.25.recipe deleted file mode 100644 index fca33fa73..000000000 --- a/net-misc/tor/tor-0.2.3.25.recipe +++ /dev/null @@ -1,37 +0,0 @@ -DESCRIPTION="Anonymizing overlay network for TCP" -HOMEPAGE="http://www.torproject.org/" -SOURCE_URI="https://www.torproject.org/dist/tor-0.2.3.25.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="dev-libs/openssl >= 0.9.8 - dev-libs/libevent >= 2.0.10" -CHECKSUM_MD5="a1c364189a9a66ed9daa8e6436489daf" - -BUILD() -{ - cd tor-0.2.3.25 - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` \ - --sysconfdir=`finddir B_COMMON_SETTINGS_DIRECTORY` \ - --datadir=`finddir B_COMMON_DATA_DIRECTORY` \ - --datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \ - --disable-asciidoc - make -} - -INSTALL() -{ - cd tor-0.2.3.25 - make install -} - -TEST() -{ - cd tor-0.2.3.25 - make test -} - -LICENSE="Zlib" -COPYRIGHT="2001-2004 Roger Dingledine - 2004-2006 Roger Dingledine, Nick Mathewson - 2007-2011 The Tor Project, Inc." diff --git a/net-p2p/rtorrent/patches/rtorrent-0.8.5.patch b/net-p2p/rtorrent/patches/rtorrent-0.8.5.patch deleted file mode 100644 index d0d1b81fc..000000000 --- a/net-p2p/rtorrent/patches/rtorrent-0.8.5.patch +++ /dev/null @@ -1,134 +0,0 @@ -diff -Naur rtorrent-0.8.5/rak/socket_address.h rtorrent-0.8.5-haiku/rak/socket_address.h ---- rtorrent-0.8.5/rak/socket_address.h 2008-05-07 12:19:12.000000000 +0000 -+++ rtorrent-0.8.5-haiku/rak/socket_address.h 2009-11-25 04:04:38.000000000 +0000 -@@ -55,6 +55,8 @@ - #include - #include - -+typedef unsigned short sa_family_t; -+ - namespace rak { - - class socket_address_inet; -diff -Naur rtorrent-0.8.5/src/display/canvas.cc rtorrent-0.8.5-haiku/src/display/canvas.cc ---- rtorrent-0.8.5/src/display/canvas.cc 2008-08-26 20:33:50.000000000 +0000 -+++ rtorrent-0.8.5-haiku/src/display/canvas.cc 2009-11-25 04:10:37.000000000 +0000 -@@ -38,7 +38,7 @@ - - #include - #include --#include -+#include - #include - - #include "canvas.h" -diff -Naur rtorrent-0.8.5/src/display/window_file_list.cc rtorrent-0.8.5-haiku/src/display/window_file_list.cc ---- rtorrent-0.8.5/src/display/window_file_list.cc 2008-11-16 15:55:08.000000000 +0000 -+++ rtorrent-0.8.5-haiku/src/display/window_file_list.cc 2009-11-25 17:26:03.000000000 +0000 -@@ -46,6 +46,8 @@ - #include "ui/element_file_list.h" - - #include "window_file_list.h" -+#include -+typedef std::basic_string StdWString; - - namespace display { - -@@ -59,7 +61,7 @@ - - // Convert std::string to std::wstring of given width (in screen positions), - // taking into account that some characters may be occupying two screen positions. --std::wstring -+StdWString - wstring_width(const std::string& i_str, int width) { - wchar_t result[width + 1]; - size_t length = std::mbstowcs(result, i_str.c_str(), width); -diff -Naur rtorrent-0.8.5/src/input/path_input.cc rtorrent-0.8.5-haiku/src/input/path_input.cc ---- rtorrent-0.8.5/src/input/path_input.cc 2008-05-07 12:19:11.000000000 +0000 -+++ rtorrent-0.8.5-haiku/src/input/path_input.cc 2009-11-25 17:27:41.000000000 +0000 -@@ -42,7 +42,8 @@ - #include - - #include --#include -+#include -+#include - - #include "path_input.h" - -@@ -72,7 +73,7 @@ - - struct _transform_filename { - void operator () (utils::directory_entry& entry) { -- if (entry.d_type == DT_DIR) -+ if (S_ISDIR(entry.d_type)) - entry.d_name += '/'; - } - }; -diff -Naur rtorrent-0.8.5/src/signal_handler.cc rtorrent-0.8.5-haiku/src/signal_handler.cc ---- rtorrent-0.8.5/src/signal_handler.cc 2008-05-07 12:19:11.000000000 +0000 -+++ rtorrent-0.8.5-haiku/src/signal_handler.cc 2009-11-25 12:17:33.000000000 +0000 -@@ -107,8 +107,8 @@ - return "Timer signal"; - case SIGTERM: - return "Termination signal"; -- case SIGBUS: -- return "Bus error"; -+// case SIGBUS: -+// return "Bus error"; - default: - return "Unlisted"; - } -diff -Naur rtorrent-0.8.5/src/signal_handler.h rtorrent-0.8.5-haiku/src/signal_handler.h ---- rtorrent-0.8.5/src/signal_handler.h 2008-05-07 12:19:11.000000000 +0000 -+++ rtorrent-0.8.5-haiku/src/signal_handler.h 2009-11-25 12:15:35.000000000 +0000 -@@ -37,7 +37,7 @@ - #ifndef RTORRENT_SIGNAL_HANDLER_H - #define RTORRENT_SIGNAL_HANDLER_H - --#include -+#include - #include - - class SignalHandler { -diff -Naur rtorrent-0.8.5/src/utils/directory.cc rtorrent-0.8.5-haiku/src/utils/directory.cc ---- rtorrent-0.8.5/src/utils/directory.cc 2008-05-07 12:19:11.000000000 +0000 -+++ rtorrent-0.8.5-haiku/src/utils/directory.cc 2009-11-25 17:28:40.000000000 +0000 -@@ -39,6 +39,7 @@ - #include - #include - #include -+#include - #include - #include - -@@ -69,6 +70,7 @@ - return false; - - struct dirent* entry; -+ struct stat st; - - while ((entry = readdir(d)) != NULL) { - if ((flags & update_hide_dot) && entry->d_name[0] == '.') -@@ -78,7 +80,8 @@ - - itr->d_fileno = entry->d_fileno; - itr->d_reclen = entry->d_reclen; -- itr->d_type = entry->d_type; -+ lstat(rak::path_expand(m_path).c_str(), &st); -+ itr->d_type = st.st_mode; - - #ifdef DIRENT_NAMLEN_EXISTS_FOOBAR - itr->d_name = std::string(entry->d_name, entry->d_name + entry->d_namlen); -diff -Naur rtorrent-0.8.5/src/utils/directory.h rtorrent-0.8.5-haiku/src/utils/directory.h ---- rtorrent-0.8.5/src/utils/directory.h 2008-05-07 12:19:11.000000000 +0000 -+++ rtorrent-0.8.5-haiku/src/utils/directory.h 2009-11-25 11:29:12.000000000 +0000 -@@ -41,6 +41,8 @@ - #include - #include - -+#define d_fileno d_ino -+ - namespace utils { - - struct directory_entry { diff --git a/net-p2p/rtorrent/rtorrent-0.8.5.recipe b/net-p2p/rtorrent/rtorrent-0.8.5.recipe deleted file mode 100644 index 87fa2868b..000000000 --- a/net-p2p/rtorrent/rtorrent-0.8.5.recipe +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION="rTorrent" -HOMEPAGE="http://libtorrent.rakshasa.no/" -SOURCE_URI="http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.5.tar.gz" -REVISION="1" -CHECKSUM_MD5="e701095e1824b7e512a17000f4c0a783" -STATUS_HAIKU="stable" -MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." -# pkgconfig is only a build dependency -DEPEND="pkgconfig >= 0.23 - curl >= 7.19.1 - libsigc++ >= ?? - net-libs/libtorrent >= 0.12.5" - -BUILD() -{ - cd rtorrent-0.8.5 - autoreconf -vfi - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd rtorrent-0.8.5 - make install -} -LICENSE="GNU GPL v2" -COPYRIGHT="2005-2009 Jari Sundell" diff --git a/sys-apps/dmidecode/dmidecode-2.11.recipe b/sys-apps/dmidecode/dmidecode-2.11.recipe deleted file mode 100644 index 15e756ac3..000000000 --- a/sys-apps/dmidecode/dmidecode-2.11.recipe +++ /dev/null @@ -1,25 +0,0 @@ -DESCRIPTION="Reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard" -HOMEPAGE="http://www.nongnu.org/dmidecode/" -SOURCE_URI="http://download.savannah.gnu.org/releases/dmidecode/dmidecode-2.11.tar.gz" -CHECKSUM_MD5="9fddbbc3e330bee5950b8b5d424a57cb" -REVISION="2" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd dmidecode-2.11 - make -} - -INSTALL() -{ - cd dmidecode-2.11 - make install prefix=`finddir B_COMMON_DIRECTORY` \ - sbindir=`finddir B_COMMON_BIN_DIRECTORY` \ - DESTDIR="$DESTDIR" \ - mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \ - docdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc/dmidecode -} - -LICENSE="GNU GPL v2" -COPYRIGHT="2000-2002 Alan Cox, 2002-2010 Jean Delvare" diff --git a/sys-devel/libtool/libtool-2.2.10.recipe b/sys-devel/libtool/libtool-2.2.10.recipe deleted file mode 100644 index 8a284085b..000000000 --- a/sys-devel/libtool/libtool-2.2.10.recipe +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION="libtool - a generic library support script" -HOMEPAGE="http://www.gnu.org/software/libtool" -SOURCE_URI="ftp://ftp.gnu.org/gnu/libtool/libtool-2.2.10.tar.gz" -CHECKSUM_MD5="b745d220e88163fcd9eea0a90ccf21b0" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd libtool-2.2.10 - ./bootstrap - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd libtool-2.2.10 - make install -} - -TEST() -{ - make check -} - -LICENSE="GNU GPL v2" -COPYRIGHT="2004-2010 Free Software Foundation, Inc." diff --git a/sys-devel/libtool/libtool-2.2.6.recipe b/sys-devel/libtool/libtool-2.2.6.recipe deleted file mode 100644 index 00005d0a3..000000000 --- a/sys-devel/libtool/libtool-2.2.6.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="libtool - a generic library support script" -HOMEPAGE="http://www.gnu.org/software/libtool" -SOURCE_URI="http://ftp.gnu.org/gnu/libtool/libtool-2.2.6a.tar.gz" -CHECKSUM_MD5="8ca1ea241cd27ff9832e045fe9afe4fd" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd libtool-2.2.6 - ./bootstrap - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd libtool-2.2.6 - make install - make check -} -LICENSE="GNU GPL v2" -COPYRIGHT="2004-2009 Free Software Foundation, Inc." diff --git a/sys-devel/libtool/libtool-2.2.6b.recipe b/sys-devel/libtool/libtool-2.2.6b.recipe deleted file mode 100644 index 3fe98ae62..000000000 --- a/sys-devel/libtool/libtool-2.2.6b.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="libtool - a generic library support script" -HOMEPAGE="http://www.gnu.org/software/libtool" -SOURCE_URI="http://ftp.gnu.org/gnu/libtool/libtool-2.2.6b.tar.gz" -CHECKSUM_MD5="07da460450490148c6d2df0f21481a25" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd libtool-2.2.6b - ./bootstrap - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd libtool-2.2.6b - make install -# make check -} -LICENSE="GNU GPL v2" -COPYRIGHT="2004-2009 Free Software Foundation, Inc." diff --git a/sys-devel/libtool/libtool-2.2.7b.recipe b/sys-devel/libtool/libtool-2.2.7b.recipe deleted file mode 100644 index 5632dddef..000000000 --- a/sys-devel/libtool/libtool-2.2.7b.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="libtool - a generic library support script" -HOMEPAGE="http://www.gnu.org/software/libtool" -SOURCE_URI="ftp://alpha.gnu.org/gnu/libtool/libtool-2.2.7b.tar.gz" -CHECKSUM_MD5="9f66a85efaeed0d9652f647986f6ad5b" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd libtool-2.2.7b - ./bootstrap - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd libtool-2.2.7b - make install -# make check -} -LICENSE="GNU GPL v2" -COPYRIGHT="2004-2010 Free Software Foundation, Inc." diff --git a/sys-devel/libtool/libtool-2.2.8.recipe b/sys-devel/libtool/libtool-2.2.8.recipe deleted file mode 100644 index f77e72ca2..000000000 --- a/sys-devel/libtool/libtool-2.2.8.recipe +++ /dev/null @@ -1,28 +0,0 @@ -DESCRIPTION="libtool - a generic library support script" -HOMEPAGE="http://www.gnu.org/software/libtool" -SOURCE_URI="ftp://ftp.gnu.org/gnu/libtool/libtool-2.2.8.tar.gz" -CHECKSUM_MD5="cad2a7188242bc8dbab0645532ae3d6f" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd libtool-2.2.8 - ./bootstrap - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd libtool-2.2.8 - make install -} - -TEST() -{ - make check -} - -LICENSE="GNU GPL v2" -COPYRIGHT="2004-2010 Free Software Foundation, Inc." diff --git a/sys-devel/libtool/libtool-2.2.x.recipe b/sys-devel/libtool/libtool-2.2.x.recipe deleted file mode 100644 index b841aa85e..000000000 --- a/sys-devel/libtool/libtool-2.2.x.recipe +++ /dev/null @@ -1,25 +0,0 @@ -DESCRIPTION="libtool - a generic library support script" -HOMEPAGE="http://www.gnu.org/software/libtool" -SOURCE_URI="git://git.savannah.gnu.org/libtool.git" -#CHECKSUM_MD5="" -REVISION="1" -MESSAGE="This is for building and testing of unreleased libtool" -STATUS_HAIKU="unstable" -DEPEND="" -BUILD() -{ - cd libtool-2.2.x - ./bootstrap - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd libtool-2.2.x - make install - make check -} - -LICENSE="GNU GPL v2" -COPYRIGHT="2004-2010 Free Software Foundation, Inc." diff --git a/sys-devel/libtool/patches/libtool-2.2.5a-haiku.diff b/sys-devel/libtool/patches/libtool-2.2.5a-haiku.diff deleted file mode 100644 index 5a51d6cd2..000000000 --- a/sys-devel/libtool/patches/libtool-2.2.5a-haiku.diff +++ /dev/null @@ -1,54 +0,0 @@ -diff -ur libtool-2.2.5a/libltdl/config/ltmain.m4sh libtool-2.2.5a-haiku/libltdl/config/ltmain.m4sh ---- libtool-2.2.5a/libltdl/config/ltmain.m4sh 2008-06-02 07:07:26.000000000 +0000 -+++ libtool-2.2.5a-haiku/libltdl/config/ltmain.m4sh 2008-06-05 16:07:25.000000000 +0000 -@@ -4072,7 +4072,7 @@ - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*) -+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; -@@ -6026,7 +6026,7 @@ - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) -+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) -diff -ur libtool-2.2.5a/libltdl/m4/libtool.m4 libtool-2.2.5a-haiku/libltdl/m4/libtool.m4 ---- libtool-2.2.5a/libltdl/m4/libtool.m4 2008-05-26 07:05:05.000000000 +0000 -+++ libtool-2.2.5a-haiku/libltdl/m4/libtool.m4 2008-06-06 09:32:17.000000000 +0000 -@@ -2344,6 +2344,18 @@ - hardcode_into_libs=yes - ;; - -+haiku*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ dynamic_linker="$host_os runtime_loader" -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LIBRARY_PATH -+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' -+ hardcode_into_libs=yes -+ ;; -+ - hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. -@@ -5656,6 +5668,10 @@ - gnu*) - ;; - -+ haiku*) -+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ ;; -+ - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: diff --git a/sys-devel/libtool/patches/libtool-2.2.6.patch b/sys-devel/libtool/patches/libtool-2.2.6.patch deleted file mode 100644 index f3af8308c..000000000 --- a/sys-devel/libtool/patches/libtool-2.2.6.patch +++ /dev/null @@ -1,113 +0,0 @@ -diff -ur libtool-2.2.6.orig/libltdl/config/ltmain.m4sh libtool-2.2.6/libltdl/config/ltmain.m4sh ---- libtool-2.2.6.orig/libltdl/config/ltmain.m4sh 2008-09-07 17:54:53.000000000 +0000 -+++ libtool-2.2.6/libltdl/config/ltmain.m4sh 2008-11-07 01:02:13.000000000 +0000 -@@ -4080,7 +4080,7 @@ - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) -+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; -@@ -6034,7 +6034,7 @@ - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) -+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) -diff -ur libtool-2.2.6.orig/libltdl/m4/libtool.m4 libtool-2.2.6/libltdl/m4/libtool.m4 ---- libtool-2.2.6.orig/libltdl/m4/libtool.m4 2008-09-05 11:54:41.000000000 +0000 -+++ libtool-2.2.6/libltdl/m4/libtool.m4 2008-11-07 01:12:21.000000000 +0000 -@@ -2344,6 +2344,19 @@ - hardcode_into_libs=yes - ;; - -+haiku*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ dynamic_linker="$host_os runtime_loader" -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LIBRARY_PATH -+ shlibpath_overrides_runpath=yes -+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' -+ hardcode_into_libs=yes -+ ;; -+ - hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. -@@ -3038,6 +3051,10 @@ - lt_cv_deplibs_check_method=pass_all - ;; - -+haiku*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ - hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in -@@ -3256,7 +3273,7 @@ - [AC_REQUIRE([AC_CANONICAL_HOST])dnl - LIBM= - case $host in --*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) -+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*) - # These system don't have libm, or don't need it - ;; - *-ncr-sysv4.3*) -@@ -3588,6 +3605,11 @@ - # DJGPP does not support shared libraries at all - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; -+ haiku*) -+ # PIC is the default for Haiku. -+ # The "-static" flag exists, but is broken. -+ _LT_TAGVAR(lt_prog_compiler_static, $1)= -+ ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. -@@ -3893,6 +3915,12 @@ - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - -+ haiku*) -+ # PIC is the default for Haiku. -+ # The "-static" flag exists, but is broken. -+ _LT_TAGVAR(lt_prog_compiler_static, $1)= -+ ;; -+ - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag -@@ -4343,6 +4371,11 @@ - fi - ;; - -+ haiku*) -+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ _LT_TAGVAR(link_all_deplibs, $1)=yes -+ ;; -+ - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no -@@ -5685,6 +5718,11 @@ - gnu*) - ;; - -+ haiku*) -+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ _LT_TAGVAR(link_all_deplibs, $1)=yes -+ ;; -+ - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: diff --git a/sys-devel/libtool/patches/libtool-2.2.6b.patch b/sys-devel/libtool/patches/libtool-2.2.6b.patch deleted file mode 100644 index e6f728764..000000000 --- a/sys-devel/libtool/patches/libtool-2.2.6b.patch +++ /dev/null @@ -1,113 +0,0 @@ -diff -ur libtool-2.2.6b.orig/libltdl/config/ltmain.m4sh libtool-2.2.6b/libltdl/config/ltmain.m4sh ---- libtool-2.2.6b.orig/libltdl/config/ltmain.m4sh 2008-09-07 17:54:53.000000000 +0000 -+++ libtool-2.2.6b/libltdl/config/ltmain.m4sh 2008-11-07 01:02:13.000000000 +0000 -@@ -4080,7 +4080,7 @@ - -l*) - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) -+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; -@@ -6034,7 +6034,7 @@ - if test "$build_libtool_libs" = yes; then - if test -n "$rpath"; then - case $host in -- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*) -+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) -diff -ur libtool-2.2.6b.orig/libltdl/m4/libtool.m4 libtool-2.2.6b/libltdl/m4/libtool.m4 ---- libtool-2.2.6b.orig/libltdl/m4/libtool.m4 2008-09-05 11:54:41.000000000 +0000 -+++ libtool-2.2.6b/libltdl/m4/libtool.m4 2008-11-07 01:12:21.000000000 +0000 -@@ -2344,6 +2344,19 @@ - hardcode_into_libs=yes - ;; - -+haiku*) -+ version_type=linux -+ need_lib_prefix=no -+ need_version=no -+ dynamic_linker="$host_os runtime_loader" -+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' -+ soname_spec='${libname}${release}${shared_ext}$major' -+ shlibpath_var=LIBRARY_PATH -+ shlibpath_overrides_runpath=yes -+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' -+ hardcode_into_libs=yes -+ ;; -+ - hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. -@@ -3038,6 +3051,10 @@ - lt_cv_deplibs_check_method=pass_all - ;; - -+haiku*) -+ lt_cv_deplibs_check_method=pass_all -+ ;; -+ - hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in -@@ -3256,7 +3273,7 @@ - [AC_REQUIRE([AC_CANONICAL_HOST])dnl - LIBM= - case $host in --*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) -+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*) - # These system don't have libm, or don't need it - ;; - *-ncr-sysv4.3*) -@@ -3588,6 +3605,11 @@ - # DJGPP does not support shared libraries at all - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; -+ haiku*) -+ # PIC is the default for Haiku. -+ # The "-static" flag exists, but is broken. -+ _LT_TAGVAR(lt_prog_compiler_static, $1)= -+ ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. -@@ -3893,6 +3915,12 @@ - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - -+ haiku*) -+ # PIC is the default for Haiku. -+ # The "-static" flag exists, but is broken. -+ _LT_TAGVAR(lt_prog_compiler_static, $1)= -+ ;; -+ - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag -@@ -4343,6 +4371,11 @@ - fi - ;; - -+ haiku*) -+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ _LT_TAGVAR(link_all_deplibs, $1)=yes -+ ;; -+ - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no -@@ -5685,6 +5718,11 @@ - gnu*) - ;; - -+ haiku*) -+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' -+ _LT_TAGVAR(link_all_deplibs, $1)=yes -+ ;; -+ - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: diff --git a/sys-devel/libtool/patches/libtool-haiku.diff b/sys-devel/libtool/patches/libtool-haiku.diff deleted file mode 100644 index cb07a712b..000000000 --- a/sys-devel/libtool/patches/libtool-haiku.diff +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 -index 29f1222..b538fa6 100644 ---- a/libltdl/m4/libtool.m4 -+++ b/libltdl/m4/libtool.m4 -@@ -2335,7 +2335,7 @@ haiku*) - soname_spec='${libname}${release}${shared_ext}$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=yes -- sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' -+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - diff --git a/x11-libs/pixman/patches/pixman-0.19.4.patch b/x11-libs/pixman/patches/pixman-0.19.4.patch deleted file mode 100644 index 68f6c6206..000000000 --- a/x11-libs/pixman/patches/pixman-0.19.4.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urN pixman-0.19.4/configure.ac pixman-0.19.4-haiku/configure.ac ---- pixman-0.19.4/configure.ac 2010-09-21 14:11:23.028049408 +0000 -+++ pixman-0.19.4-haiku/configure.ac 2010-10-18 14:12:25.000000000 +0000 -@@ -726,6 +726,7 @@ - - PIXMAN_CHECK_PTHREAD([CFLAGS="-D_REENTRANT"; LIBS="-lpthread"]) - PIXMAN_CHECK_PTHREAD([CFLAGS="-pthread"; LDFLAGS="-pthread"]) -+ PIXMAN_CHECK_PTHREAD([CFLAGS="-D_REENTRANT"; LDFLAGS="-lroot"]) - - if test $support_for_pthread_setspecific = yes; then - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" diff --git a/x11-libs/pixman/patches/pixman-0.19_master.patch b/x11-libs/pixman/patches/pixman-0.19_master.patch deleted file mode 100644 index 378ec2307..000000000 --- a/x11-libs/pixman/patches/pixman-0.19_master.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urN pixman-master/configure.ac pixman-master-haiku/configure.ac ---- pixman-master/configure.ac 2010-09-21 14:11:23.028049408 +0000 -+++ pixman-master-haiku/configure.ac 2010-10-18 14:12:25.000000000 +0000 -@@ -726,6 +726,7 @@ - - PIXMAN_CHECK_PTHREAD([CFLAGS="-D_REENTRANT"; LIBS="-lpthread"]) - PIXMAN_CHECK_PTHREAD([CFLAGS="-pthread"; LDFLAGS="-pthread"]) -+ PIXMAN_CHECK_PTHREAD([CFLAGS="-D_REENTRANT"; LDFLAGS="-lroot"]) - - if test $support_for_pthread_setspecific = yes; then - CFLAGS="$CFLAGS $PTHREAD_CFLAGS" diff --git a/x11-libs/pixman/pixman-0.17.2.recipe b/x11-libs/pixman/pixman-0.17.2.recipe deleted file mode 100644 index d7ef21993..000000000 --- a/x11-libs/pixman/pixman-0.17.2.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="Pixman - The pixel-manipulation library for X and cairo" -HOMEPAGE="http://cgit.freedesktop.org/pixman/" -SOURCE_URI="http://www.cairographics.org/releases/pixman-0.17.2.tar.gz" -CHECKSUM_MD5="006c74f1450e5ed2e1bdaf88e9806faa" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd pixman-0.17.2 - libtoolize --force --copy --install - aclocal - automake - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd pixman-0.17.2 - make install -} diff --git a/x11-libs/pixman/pixman-0.18.2.recipe b/x11-libs/pixman/pixman-0.18.2.recipe deleted file mode 100644 index c863fa0aa..000000000 --- a/x11-libs/pixman/pixman-0.18.2.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="Pixman - The pixel-manipulation library for X and cairo" -HOMEPAGE="http://cgit.freedesktop.org/pixman/" -SOURCE_URI="http://cairographics.org/releases/pixman-0.18.2.tar.gz" -CHECKSUM_MD5="5d1378fa61610dd5d3c7e0111b2c5253" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd pixman-0.18.2 - libtoolize --force --copy --install - aclocal - automake - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd pixman-0.18.2 - make install -} diff --git a/x11-libs/pixman/pixman-0.18.4.recipe b/x11-libs/pixman/pixman-0.18.4.recipe deleted file mode 100644 index a51c54dec..000000000 --- a/x11-libs/pixman/pixman-0.18.4.recipe +++ /dev/null @@ -1,23 +0,0 @@ -DESCRIPTION="Pixman - The pixel-manipulation library for X and cairo" -HOMEPAGE="http://cgit.freedesktop.org/pixman/" -SOURCE_URI="http://cairographics.org/releases/pixman-0.18.4.tar.gz" -CHECKSUM_MD5="532db4194e18c108d0b7dd85f20d39b8" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd pixman-0.18.4 - libtoolize --force --copy --install - aclocal - automake - autoconf - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd pixman-0.18.4 - make install -} diff --git a/x11-libs/pixman/pixman-0.19.4.recipe b/x11-libs/pixman/pixman-0.19.4.recipe deleted file mode 100644 index a5325937e..000000000 --- a/x11-libs/pixman/pixman-0.19.4.recipe +++ /dev/null @@ -1,35 +0,0 @@ -DESCRIPTION="Pixman - The pixel-manipulation library for X and cairo" -HOMEPAGE="http://cgit.freedesktop.org/pixman/" -SOURCE_URI="http://cairographics.org/releases/pixman-0.19.4.tar.gz" -CHECKSUM_MD5="100a2d23f1d5683fdaa5d7ca71a0182b" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd pixman-0.19.4 - libtoolize --force --copy --install - ./autogen.sh - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd pixman-0.19.4 - make install -} - -TEST() -{ - cd pixman-0.19.4 - make check -} - -LICENSE="MIT" -COPYRIGHT="1987-1998 The Open Group - 1987-1989 Digital Equipment Corporation - 1999, 2004, 2008 Keith Packard - 2004, 2005, 2007, 2008 Red Hat, Inc. - 2009-2010 Sun Microsystems, Inc. - and many others" \ No newline at end of file diff --git a/x11-libs/pixman/pixman-0.19_master.recipe b/x11-libs/pixman/pixman-0.19_master.recipe deleted file mode 100644 index 023a7e9d4..000000000 --- a/x11-libs/pixman/pixman-0.19_master.recipe +++ /dev/null @@ -1,35 +0,0 @@ -DESCRIPTION="Pixman - The pixel-manipulation library for X and cairo" -HOMEPAGE="http://cgit.freedesktop.org/pixman/" -SOURCE_URI="http://cgit.freedesktop.org/pixman/snapshot/pixman-master.tar.bz2" -CHECKSUM_MD5="c53466dc2e6145afdb80b5a74491a2de" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" -BUILD() -{ - cd pixman-master - libtoolize --force --copy --install - ./autogen.sh - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make -} - -INSTALL() -{ - cd pixman-master - make install -} - -TEST() -{ - cd pixman-master - make check -} - -LICENSE="MIT" -COPYRIGHT="1987-1998 The Open Group - 1987-1989 Digital Equipment Corporation - 1999, 2004, 2008 Keith Packard - 2004, 2005, 2007, 2008 Red Hat, Inc. - 2009-2010 Sun Microsystems, Inc. - and many others"