mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Merge all changes from trunk
This commit is contained in:
24
dev-lang/camlp5/camlp5-6.06.bep
Normal file
24
dev-lang/camlp5/camlp5-6.06.bep
Normal file
@@ -0,0 +1,24 @@
|
||||
DESCRIPTION="Preprocessor-pretty-printer of OCaml"
|
||||
HOMEPAGE="http://pauillac.inria.fr/~ddr/camlp5/"
|
||||
SRC_URI="http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-6.06.tgz"
|
||||
CHECKSUM_MD5="8de69094d73d24768844a5017a2bd04b"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND="ocaml"
|
||||
BUILD {
|
||||
cd camlp5-6.06
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
./configure --strict --prefix `finddir B_COMMON_DIRECTORY` \
|
||||
--mandir $COMMON_DOCS/man
|
||||
make world.opt
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd camlp5-6.06
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
make install PREFIX=${DESTDIR}`finddir B_COMMON_DIRECTORY` \
|
||||
MANDIR=${DESTDIR}$COMMON_DOCS/man
|
||||
|
||||
}
|
||||
LICENSE="BSD (3-clause)"
|
||||
COPYRIGHT="2007-2012 Institut National de Recherche en Informatique et en Automatique (INRIA)."
|
||||
@@ -13,8 +13,8 @@ BUILD {
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
mkdir -p ${DESTDIR}/boot/common/bin
|
||||
cp dmd/src/dmd/dmd ${DESTDIR}/boot/common/bin/dmd
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
|
||||
cp dmd/src/dmd/dmd ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`/dmd
|
||||
|
||||
}
|
||||
LICENSE="Digital Mars"
|
||||
|
||||
38
dev-lang/fpc/fpc-2.6.0.bep
Normal file
38
dev-lang/fpc/fpc-2.6.0.bep
Normal file
@@ -0,0 +1,38 @@
|
||||
DESCRIPTION="Free Pascal Compiler - open source compiler for pascal and object pascal"
|
||||
HOMEPAGE="http://www.freepascal.org"
|
||||
SRC_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"
|
||||
21
dev-lang/lua/lua-5.1.4-3.bep
Normal file
21
dev-lang/lua/lua-5.1.4-3.bep
Normal file
@@ -0,0 +1,21 @@
|
||||
DESCRIPTION="Lua is a powerful, fast, light-weight, embeddable scripting language."
|
||||
HOMEPAGE="http://www.lua.org"
|
||||
SRC_URI="http://www.lua.org/ftp/lua-5.1.4.tar.gz"
|
||||
CHECKSUM_MD5="d0870f2de55d59c1c8419f36e8fac150"
|
||||
REVISION="3"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="pkgconfig >= 0.25"
|
||||
BUILD {
|
||||
cd lua-5.1.4
|
||||
make haiku
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd lua-5.1.4
|
||||
make install INSTALL_TOP="${DESTDIR}`finddir B_COMMON_DIRECTORY`" \
|
||||
INSTALL_MAN="${DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man"
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig
|
||||
cp etc/lua.pc ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig/lua.pc
|
||||
}
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="1994-2009, Lua.org, PUC-Rio"
|
||||
@@ -1,5 +1,5 @@
|
||||
DESCRIPTION="Lua is a powerful, fast, light-weight, embeddable scripting language."
|
||||
HOMEPAGE="http://www.lua.org"
|
||||
DESCRIPTION="Lua is a powerful, fast, light-weight, embeddable scripting language."
|
||||
HOMEPAGE="http://www.lua.org"
|
||||
SRC_URI="http://www.lua.org/ftp/lua-5.1.4.tar.gz"
|
||||
CHECKSUM_MD5="d0870f2de55d59c1c8419f36e8fac150"
|
||||
REVISION="3"
|
||||
@@ -12,19 +12,10 @@ BUILD {
|
||||
|
||||
INSTALL {
|
||||
cd lua-5.1.4
|
||||
if [ -n "$(setgcc | grep '4')" ]; then
|
||||
make install INSTALL_TOP="${DESTDIR}`finddir B_COMMON_DIRECTORY`" \
|
||||
INSTALL_MAN="${DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man" \
|
||||
INSTALL_LIB="${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/gcc4"
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig
|
||||
cp etc/lua.pc ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig/lua.pc
|
||||
else
|
||||
make install INSTALL_TOP="${DESTDIR}`finddir B_COMMON_DIRECTORY`" \
|
||||
INSTALL_MAN="${DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man"
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig
|
||||
cp etc/lua.pc ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig/lua.pc
|
||||
fi
|
||||
|
||||
make install INSTALL_TOP="${DESTDIR}`finddir B_COMMON_DIRECTORY`" \
|
||||
INSTALL_MAN="${DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man"
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig
|
||||
cp etc/lua.pc ${DESTDIR}`finddir B_COMMON_LIB_DIRECTORY`/pkgconfig/lua.pc
|
||||
}
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="1994-2009, Lua.org, PUC-Rio"
|
||||
|
||||
18
dev-lang/lua/lua-5.2.1.bep
Normal file
18
dev-lang/lua/lua-5.2.1.bep
Normal file
@@ -0,0 +1,18 @@
|
||||
DESCRIPTION="Lua is a powerful, fast, light-weight, embeddable scripting language."
|
||||
HOMEPAGE="http://www.lua.org"
|
||||
SRC_URI="http://www.lua.org/ftp/lua-5.2.1.tar.gz"
|
||||
CHECKSUM_MD5="ae08f641b45d737d12d30291a5e5f6e3"
|
||||
REVISION="3"
|
||||
STATUS_HAIKU="stable"
|
||||
BUILD {
|
||||
cd lua-5.2.1
|
||||
make haiku
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd lua-5.2.1
|
||||
make install INSTALL_TOP="${DESTDIR}`finddir B_COMMON_DIRECTORY`" \
|
||||
INSTALL_MAN="${DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man"
|
||||
}
|
||||
LICENSE="MIT"
|
||||
COPYRIGHT="1994-2012, Lua.org, PUC-Rio"
|
||||
276
dev-lang/lua/patches/lua-5.1.4-3.patch
Normal file
276
dev-lang/lua/patches/lua-5.1.4-3.patch
Normal file
@@ -0,0 +1,276 @@
|
||||
diff -urN lua-5.1.4/Makefile lua-5.1.4-haiku/Makefile
|
||||
--- lua-5.1.4/Makefile 2008-08-12 00:40:48.066322432 +0000
|
||||
+++ lua-5.1.4-haiku/Makefile 2011-05-03 22:29:07.568328192 +0000
|
||||
@@ -13,11 +13,11 @@
|
||||
INSTALL_BIN= $(INSTALL_TOP)/bin
|
||||
INSTALL_INC= $(INSTALL_TOP)/include
|
||||
INSTALL_LIB= $(INSTALL_TOP)/lib
|
||||
-INSTALL_MAN= $(INSTALL_TOP)/man/man1
|
||||
+INSTALL_MAN= `finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man/man1
|
||||
#
|
||||
# You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
|
||||
# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
|
||||
-INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
|
||||
+INSTALL_LMOD= `finddir B_COMMON_DATA_DIRECTORY`/lua/$V
|
||||
INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
|
||||
|
||||
# How to install. If your install program does not support "-p", then you
|
||||
@@ -38,12 +38,12 @@
|
||||
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
|
||||
|
||||
# Convenience platforms targets.
|
||||
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
|
||||
+PLATS= aix ansi bsd freebsd generic haiku linux macosx mingw posix solaris
|
||||
|
||||
# What to install.
|
||||
TO_BIN= lua luac
|
||||
TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
|
||||
-TO_LIB= liblua.a
|
||||
+TO_LIB= liblua.a liblua.so
|
||||
TO_MAN= lua.1 luac.1
|
||||
|
||||
# Lua version and release.
|
||||
diff -urN lua-5.1.4/src/Makefile lua-5.1.4-haiku/src/Makefile
|
||||
--- lua-5.1.4/src/Makefile 2008-01-19 19:37:58.066584576 +0000
|
||||
+++ lua-5.1.4-haiku/src/Makefile 2011-05-03 22:08:17.191627264 +0000
|
||||
@@ -20,9 +20,10 @@
|
||||
|
||||
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
|
||||
|
||||
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
|
||||
+PLATS= aix ansi bsd freebsd generic haiku linux macosx mingw posix solaris
|
||||
|
||||
LUA_A= liblua.a
|
||||
+LUA_SO= liblua.so
|
||||
CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
|
||||
lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
|
||||
lundump.o lvm.o lzio.o
|
||||
@@ -36,7 +37,7 @@
|
||||
LUAC_O= luac.o print.o
|
||||
|
||||
ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
|
||||
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
|
||||
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
|
||||
ALL_A= $(LUA_A)
|
||||
|
||||
default: $(PLAT)
|
||||
@@ -57,6 +58,9 @@
|
||||
$(LUAC_T): $(LUAC_O) $(LUA_A)
|
||||
$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
|
||||
|
||||
+$(LUA_SO): $(CORE_O) $(LIB_O)
|
||||
+ $(CC) -o $@ -shared -fPIC $(MYLDFLAGS) $? $(LIBS)
|
||||
+
|
||||
clean:
|
||||
$(RM) $(ALL_T) $(ALL_O)
|
||||
|
||||
@@ -95,6 +99,9 @@
|
||||
generic:
|
||||
$(MAKE) all MYCFLAGS=
|
||||
|
||||
+haiku:
|
||||
+ $(MAKE) all MYCFLAGS=-DLUA_USE_HAIKU LIBS=
|
||||
+
|
||||
linux:
|
||||
$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
|
||||
|
||||
diff -urN lua-5.1.4/src/lcode.c lua-5.1.4-haiku/src/lcode.c
|
||||
--- lua-5.1.4/src/lcode.c 2007-12-28 15:32:23.000262144 +0000
|
||||
+++ lua-5.1.4-haiku/src/lcode.c 2011-05-03 22:06:13.312999936 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
-** $Id: lcode.c,v 2.25.1.3 2007/12/28 15:32:23 roberto Exp $
|
||||
+** $Id: lcode.c,v 2.25.1.5 2011/01/31 14:53:16 roberto Exp $
|
||||
** Code generator for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -544,10 +544,6 @@
|
||||
pc = NO_JUMP; /* always true; do nothing */
|
||||
break;
|
||||
}
|
||||
- case VFALSE: {
|
||||
- pc = luaK_jump(fs); /* always jump */
|
||||
- break;
|
||||
- }
|
||||
case VJMP: {
|
||||
invertjump(fs, e);
|
||||
pc = e->u.s.info;
|
||||
@@ -572,10 +568,6 @@
|
||||
pc = NO_JUMP; /* always false; do nothing */
|
||||
break;
|
||||
}
|
||||
- case VTRUE: {
|
||||
- pc = luaK_jump(fs); /* always jump */
|
||||
- break;
|
||||
- }
|
||||
case VJMP: {
|
||||
pc = e->u.s.info;
|
||||
break;
|
||||
diff -urN lua-5.1.4/src/ldblib.c lua-5.1.4-haiku/src/ldblib.c
|
||||
--- lua-5.1.4/src/ldblib.c 2008-01-21 13:11:21.000262144 +0000
|
||||
+++ lua-5.1.4-haiku/src/ldblib.c 2011-05-03 22:06:13.322699264 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
-** $Id: ldblib.c,v 1.104.1.3 2008/01/21 13:11:21 roberto Exp $
|
||||
+** $Id: ldblib.c,v 1.104.1.4 2009/08/04 18:50:18 roberto Exp $
|
||||
** Interface from Lua to its debug API
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -45,6 +45,7 @@
|
||||
|
||||
|
||||
static int db_getfenv (lua_State *L) {
|
||||
+ luaL_checkany(L, 1);
|
||||
lua_getfenv(L, 1);
|
||||
return 1;
|
||||
}
|
||||
diff -urN lua-5.1.4/src/liolib.c lua-5.1.4-haiku/src/liolib.c
|
||||
--- lua-5.1.4/src/liolib.c 2008-01-18 17:47:43.001572864 +0000
|
||||
+++ lua-5.1.4-haiku/src/liolib.c 2011-05-03 22:06:13.346292224 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
-** $Id: liolib.c,v 2.73.1.3 2008/01/18 17:47:43 roberto Exp $
|
||||
+** $Id: liolib.c,v 2.73.1.4 2010/05/14 15:33:51 roberto Exp $
|
||||
** Standard I/O (and system) library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -276,7 +276,10 @@
|
||||
lua_pushnumber(L, d);
|
||||
return 1;
|
||||
}
|
||||
- else return 0; /* read fails */
|
||||
+ else {
|
||||
+ lua_pushnil(L); /* "result" to be removed */
|
||||
+ return 0; /* read fails */
|
||||
+ }
|
||||
}
|
||||
|
||||
|
||||
diff -urN lua-5.1.4/src/llex.c lua-5.1.4-haiku/src/llex.c
|
||||
--- lua-5.1.4/src/llex.c 2007-12-27 13:02:25.001835008 +0000
|
||||
+++ lua-5.1.4-haiku/src/llex.c 2011-05-03 22:06:13.368050176 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
-** $Id: llex.c,v 2.20.1.1 2007/12/27 13:02:25 roberto Exp $
|
||||
+** $Id: llex.c,v 2.20.1.2 2009/11/23 14:58:22 roberto Exp $
|
||||
** Lexical Analyzer
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -118,8 +118,10 @@
|
||||
lua_State *L = ls->L;
|
||||
TString *ts = luaS_newlstr(L, str, l);
|
||||
TValue *o = luaH_setstr(L, ls->fs->h, ts); /* entry for `str' */
|
||||
- if (ttisnil(o))
|
||||
+ if (ttisnil(o)) {
|
||||
setbvalue(o, 1); /* make sure `str' will not be collected */
|
||||
+ luaC_checkGC(L);
|
||||
+ }
|
||||
return ts;
|
||||
}
|
||||
|
||||
diff -urN lua-5.1.4/src/loadlib.c lua-5.1.4-haiku/src/loadlib.c
|
||||
--- lua-5.1.4/src/loadlib.c 2008-08-06 13:29:28.002621440 +0000
|
||||
+++ lua-5.1.4-haiku/src/loadlib.c 2011-05-03 22:06:13.391380992 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
-** $Id: loadlib.c,v 1.52.1.3 2008/08/06 13:29:28 roberto Exp $
|
||||
+** $Id: loadlib.c,v 1.52.1.4 2009/09/09 13:17:16 roberto Exp $
|
||||
** Dynamic library loader for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
**
|
||||
@@ -639,7 +639,7 @@
|
||||
lua_pushvalue(L, -1);
|
||||
lua_replace(L, LUA_ENVIRONINDEX);
|
||||
/* create `loaders' table */
|
||||
- lua_createtable(L, 0, sizeof(loaders)/sizeof(loaders[0]) - 1);
|
||||
+ lua_createtable(L, sizeof(loaders)/sizeof(loaders[0]) - 1, 0);
|
||||
/* fill it with pre-defined loaders */
|
||||
for (i=0; loaders[i] != NULL; i++) {
|
||||
lua_pushcfunction(L, loaders[i]);
|
||||
diff -urN lua-5.1.4/src/lstrlib.c lua-5.1.4-haiku/src/lstrlib.c
|
||||
--- lua-5.1.4/src/lstrlib.c 2008-07-11 17:27:21.004194304 +0000
|
||||
+++ lua-5.1.4-haiku/src/lstrlib.c 2011-05-03 22:06:13.411303936 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
-** $Id: lstrlib.c,v 1.132.1.4 2008/07/11 17:27:21 roberto Exp $
|
||||
+** $Id: lstrlib.c,v 1.132.1.5 2010/05/14 15:34:19 roberto Exp $
|
||||
** Standard library for string operations and pattern-matching
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -754,6 +754,7 @@
|
||||
|
||||
|
||||
static int str_format (lua_State *L) {
|
||||
+ int top = lua_gettop(L);
|
||||
int arg = 1;
|
||||
size_t sfl;
|
||||
const char *strfrmt = luaL_checklstring(L, arg, &sfl);
|
||||
@@ -768,7 +769,8 @@
|
||||
else { /* format item */
|
||||
char form[MAX_FORMAT]; /* to store the format (`%...') */
|
||||
char buff[MAX_ITEM]; /* to store the formatted item */
|
||||
- arg++;
|
||||
+ if (++arg > top)
|
||||
+ luaL_argerror(L, arg, "no value");
|
||||
strfrmt = scanformat(L, strfrmt, form);
|
||||
switch (*strfrmt++) {
|
||||
case 'c': {
|
||||
diff -urN lua-5.1.4/src/luaconf.h lua-5.1.4-haiku/src/luaconf.h
|
||||
--- lua-5.1.4/src/luaconf.h 2008-02-11 16:25:08.004980736 +0000
|
||||
+++ lua-5.1.4-haiku/src/luaconf.h 2011-05-03 22:08:17.243793920 +0000
|
||||
@@ -33,6 +33,13 @@
|
||||
#define LUA_WIN
|
||||
#endif
|
||||
|
||||
+#if defined(LUA_USE_HAIKU)
|
||||
+#define LUA_USE_MKSTEMP
|
||||
+#define LUA_USE_ISATTY
|
||||
+#define LUA_USE_POPEN
|
||||
+#define LUA_USE_DLOPEN
|
||||
+#endif
|
||||
+
|
||||
#if defined(LUA_USE_LINUX)
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
|
||||
@@ -94,7 +101,11 @@
|
||||
".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
|
||||
|
||||
#else
|
||||
-#define LUA_ROOT "/usr/local/"
|
||||
+# if defined(LUA_USE_HAIKU)
|
||||
+# define LUA_ROOT "/boot/common/"
|
||||
+# else
|
||||
+# define LUA_ROOT "/usr/local/"
|
||||
+# endif
|
||||
#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
|
||||
#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
|
||||
#define LUA_PATH_DEFAULT \
|
||||
diff -urN lua-5.1.4/src/lvm.c lua-5.1.4-haiku/src/lvm.c
|
||||
--- lua-5.1.4/src/lvm.c 2007-12-28 15:32:23.005242880 +0000
|
||||
+++ lua-5.1.4-haiku/src/lvm.c 2011-05-03 22:06:13.432537600 +0000
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
-** $Id: lvm.c,v 2.63.1.3 2007/12/28 15:32:23 roberto Exp $
|
||||
+** $Id: lvm.c,v 2.63.1.4 2009/07/01 21:10:33 roberto Exp $
|
||||
** Lua virtual machine
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -133,6 +133,7 @@
|
||||
|
||||
void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) {
|
||||
int loop;
|
||||
+ TValue temp;
|
||||
for (loop = 0; loop < MAXTAGLOOP; loop++) {
|
||||
const TValue *tm;
|
||||
if (ttistable(t)) { /* `t' is a table? */
|
||||
@@ -152,7 +153,9 @@
|
||||
callTM(L, tm, t, key, val);
|
||||
return;
|
||||
}
|
||||
- t = tm; /* else repeat with `tm' */
|
||||
+ /* else repeat with `tm' */
|
||||
+ setobj(L, &temp, tm); /* avoid pointing inside table (may rehash) */
|
||||
+ t = &temp;
|
||||
}
|
||||
luaG_runerror(L, "loop in settable");
|
||||
}
|
||||
91
dev-lang/lua/patches/lua-5.2.1.patch
Normal file
91
dev-lang/lua/patches/lua-5.2.1.patch
Normal file
@@ -0,0 +1,91 @@
|
||||
diff -ru lua-5.2.1/Makefile lua-5.2.1.patched/Makefile
|
||||
--- lua-5.2.1/Makefile 2012-05-17 16:05:54.032768000 +0200
|
||||
+++ lua-5.2.1.patched/Makefile 2012-08-12 16:50:24.994574336 +0200
|
||||
@@ -36,12 +36,12 @@
|
||||
# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
|
||||
|
||||
# Convenience platforms targets.
|
||||
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
|
||||
+PLATS= aix ansi bsd freebsd generic haiku linux macosx mingw posix solaris
|
||||
|
||||
# What to install.
|
||||
TO_BIN= lua luac
|
||||
TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
|
||||
-TO_LIB= liblua.a
|
||||
+TO_LIB= liblua.a liblua.so
|
||||
TO_MAN= lua.1 luac.1
|
||||
|
||||
# Lua version and release.
|
||||
diff -ru lua-5.2.1/src/luaconf.h lua-5.2.1.patched/src/luaconf.h
|
||||
--- lua-5.2.1/src/luaconf.h 2012-05-11 16:14:42.025690112 +0200
|
||||
+++ lua-5.2.1.patched/src/luaconf.h 2012-08-12 16:56:30.385875968 +0200
|
||||
@@ -40,6 +40,13 @@
|
||||
|
||||
|
||||
|
||||
+#if defined(LUA_USE_HAIKU)
|
||||
+#define LUA_USE_MKSTEMP
|
||||
+#define LUA_USE_ISATTY
|
||||
+#define LUA_USE_POPEN
|
||||
+#define LUA_USE_DLOPEN
|
||||
+#endif
|
||||
+
|
||||
#if defined(LUA_USE_LINUX)
|
||||
#define LUA_USE_POSIX
|
||||
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
|
||||
@@ -100,7 +107,11 @@
|
||||
#else /* }{ */
|
||||
|
||||
#define LUA_VDIR LUA_VERSION_MAJOR "." LUA_VERSION_MINOR "/"
|
||||
+#if defined(LUA_USE_HAIKU)
|
||||
+#define LUA_ROOT "/boot/common/"
|
||||
+#else
|
||||
#define LUA_ROOT "/usr/local/"
|
||||
+#endif
|
||||
#define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR
|
||||
#define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR
|
||||
#define LUA_PATH_DEFAULT \
|
||||
diff -ru lua-5.2.1/src/Makefile lua-5.2.1.patched/src/Makefile
|
||||
--- lua-5.2.1/src/Makefile 2012-03-09 17:32:16.029884416 +0100
|
||||
+++ lua-5.2.1.patched/src/Makefile 2012-08-12 16:52:43.662437888 +0200
|
||||
@@ -26,9 +26,10 @@
|
||||
|
||||
# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
|
||||
|
||||
-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
|
||||
+PLATS= aix ansi bsd freebsd generic haiku linux macosx mingw posix solaris
|
||||
|
||||
LUA_A= liblua.a
|
||||
+LUA_SO= liblua.so
|
||||
CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \
|
||||
lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \
|
||||
ltm.o lundump.o lvm.o lzio.o
|
||||
@@ -43,7 +44,7 @@
|
||||
LUAC_O= luac.o
|
||||
|
||||
ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O)
|
||||
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
|
||||
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
|
||||
ALL_A= $(LUA_A)
|
||||
|
||||
# Targets start here.
|
||||
@@ -65,6 +66,9 @@
|
||||
$(LUAC_T): $(LUAC_O) $(LUA_A)
|
||||
$(CC) -o $@ $(LDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
|
||||
|
||||
+$(LUA_SO): $(CORE_O) $(LIB_O)
|
||||
+ $(CC) -o $@ -shared -fPIC $(LDFLAGS) $? $(LIBS)
|
||||
+
|
||||
clean:
|
||||
$(RM) $(ALL_T) $(ALL_O)
|
||||
|
||||
@@ -102,6 +106,9 @@
|
||||
|
||||
generic: $(ALL)
|
||||
|
||||
+haiku:
|
||||
+ $(MAKE) all MUCFLAGS=-DLUA_USE_HAIKU LIBS=
|
||||
+
|
||||
linux:
|
||||
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline -lncurses"
|
||||
|
||||
@@ -7,7 +7,7 @@ STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd nasm-2.08.01
|
||||
./configure --prefix=/boot/common
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
23
dev-lang/ocaml/ocaml-4.00.0.bep
Normal file
23
dev-lang/ocaml/ocaml-4.00.0.bep
Normal file
@@ -0,0 +1,23 @@
|
||||
DESCRIPTION="Implementation of the Caml language"
|
||||
HOMEPAGE="http://caml.inria.fr/index.en.html"
|
||||
SRC_URI="http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.0.tar.gz"
|
||||
CHECKSUM_MD5="fa11560a45793bd9fa45c1295a6f4a91"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd ocaml-4.00.0
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
./configure --prefix `finddir B_COMMON_DIRECTORY` \
|
||||
--mandir $COMMON_DOCS/man
|
||||
make world.opt
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd ocaml-4.00.0
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
make install PREFIX=${DESTDIR}`finddir B_COMMON_DIRECTORY` \
|
||||
MANDIR=${DESTDIR}$COMMON_DOCS/man
|
||||
}
|
||||
LICENSE="GNU LGPL v2"
|
||||
COPYRIGHT="1996-2012 Institut National de Recherche en Informatique et en Automatique (INRIA)."
|
||||
59
dev-lang/ocaml/patches/ocaml-4.00.0.patch
Normal file
59
dev-lang/ocaml/patches/ocaml-4.00.0.patch
Normal file
@@ -0,0 +1,59 @@
|
||||
diff -ruN ocaml-4.00.0/configure ocaml-4.00.0/configure
|
||||
--- ocaml-4.00.0/configure 2012-06-26 15:33:50.060555264 +0000
|
||||
+++ ocaml-4.00.0/configure 2012-09-25 21:21:50.419168256 +0000
|
||||
@@ -285,6 +285,10 @@
|
||||
bytecccompopts="-fno-defer-pop $gcc_warnings"
|
||||
# No -lm library
|
||||
mathlib="";;
|
||||
+ *,*-*-haiku*)
|
||||
+ bytecccompopts="-fno-defer-pop $gcc_warnings"
|
||||
+ # No -lm library
|
||||
+ mathlib="";;
|
||||
gcc,alpha*-*-osf*)
|
||||
bytecccompopts="-fno-defer-pop $gcc_warnings"
|
||||
if cc="$bytecc" sh ./hasgot -mieee; then
|
||||
@@ -614,6 +618,9 @@
|
||||
byteccrpath="-Wl,-rpath,"
|
||||
mksharedlibrpath="-Wl,-rpath,"
|
||||
shared_libraries_supported=true;;
|
||||
+ *-*haiku*)
|
||||
+ mksharedlib="$bytecc -shared"
|
||||
+ shared_libraries_supported=true;;
|
||||
esac
|
||||
fi
|
||||
|
||||
@@ -679,6 +686,7 @@
|
||||
arch=i386; system=solaris
|
||||
fi;;
|
||||
i[3456]86-*-beos*) arch=i386; system=beos;;
|
||||
+ i[3456]86-*-haiku*) arch=i386; system=beos;;
|
||||
i[3456]86-*-cygwin*) arch=i386; system=cygwin;;
|
||||
i[3456]86-*-darwin*) if $arch64; then
|
||||
arch=amd64; system=macosx
|
||||
@@ -901,6 +909,11 @@
|
||||
cclibs="$cclibs -lnsl -lsocket"
|
||||
echo "#define HAS_SOCKETS" >> s.h
|
||||
has_sockets=yes
|
||||
+elif sh ./hasgot -lnetwork socket socketpair bind listen accept connect; then
|
||||
+ echo "You have BSD sockets (with libraries '-lnetwork')"
|
||||
+ cclibs="$cclibs -lnetwork"
|
||||
+ echo "#define HAS_SOCKETS" >> s.h
|
||||
+ has_sockets=yes
|
||||
fi
|
||||
|
||||
if sh ./hasgot -i sys/socket.h -t socklen_t; then
|
||||
diff -uN ocaml-4.00.0/otherlibs/unix/nice.c ocaml-4.00.0/otherlibs/unix/nice.c
|
||||
--- ocaml-4.00.0/otherlibs/unix/nice.c 2012-09-25 21:31:10.443809792 +0000
|
||||
+++ ocaml-4.00.0/otherlibs/unix/nice.c 2012-09-25 21:31:51.582221824 +0000
|
||||
@@ -24,7 +24,11 @@
|
||||
{
|
||||
int ret;
|
||||
errno = 0;
|
||||
+#ifdef __HAIKU__
|
||||
+ ret = 0;
|
||||
+#else
|
||||
ret = nice(Int_val(incr));
|
||||
+#endif
|
||||
if (ret == -1 && errno != 0) uerror("nice", Nothing);
|
||||
return Val_int(ret);
|
||||
}
|
||||
99
dev-lang/openjdk/openjdk-1.7.bep
Normal file
99
dev-lang/openjdk/openjdk-1.7.bep
Normal file
@@ -0,0 +1,99 @@
|
||||
DESCRIPTION="openjdk"
|
||||
HOMEPAGE="http://openjdk.java.net/"
|
||||
SRC_URI="http://ports-space.haiku-files.org/dev-lang/j2sdk-july-r2.tar.xz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="app-arch/cpio >= 2.10
|
||||
media-libs/freetype >= 2.4.6"
|
||||
|
||||
CHECKSUM_MD5="28b8630373769e1e897a75bf81f2e1eb"
|
||||
|
||||
BUILD {
|
||||
OPENJDK_DIR=`haikuporter -t`/dev-lang/openjdk/work
|
||||
|
||||
# Get and build Apache Ant.
|
||||
# Making a separate .bep file for it wasn't such a good idea.
|
||||
|
||||
wget -nc http://archive.apache.org/dist/ant/source/apache-ant-1.8.4-src.tar.gz
|
||||
tar xvfz apache-ant-1.8.4-src.tar.gz
|
||||
export LIBRARY_PATH=${OPENJDK_DIR}/j2sdk-image/jre/lib/i386/:$LIBRARY_PATH
|
||||
export JAVA_HOME=${OPENJDK_DIR}/j2sdk-image
|
||||
export ANT_HOME=${OPENJDK_DIR}/ant
|
||||
cd apache-ant-1.8.4
|
||||
sed -i 's/depends=\"jars,test-jar\"/depends=\"jars\"/' build.xml
|
||||
sh build.sh install-lite
|
||||
unset JAVA_HOME
|
||||
cd ..
|
||||
|
||||
# Clone latest JDK repositories.
|
||||
|
||||
hg clone http://hg.openjdk.java.net/haiku/haiku jdk --debug
|
||||
hg clone http://hg.openjdk.java.net/haiku/haiku/corba jdk/corba --debug
|
||||
hg clone http://hg.openjdk.java.net/haiku/haiku/hotspot jdk/hotspot --debug
|
||||
hg clone http://hg.openjdk.java.net/haiku/haiku/jaxp jdk/jaxp --debug
|
||||
hg clone http://hg.openjdk.java.net/haiku/haiku/jaxws jdk/jaxws --debug
|
||||
hg clone http://hg.openjdk.java.net/haiku/haiku/jdk jdk/jdk --debug
|
||||
hg clone http://hg.openjdk.java.net/haiku/haiku/langtools jdk/langtools --debug
|
||||
|
||||
export ALT_BOOTDIR=${OPENJDK_DIR}/j2sdk-image
|
||||
export ALT_JDK_IMPORT_PATH=${OPENJDK_DIR}/j2sdk-image
|
||||
export ANT=${OPENJDK_DIR}/ant
|
||||
export ALT_OUTPUTDIR=${OPENJDK_DIR}/output
|
||||
mkdir -p ${ALT_OUTPUTDIR}
|
||||
export ALLOW_DOWNLOADS=true
|
||||
|
||||
# Deploy certain headers, if they are missing.
|
||||
|
||||
HEADERS_DIR=`finddir B_SYSTEM_HEADERS_DIRECTORY`
|
||||
MEDIA_DIR=${HEADERS_DIR}/os/media
|
||||
|
||||
if [ -e ${MEDIA_DIR}/SoundConsumer.h ] ;
|
||||
then
|
||||
echo SoundConsumer.h exists.
|
||||
else
|
||||
cp SoundConsumer.h ${MEDIA_DIR}/SoundConsumer.h
|
||||
SOUND_CONSUMER_H=1
|
||||
echo SoundConsumer.h was not found. Deployed private file instead.
|
||||
fi
|
||||
|
||||
if [ -e ${MEDIA_DIR}/SoundUtils.h ] ;
|
||||
then
|
||||
echo SoundUtils.h exists.
|
||||
else
|
||||
cp SoundUtils.h ${MEDIA_DIR}/SoundUtils.h
|
||||
declare SOUND_UTILS_H=1
|
||||
echo SoundUtils.h was not found. Deployed private file instead.
|
||||
fi
|
||||
|
||||
# Build.
|
||||
|
||||
cd jdk
|
||||
make NO_DOCS=true
|
||||
|
||||
# Cleanup private files, if any were deployed.
|
||||
# I don't really think it would harm anyone if we don't clean them up after compiling.
|
||||
|
||||
# if [ ${SOUND_CONSUMER_H} == 1 ] ;
|
||||
# then
|
||||
# rm -f ${MEDIA_DIR}/SoundConsumer.h
|
||||
# echo Removed private SoundConsumer.h
|
||||
# fi
|
||||
#
|
||||
# if [ ${SOUND_UTILS_H} == 1 ] ;
|
||||
# then
|
||||
# rm -f ${MEDIA_DIR}/SoundUtils.h
|
||||
# echo Removed private SoundUtils.h
|
||||
# fi
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
export DESTDIR=`finddir B_COMMON_DIRECTORY`
|
||||
cp -r -f -v output ${DESTDIR}/jdk
|
||||
}
|
||||
|
||||
TEST {
|
||||
echo "OpenJDK tests are not yet ported to Haiku."
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2005, 2006, Oracle and/or its affiliates"
|
||||
213
dev-lang/openjdk/patches/openjdk-1.7.patch
Normal file
213
dev-lang/openjdk/patches/openjdk-1.7.patch
Normal file
@@ -0,0 +1,213 @@
|
||||
--- /dev/null 2012-12-19 09:59:04.122365000 +0200
|
||||
+++ SoundConsumer.h 2012-12-04 04:36:51.000000000 +0200
|
||||
@@ -0,0 +1,151 @@
|
||||
+/*******************************************************************************
|
||||
+/
|
||||
+/ File: SoundConsumer.h
|
||||
+/
|
||||
+/ Description: Record sound from some sound-producing Node.
|
||||
+/
|
||||
+/ Copyright 1998, Be Incorporated, All Rights Reserved
|
||||
+/
|
||||
+*******************************************************************************/
|
||||
+#ifndef SOUND_CONSUMER_H
|
||||
+#define SOUND_CONSUMER_H
|
||||
+
|
||||
+// To use this Consumer:
|
||||
+// 1. Create Record and Notify hooks, or subclass SoundConsumer
|
||||
+// if you'd rather use the inheritance hierarchy.
|
||||
+// * The Record function should do whatever you want to do
|
||||
+// when you receive a buffer.
|
||||
+// * The Notify function should handle whatever events
|
||||
+// you wish to handle (defined in SoundUtil.h).
|
||||
+// 2: Create an instance of SoundConsumer, giving it the
|
||||
+// appropriate hook functions. Or, create an instance of an
|
||||
+// appropriate subclass if you've made one.
|
||||
+// 3: Register your new Consumer with the MediaRoster.
|
||||
+// 4: Connect your Consumer to some Producer.
|
||||
+// 5: Start or Stop the Consumer if your hook functions
|
||||
+// implement behavior for these kinds of events.
|
||||
+// Seek the Consumer to set the offset of the timestamps that
|
||||
+// your Record function will see.
|
||||
+// 6: When you're done, disconnect the Consumer, then delete it.
|
||||
+
|
||||
+#include <BufferConsumer.h>
|
||||
+#include "SoundUtils.h"
|
||||
+
|
||||
+namespace BPrivate {
|
||||
+
|
||||
+
|
||||
+class SoundConsumer : public BBufferConsumer {
|
||||
+public:
|
||||
+ SoundConsumer(const char* name,
|
||||
+ SoundProcessFunc recordFunc = NULL,
|
||||
+ SoundNotifyFunc notifyFunc = NULL,
|
||||
+ void* cookie = NULL);
|
||||
+ virtual ~SoundConsumer();
|
||||
+
|
||||
+ //This function is OK to call from any thread.
|
||||
+ status_t SetHooks(SoundProcessFunc recordFunc = NULL,
|
||||
+ SoundNotifyFunc notifyFunc = NULL,
|
||||
+ void* cookie = NULL);
|
||||
+
|
||||
+ // The MediaNode interface
|
||||
+public:
|
||||
+ virtual port_id ControlPort() const;
|
||||
+ virtual BMediaAddOn* AddOn(int32* internalID) const;
|
||||
+ // Who instantiated you -- or NULL for app class
|
||||
+
|
||||
+
|
||||
+protected:
|
||||
+ virtual void Start(bigtime_t performanceTime);
|
||||
+ virtual void Stop(bigtime_t performanceTime, bool immediate);
|
||||
+ virtual void Seek(bigtime_t mediaTime,
|
||||
+ bigtime_t performanceTime);
|
||||
+ virtual void SetRunMode(run_mode mode);
|
||||
+ virtual void TimeWarp(bigtime_t atRealTime,
|
||||
+ bigtime_t to_performanceTime);
|
||||
+ virtual void Preroll();
|
||||
+ virtual void SetTimeSource(BTimeSource* timeSource);
|
||||
+ virtual status_t HandleMessage(int32 message, const void* data,
|
||||
+ size_t size);
|
||||
+
|
||||
+ // The BufferConsumer interface
|
||||
+ virtual status_t AcceptFormat(const media_destination& dest,
|
||||
+ media_format* format);
|
||||
+ virtual status_t GetNextInput(int32* cookie,
|
||||
+ media_input* _input);
|
||||
+ virtual void DisposeInputCookie(int32 cookie);
|
||||
+ virtual void BufferReceived(BBuffer* buffer);
|
||||
+ virtual void ProducerDataStatus(
|
||||
+ const media_destination& forWhom,
|
||||
+ int32 status, bigtime_t atMediaTime);
|
||||
+ virtual status_t GetLatencyFor(const media_destination& forWhom,
|
||||
+ bigtime_t* _latency,
|
||||
+ media_node_id* _timesource);
|
||||
+ virtual status_t Connected(const media_source& producer,
|
||||
+ const media_destination& where,
|
||||
+ const media_format& format,
|
||||
+ media_input* _input);
|
||||
+ virtual void Disconnected(const media_source& producer,
|
||||
+ const media_destination& where);
|
||||
+ virtual status_t FormatChanged(const media_source& producer,
|
||||
+ const media_destination& consumer,
|
||||
+ int32 fromChangeCount,
|
||||
+ const media_format& format);
|
||||
+
|
||||
+protected:
|
||||
+ // Functions called when no hooks are installed.
|
||||
+ // OK to override instead of installing hooks.
|
||||
+ virtual void Record(bigtime_t time, const void* data,
|
||||
+ size_t size,
|
||||
+ const media_raw_audio_format& format);
|
||||
+ virtual void Notify(int32 cause, ...);
|
||||
+
|
||||
+private:
|
||||
+ SoundProcessFunc m_recordHook;
|
||||
+ SoundNotifyFunc m_notifyHook;
|
||||
+ void* m_cookie;
|
||||
+ media_input m_input;
|
||||
+ thread_id m_thread;
|
||||
+ port_id m_port;
|
||||
+
|
||||
+ // The times we need to deal with
|
||||
+ // My notation for times: tr = real time,
|
||||
+ // tp = performance time, tm = media time.
|
||||
+ bigtime_t m_trTimeout;
|
||||
+ // how long to wait on the input port
|
||||
+ bigtime_t m_tpSeekAt;
|
||||
+ // when we Seek
|
||||
+ bigtime_t m_tmSeekTo;
|
||||
+ // target time for Seek
|
||||
+
|
||||
+ // The transformation from media to peformance time.
|
||||
+ // d = p - m, so m + d = p.
|
||||
+ // Media time is generally governed by the Seek
|
||||
+ // function. In our node, we simply use media time as
|
||||
+ // the time that we report to the record hook function.
|
||||
+ // If we were a producer node, we might use media time
|
||||
+ // to track where we were in playing a certain piece
|
||||
+ // of media. But we aren't.
|
||||
+ bigtime_t m_delta;
|
||||
+
|
||||
+ // State variables
|
||||
+ bool m_seeking;
|
||||
+ // a Seek is pending
|
||||
+
|
||||
+ // Functions to calculate timing values. OK to override.
|
||||
+ // ProcessingLatency is the time it takes to process a buffer;
|
||||
+ // TotalLatency is returned to producer; Timeout is passed
|
||||
+ // to call to read_port_etc() in service thread loop.
|
||||
+ virtual bigtime_t Timeout();
|
||||
+ virtual bigtime_t ProcessingLatency();
|
||||
+ virtual bigtime_t TotalLatency();
|
||||
+ // The actual thread doing the work
|
||||
+ static status_t ThreadEntry(void* cookie);
|
||||
+ void ServiceThread();
|
||||
+ void DoHookChange(void* message);
|
||||
+};
|
||||
+
|
||||
+
|
||||
+}
|
||||
+
|
||||
+
|
||||
+#endif // SOUND_CONSUMER_H
|
||||
--- /dev/null 2012-12-19 09:59:04.122365000 +0200
|
||||
+++ SoundUtils.h 2012-12-04 04:36:51.000000000 +0200
|
||||
@@ -0,0 +1,56 @@
|
||||
+/*******************************************************************************
|
||||
+/
|
||||
+/ File: SoundUtils.h
|
||||
+/
|
||||
+/ Description: Utility functions for handling audio data.
|
||||
+/
|
||||
+/ Copyright 1998-1999, Be Incorporated, All Rights Reserved
|
||||
+/
|
||||
+*******************************************************************************/
|
||||
+
|
||||
+#if ! defined( _SoundUtils_h )
|
||||
+#define _SoundUtils_h
|
||||
+
|
||||
+#include <MediaDefs.h>
|
||||
+
|
||||
+// Simple helper functions that come in handy when doing
|
||||
+// buffer calculations.
|
||||
+double us_to_s(bigtime_t usecs);
|
||||
+bigtime_t s_to_us(double secs);
|
||||
+
|
||||
+int bytes_per_frame(const media_raw_audio_format & format);
|
||||
+int frames_per_buffer(const media_raw_audio_format & format);
|
||||
+bigtime_t buffer_duration(const media_raw_audio_format & format);
|
||||
+bigtime_t frames_duration(const media_raw_audio_format & format,
|
||||
+ int64 num_frames);
|
||||
+int64 frames_for_duration(const media_raw_audio_format & format,
|
||||
+ bigtime_t duration);
|
||||
+int buffers_for_duration(const media_raw_audio_format & format,
|
||||
+ bigtime_t duration);
|
||||
+
|
||||
+// This is a common hook function interface for
|
||||
+// SoundConsumer and SoundProducer to use.
|
||||
+typedef void (*SoundProcessFunc)(void * cookie,
|
||||
+ bigtime_t timestamp, void * data, size_t datasize,
|
||||
+ const media_raw_audio_format & format);
|
||||
+typedef void (*SoundNotifyFunc)(void * cookie,
|
||||
+ int32 code, ...);
|
||||
+
|
||||
+// These are special codes that we use in the Notify
|
||||
+// function hook.
|
||||
+enum {
|
||||
+ B_WILL_START = 1, // performance_time
|
||||
+ B_WILL_STOP, // performance_time immediate
|
||||
+ B_WILL_SEEK, // performance_time media_time
|
||||
+ B_WILL_TIMEWARP, // real_time performance_time
|
||||
+ B_CONNECTED, // name (char*)
|
||||
+ B_DISCONNECTED, //
|
||||
+ B_FORMAT_CHANGED, // media_raw_audio_format*
|
||||
+ B_NODE_DIES, // node will die!
|
||||
+ B_HOOKS_CHANGED, //
|
||||
+ B_OP_TIMED_OUT, // timeout that expired -- Consumer only
|
||||
+ B_PRODUCER_DATA_STATUS, // status performance_time -- Consumer only
|
||||
+ B_LATE_NOTICE // how_much performance_time -- Producer only
|
||||
+};
|
||||
+
|
||||
+#endif /* _SoundUtils_h */
|
||||
24
dev-lang/orc/orc-0.4.16.bep
Normal file
24
dev-lang/orc/orc-0.4.16.bep
Normal file
@@ -0,0 +1,24 @@
|
||||
DESCRIPTION="orc - The Oil Runtime Compiler"
|
||||
HOMEPAGE="http://code.entropywave.com/orc/"
|
||||
SRC_URI="http://code.entropywave.com/download/orc/orc-0.4.16.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
CHECKSUM_MD5="e482932e544c847761449b106ecbc483"
|
||||
BUILD {
|
||||
cd orc-0.4.16
|
||||
autoconf
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
|
||||
--mandir=$COMMON_DOCS/man
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd orc-0.4.16
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="BSD (2-clause)"
|
||||
COPYRIGHT="2002 - 2009 David A. Schleef"
|
||||
11
dev-lang/orc/patches/orc-0.4.16.patch
Normal file
11
dev-lang/orc/patches/orc-0.4.16.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- orc-0.4.16/configure.ac 2011-10-03 03:34:22.054788096 +0000
|
||||
+++ orc-0.4.16-haiku/configure.ac 2012-04-08 21:58:47.729808896 +0000
|
||||
@@ -97,7 +97,7 @@
|
||||
mingw*|pw32*|cygwin*)
|
||||
AC_DEFINE(HAVE_CODEMEM_VIRTUALALLOC, 1, [Use VirtualAlloc to allocate code for execution])
|
||||
;;
|
||||
- linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|dragonfly*|gnu*)
|
||||
+ linux*|darwin*|solaris*|netbsd*|freebsd*|openbsd*|kfreebsd*|dragonfly*|gnu*|haiku*)
|
||||
AC_DEFINE(HAVE_CODEMEM_MMAP, 1, [Use mmap to allocate code for execution])
|
||||
;;
|
||||
*)
|
||||
@@ -635,3 +635,25 @@ diff -urN perl-5.10.0.orig/t/io/fs.t perl-5.10.0/t/io/fs.t
|
||||
SKIP: {
|
||||
skip "atime not updated", 1;
|
||||
}
|
||||
diff -urN perl-5.10.1/Configure perl-5.10.1-haiku/Configure
|
||||
--- perl-5.10.1/Configure 2009-08-18 19:03:53.024117248 +0000
|
||||
+++ perl-5.10.1-haiku/Configure 2012-09-07 13:57:19.000000000 +0000
|
||||
@@ -5139,18 +5139,6 @@
|
||||
eval $checkccflag
|
||||
;;
|
||||
esac
|
||||
-
|
||||
- # on x86_64 (at least) we require an extra library (libssp) in the
|
||||
- # link command line. This library is not named, so I infer that it is
|
||||
- # an implementation detail that may change. Hence the safest approach
|
||||
- # is to add the flag to the flags passed to the compiler at link time,
|
||||
- # as that way the compiler can do the right implementation dependant
|
||||
- # thing. (NWC)
|
||||
- case "$gccversion" in
|
||||
- ?*) set stack-protector -fstack-protector
|
||||
- eval $checkccflag
|
||||
- ;;
|
||||
- esac
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ BUILD {
|
||||
cd php-5.3.4
|
||||
cat $(aclocal --print-ac-dir)/libtool.m4 > build/libtool.m4
|
||||
autoreconf
|
||||
./configure --prefix=/boot/common --enable-shared --enable-static
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-shared --enable-static
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
568
dev-lang/python/patches/python-2.6.7.patch
Normal file
568
dev-lang/python/patches/python-2.6.7.patch
Normal file
@@ -0,0 +1,568 @@
|
||||
diff -urN Python-2.6.7/Lib/plat-haiku1/IN.py Python-2.6.7-haiku/Lib/plat-haiku1/IN.py
|
||||
--- Python-2.6.7/Lib/plat-haiku1/IN.py 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ Python-2.6.7-haiku/Lib/plat-haiku1/IN.py 2010-08-30 04:52:27.223346688 +0000
|
||||
@@ -0,0 +1,327 @@
|
||||
+# Generated by h2py from /boot/develop/headers/be/net/netinet/in.h
|
||||
+
|
||||
+# Included from socket.h
|
||||
+
|
||||
+# Included from BeBuild.h
|
||||
+B_BEOS_VERSION_4 = 0x0400
|
||||
+B_BEOS_VERSION_4_5 = 0x0450
|
||||
+B_BEOS_VERSION_5 = 0x0500
|
||||
+B_BEOS_VERSION = B_BEOS_VERSION_5
|
||||
+B_BEOS_VERSION_MAUI = B_BEOS_VERSION_5
|
||||
+_PR2_COMPATIBLE_ = 1
|
||||
+_PR3_COMPATIBLE_ = 1
|
||||
+_R4_COMPATIBLE_ = 1
|
||||
+_R4_5_COMPATIBLE_ = 1
|
||||
+_PR2_COMPATIBLE_ = 0
|
||||
+_PR3_COMPATIBLE_ = 0
|
||||
+_R4_COMPATIBLE_ = 1
|
||||
+_R4_5_COMPATIBLE_ = 1
|
||||
+def _UNUSED(x): return x
|
||||
+
|
||||
+
|
||||
+# Included from sys/types.h
|
||||
+
|
||||
+# Included from time.h
|
||||
+
|
||||
+# Included from be_setup.h
|
||||
+def __std(ref): return ref
|
||||
+
|
||||
+__be_os = 2
|
||||
+__dest_os = __be_os
|
||||
+__MSL__ = 0x4011
|
||||
+__GLIBC__ = -2
|
||||
+__GLIBC_MINOR__ = 1
|
||||
+
|
||||
+# Included from null.h
|
||||
+NULL = (0)
|
||||
+NULL = 0L
|
||||
+
|
||||
+# Included from size_t.h
|
||||
+
|
||||
+# Included from stddef.h
|
||||
+
|
||||
+# Included from wchar_t.h
|
||||
+CLOCKS_PER_SEC = 1000
|
||||
+CLK_TCK = CLOCKS_PER_SEC
|
||||
+MAX_TIMESTR = 70
|
||||
+
|
||||
+# Included from sys/time.h
|
||||
+
|
||||
+# Included from ByteOrder.h
|
||||
+
|
||||
+# Included from endian.h
|
||||
+__LITTLE_ENDIAN = 1234
|
||||
+LITTLE_ENDIAN = __LITTLE_ENDIAN
|
||||
+__BYTE_ORDER = __LITTLE_ENDIAN
|
||||
+BYTE_ORDER = __BYTE_ORDER
|
||||
+__BIG_ENDIAN = 0
|
||||
+BIG_ENDIAN = 0
|
||||
+__BIG_ENDIAN = 4321
|
||||
+BIG_ENDIAN = __BIG_ENDIAN
|
||||
+__BYTE_ORDER = __BIG_ENDIAN
|
||||
+BYTE_ORDER = __BYTE_ORDER
|
||||
+__LITTLE_ENDIAN = 0
|
||||
+LITTLE_ENDIAN = 0
|
||||
+__PDP_ENDIAN = 3412
|
||||
+PDP_ENDIAN = __PDP_ENDIAN
|
||||
+
|
||||
+# Included from SupportDefs.h
|
||||
+
|
||||
+# Included from Errors.h
|
||||
+
|
||||
+# Included from limits.h
|
||||
+
|
||||
+# Included from float.h
|
||||
+FLT_ROUNDS = 1
|
||||
+FLT_RADIX = 2
|
||||
+FLT_MANT_DIG = 24
|
||||
+FLT_DIG = 6
|
||||
+FLT_MIN_EXP = (-125)
|
||||
+FLT_MIN_10_EXP = (-37)
|
||||
+FLT_MAX_EXP = 128
|
||||
+FLT_MAX_10_EXP = 38
|
||||
+DBL_MANT_DIG = 53
|
||||
+DBL_DIG = 15
|
||||
+DBL_MIN_EXP = (-1021)
|
||||
+DBL_MIN_10_EXP = (-308)
|
||||
+DBL_MAX_EXP = 1024
|
||||
+DBL_MAX_10_EXP = 308
|
||||
+LDBL_MANT_DIG = DBL_MANT_DIG
|
||||
+LDBL_DIG = DBL_DIG
|
||||
+LDBL_MIN_EXP = DBL_MIN_EXP
|
||||
+LDBL_MIN_10_EXP = DBL_MIN_10_EXP
|
||||
+LDBL_MAX_EXP = DBL_MAX_EXP
|
||||
+LDBL_MAX_10_EXP = DBL_MAX_10_EXP
|
||||
+CHAR_BIT = (8)
|
||||
+SCHAR_MIN = (-127-1)
|
||||
+SCHAR_MAX = (127)
|
||||
+CHAR_MIN = SCHAR_MIN
|
||||
+CHAR_MAX = SCHAR_MAX
|
||||
+MB_LEN_MAX = (1)
|
||||
+SHRT_MIN = (-32767-1)
|
||||
+SHRT_MAX = (32767)
|
||||
+LONG_MIN = (-2147483647L-1)
|
||||
+LONG_MAX = (2147483647L)
|
||||
+INT_MIN = LONG_MIN
|
||||
+INT_MAX = LONG_MAX
|
||||
+ARG_MAX = (32768)
|
||||
+ATEXIT_MAX = (32)
|
||||
+CHILD_MAX = (1024)
|
||||
+IOV_MAX = (256)
|
||||
+FILESIZEBITS = (64)
|
||||
+LINK_MAX = (1)
|
||||
+LOGIN_NAME_MAX = (32)
|
||||
+MAX_CANON = (255)
|
||||
+MAX_INPUT = (255)
|
||||
+NAME_MAX = (256)
|
||||
+NGROUPS_MAX = (32)
|
||||
+OPEN_MAX = (128)
|
||||
+PATH_MAX = (1024)
|
||||
+PIPE_MAX = (512)
|
||||
+SSIZE_MAX = (2147483647L)
|
||||
+TTY_NAME_MAX = (256)
|
||||
+TZNAME_MAX = (32)
|
||||
+SYMLINKS_MAX = (16)
|
||||
+_POSIX_ARG_MAX = (32768)
|
||||
+_POSIX_CHILD_MAX = (1024)
|
||||
+_POSIX_LINK_MAX = (1)
|
||||
+_POSIX_LOGIN_NAME_MAX = (9)
|
||||
+_POSIX_MAX_CANON = (255)
|
||||
+_POSIX_MAX_INPUT = (255)
|
||||
+_POSIX_NAME_MAX = (255)
|
||||
+_POSIX_NGROUPS_MAX = (0)
|
||||
+_POSIX_OPEN_MAX = (128)
|
||||
+_POSIX_PATH_MAX = (1024)
|
||||
+_POSIX_PIPE_BUF = (512)
|
||||
+_POSIX_SSIZE_MAX = (2147483647L)
|
||||
+_POSIX_STREAM_MAX = (8)
|
||||
+_POSIX_TTY_NAME_MAX = (256)
|
||||
+_POSIX_TZNAME_MAX = (3)
|
||||
+B_GENERAL_ERROR_BASE = LONG_MIN
|
||||
+B_OS_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x1000
|
||||
+B_APP_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x2000
|
||||
+B_INTERFACE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x3000
|
||||
+B_MEDIA_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4000
|
||||
+B_TRANSLATION_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4800
|
||||
+B_MIDI_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x5000
|
||||
+B_STORAGE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x6000
|
||||
+B_POSIX_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x7000
|
||||
+B_MAIL_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x8000
|
||||
+B_PRINT_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x9000
|
||||
+B_DEVICE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0xa000
|
||||
+B_ERRORS_END = (B_GENERAL_ERROR_BASE + 0xffff)
|
||||
+E2BIG = (B_POSIX_ERROR_BASE + 1)
|
||||
+ECHILD = (B_POSIX_ERROR_BASE + 2)
|
||||
+EDEADLK = (B_POSIX_ERROR_BASE + 3)
|
||||
+EFBIG = (B_POSIX_ERROR_BASE + 4)
|
||||
+EMLINK = (B_POSIX_ERROR_BASE + 5)
|
||||
+ENFILE = (B_POSIX_ERROR_BASE + 6)
|
||||
+ENODEV = (B_POSIX_ERROR_BASE + 7)
|
||||
+ENOLCK = (B_POSIX_ERROR_BASE + 8)
|
||||
+ENOSYS = (B_POSIX_ERROR_BASE + 9)
|
||||
+ENOTTY = (B_POSIX_ERROR_BASE + 10)
|
||||
+ENXIO = (B_POSIX_ERROR_BASE + 11)
|
||||
+ESPIPE = (B_POSIX_ERROR_BASE + 12)
|
||||
+ESRCH = (B_POSIX_ERROR_BASE + 13)
|
||||
+EFPOS = (B_POSIX_ERROR_BASE + 14)
|
||||
+ESIGPARM = (B_POSIX_ERROR_BASE + 15)
|
||||
+EDOM = (B_POSIX_ERROR_BASE + 16)
|
||||
+ERANGE = (B_POSIX_ERROR_BASE + 17)
|
||||
+EPROTOTYPE = (B_POSIX_ERROR_BASE + 18)
|
||||
+EPROTONOSUPPORT = (B_POSIX_ERROR_BASE + 19)
|
||||
+EPFNOSUPPORT = (B_POSIX_ERROR_BASE + 20)
|
||||
+EAFNOSUPPORT = (B_POSIX_ERROR_BASE + 21)
|
||||
+EADDRINUSE = (B_POSIX_ERROR_BASE + 22)
|
||||
+EADDRNOTAVAIL = (B_POSIX_ERROR_BASE + 23)
|
||||
+ENETDOWN = (B_POSIX_ERROR_BASE + 24)
|
||||
+ENETUNREACH = (B_POSIX_ERROR_BASE + 25)
|
||||
+ENETRESET = (B_POSIX_ERROR_BASE + 26)
|
||||
+ECONNABORTED = (B_POSIX_ERROR_BASE + 27)
|
||||
+ECONNRESET = (B_POSIX_ERROR_BASE + 28)
|
||||
+EISCONN = (B_POSIX_ERROR_BASE + 29)
|
||||
+ENOTCONN = (B_POSIX_ERROR_BASE + 30)
|
||||
+ESHUTDOWN = (B_POSIX_ERROR_BASE + 31)
|
||||
+ECONNREFUSED = (B_POSIX_ERROR_BASE + 32)
|
||||
+EHOSTUNREACH = (B_POSIX_ERROR_BASE + 33)
|
||||
+ENOPROTOOPT = (B_POSIX_ERROR_BASE + 34)
|
||||
+ENOBUFS = (B_POSIX_ERROR_BASE + 35)
|
||||
+EINPROGRESS = (B_POSIX_ERROR_BASE + 36)
|
||||
+EALREADY = (B_POSIX_ERROR_BASE + 37)
|
||||
+EILSEQ = (B_POSIX_ERROR_BASE + 38)
|
||||
+ENOMSG = (B_POSIX_ERROR_BASE + 39)
|
||||
+ESTALE = (B_POSIX_ERROR_BASE + 40)
|
||||
+EOVERFLOW = (B_POSIX_ERROR_BASE + 41)
|
||||
+EMSGSIZE = (B_POSIX_ERROR_BASE + 42)
|
||||
+EOPNOTSUPP = (B_POSIX_ERROR_BASE + 43)
|
||||
+ENOTSOCK = (B_POSIX_ERROR_BASE + 44)
|
||||
+false = 0
|
||||
+true = 1
|
||||
+NULL = (0)
|
||||
+FALSE = 0
|
||||
+TRUE = 1
|
||||
+
|
||||
+# Included from TypeConstants.h
|
||||
+B_HOST_IS_LENDIAN = 1
|
||||
+B_HOST_IS_BENDIAN = 0
|
||||
+def B_HOST_TO_LENDIAN_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+B_HOST_IS_LENDIAN = 0
|
||||
+B_HOST_IS_BENDIAN = 1
|
||||
+def B_HOST_TO_LENDIAN_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_SWAP_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_SWAP_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_SWAP_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_SWAP_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_SWAP_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def htonl(x): return B_HOST_TO_BENDIAN_INT32(x)
|
||||
+
|
||||
+def ntohl(x): return B_BENDIAN_TO_HOST_INT32(x)
|
||||
+
|
||||
+def htons(x): return B_HOST_TO_BENDIAN_INT16(x)
|
||||
+
|
||||
+def ntohs(x): return B_BENDIAN_TO_HOST_INT16(x)
|
||||
+
|
||||
+AF_INET = 1
|
||||
+INADDR_ANY = 0x00000000
|
||||
+INADDR_BROADCAST = 0xffffffff
|
||||
+INADDR_LOOPBACK = 0x7f000001
|
||||
+SOL_SOCKET = 1
|
||||
+SO_DEBUG = 1
|
||||
+SO_REUSEADDR = 2
|
||||
+SO_NONBLOCK = 3
|
||||
+SO_REUSEPORT = 4
|
||||
+MSG_OOB = 0x1
|
||||
+SOCK_DGRAM = 1
|
||||
+SOCK_STREAM = 2
|
||||
+IPPROTO_UDP = 1
|
||||
+IPPROTO_TCP = 2
|
||||
+IPPROTO_ICMP = 3
|
||||
+B_UDP_MAX_SIZE = (65536 - 1024)
|
||||
+FD_SETSIZE = 256
|
||||
+FDSETSIZE = FD_SETSIZE
|
||||
+NFDBITS = 32
|
||||
+def _FDMSKNO(fd): return ((fd) / NFDBITS)
|
||||
+
|
||||
+def _FDBITNO(fd): return ((fd) % NFDBITS)
|
||||
diff -urN Python-2.6.7/Lib/plat-haiku1/regen Python-2.6.7-haiku/Lib/plat-haiku1/regen
|
||||
--- Python-2.6.7/Lib/plat-haiku1/regen 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ Python-2.6.7-haiku/Lib/plat-haiku1/regen 2010-08-30 04:52:27.237502464 +0000
|
||||
@@ -0,0 +1,7 @@
|
||||
+#! /bin/sh
|
||||
+
|
||||
+H2PY=../../Tools/scripts/h2py.py
|
||||
+HEADERS=/boot/develop/headers
|
||||
+
|
||||
+set -v
|
||||
+python $H2PY -i '(u_long)' $HEADERS/posix/netinet/in.h
|
||||
diff -urN Python-2.6.7/Modules/resource.c Python-2.6.7-haiku/Modules/resource.c
|
||||
--- Python-2.6.7/Modules/resource.c 2010-05-09 15:15:40.053739520 +0000
|
||||
+++ Python-2.6.7-haiku/Modules/resource.c 2010-08-30 04:52:24.666370048 +0000
|
||||
@@ -86,6 +86,7 @@
|
||||
PyFloat_FromDouble(doubletime(ru.ru_utime)));
|
||||
PyStructSequence_SET_ITEM(result, 1,
|
||||
PyFloat_FromDouble(doubletime(ru.ru_stime)));
|
||||
+#ifndef __HAIKU__
|
||||
PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss));
|
||||
PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss));
|
||||
PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss));
|
||||
@@ -100,7 +101,7 @@
|
||||
PyStructSequence_SET_ITEM(result, 13, PyInt_FromLong(ru.ru_nsignals));
|
||||
PyStructSequence_SET_ITEM(result, 14, PyInt_FromLong(ru.ru_nvcsw));
|
||||
PyStructSequence_SET_ITEM(result, 15, PyInt_FromLong(ru.ru_nivcsw));
|
||||
-
|
||||
+#endif
|
||||
if (PyErr_Occurred()) {
|
||||
Py_DECREF(result);
|
||||
return NULL;
|
||||
diff -urN Python-2.6.7/Modules/socketmodule.c Python-2.6.7-haiku/Modules/socketmodule.c
|
||||
--- Python-2.6.7/Modules/socketmodule.c 2010-05-23 15:22:08.054525952 +0000
|
||||
+++ Python-2.6.7-haiku/Modules/socketmodule.c 2010-08-30 04:53:35.429916160 +0000
|
||||
@@ -4661,7 +4661,9 @@
|
||||
#ifndef __BEOS__
|
||||
/* We have incomplete socket support. */
|
||||
PyModule_AddIntConstant(m, "SOCK_RAW", SOCK_RAW);
|
||||
- PyModule_AddIntConstant(m, "SOCK_SEQPACKET", SOCK_SEQPACKET);
|
||||
+#ifndef __HAIKU__
|
||||
+ PyModule_AddIntConstant(m, "SOCK_SEQPACKET", SOCK_SEQPACKET);
|
||||
+#endif
|
||||
#if defined(SOCK_RDM)
|
||||
PyModule_AddIntConstant(m, "SOCK_RDM", SOCK_RDM);
|
||||
#endif
|
||||
diff -urN Python-2.6.7/Modules/socketmodule.h Python-2.6.7-haiku/Modules/socketmodule.h
|
||||
--- Python-2.6.7/Modules/socketmodule.h 2010-05-09 15:15:40.053739520 +0000
|
||||
+++ Python-2.6.7-haiku/Modules/socketmodule.h 2010-08-30 04:52:24.667942912 +0000
|
||||
@@ -47,6 +47,10 @@
|
||||
# undef AF_NETLINK
|
||||
#endif
|
||||
|
||||
+#if defined(__HAIKU__)
|
||||
+#undef HAVE_BLUETOOTH_BLUETOOTH_H
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/rfcomm.h>
|
||||
diff -urN Python-2.6.7/Modules/spwdmodule.c Python-2.6.7-haiku/Modules/spwdmodule.c
|
||||
--- Python-2.6.7/Modules/spwdmodule.c 2010-05-09 15:15:40.030408704 +0000
|
||||
+++ Python-2.6.7-haiku/Modules/spwdmodule.c 2010-08-30 04:52:24.709623808 +0000
|
||||
@@ -79,7 +79,9 @@
|
||||
|
||||
SETS(setIndex++, p->sp_namp);
|
||||
SETS(setIndex++, p->sp_pwdp);
|
||||
+#ifndef __HAIKU__
|
||||
SETI(setIndex++, p->sp_lstchg);
|
||||
+#endif
|
||||
SETI(setIndex++, p->sp_min);
|
||||
SETI(setIndex++, p->sp_max);
|
||||
SETI(setIndex++, p->sp_warn);
|
||||
diff -urN Python-2.6.7/Modules/timemodule.c Python-2.6.7-haiku/Modules/timemodule.c
|
||||
--- Python-2.6.7/Modules/timemodule.c 2010-05-09 15:15:40.015204352 +0000
|
||||
+++ Python-2.6.7-haiku/Modules/timemodule.c 2010-08-30 04:52:24.721944576 +0000
|
||||
@@ -972,11 +972,11 @@
|
||||
return -1;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
-#elif defined(__BEOS__)
|
||||
+#elif defined(__BEOS__) || defined(__HAIKU__)
|
||||
/* This sleep *CAN BE* interrupted. */
|
||||
{
|
||||
if( secs <= 0.0 ) {
|
||||
- return;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
diff -urN Python-2.6.7/Parser/asdl_c.py Python-2.6.7-haiku/Parser/asdl_c.py
|
||||
--- Python-2.6.7/Parser/asdl_c.py 2009-12-13 00:59:01.059768832 +0000
|
||||
+++ Python-2.6.7-haiku/Parser/asdl_c.py 2010-08-30 04:52:27.169607168 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/env python
|
||||
+#! /bin/env python
|
||||
"""Generate C code from an ASDL description."""
|
||||
|
||||
# TO DO
|
||||
diff -urN Python-2.6.7/Python/bltinmodule.c Python-2.6.7-haiku/Python/bltinmodule.c
|
||||
--- Python-2.6.7/Python/bltinmodule.c 2010-05-09 15:15:40.065011712 +0000
|
||||
+++ Python-2.6.7-haiku/Python/bltinmodule.c 2010-08-30 04:52:27.186646528 +0000
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
|
||||
const char *Py_FileSystemDefaultEncoding = "mbcs";
|
||||
-#elif defined(__APPLE__)
|
||||
+#elif defined(__APPLE__) || defined(__HAIKU__)
|
||||
const char *Py_FileSystemDefaultEncoding = "utf-8";
|
||||
#else
|
||||
const char *Py_FileSystemDefaultEncoding = NULL; /* use default */
|
||||
diff -urN Python-2.6.7/Tools/scripts/h2py.py Python-2.6.7-haiku/Tools/scripts/h2py.py
|
||||
--- Python-2.6.7/Tools/scripts/h2py.py 2004-08-09 17:27:55.066584576 +0000
|
||||
+++ Python-2.6.7-haiku/Tools/scripts/h2py.py 2010-08-30 04:52:27.188219392 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/env python
|
||||
+#! /bin/env python
|
||||
|
||||
# Read #define's and translate to Python code.
|
||||
# Handle #include statements.
|
||||
@@ -50,7 +50,7 @@
|
||||
searchdirs=os.environ['INCLUDE'].split(';')
|
||||
except KeyError:
|
||||
try:
|
||||
- if sys.platform.find("beos") == 0:
|
||||
+ if sys.platform.find("beos") == 0 or sys.platform.find("haiku1") == 0:
|
||||
searchdirs=os.environ['BEINCLUDES'].split(';')
|
||||
elif sys.platform.startswith("atheos"):
|
||||
searchdirs=os.environ['C_INCLUDE_PATH'].split(':')
|
||||
diff -urN Python-2.6.7/configure.in Python-2.6.7-haiku/configure.in
|
||||
--- Python-2.6.7/configure.in 2010-05-25 02:27:03.064225280 +0000
|
||||
+++ Python-2.6.7-haiku/configure.in 2010-08-30 04:52:27.207880192 +0000
|
||||
@@ -745,7 +745,7 @@
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
||||
INSTSONAME="$LDLIBRARY".$SOVERSION
|
||||
;;
|
||||
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
|
||||
+ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|Haiku*)
|
||||
LDLIBRARY='libpython$(VERSION).so'
|
||||
BLDLIBRARY='-L. -lpython$(VERSION)'
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
||||
@@ -823,7 +823,7 @@
|
||||
AC_SUBST(LN)
|
||||
if test -z "$LN" ; then
|
||||
case $ac_sys_system in
|
||||
- BeOS*) LN="ln -s";;
|
||||
+ BeOS*|Haiku*) LN="ln -s";;
|
||||
CYGWIN*) LN="ln -s";;
|
||||
atheos*) LN="ln -s";;
|
||||
*) LN=ln;;
|
||||
@@ -1829,7 +1829,7 @@
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
- Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
|
||||
+ Linux*|GNU*|QNX*|Haiku*) LDSHARED='$(CC) -shared';;
|
||||
BSD/OS*/4*) LDSHARED="gcc -shared";;
|
||||
FreeBSD*)
|
||||
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
||||
@@ -1883,7 +1883,7 @@
|
||||
then CCSHARED="-fPIC";
|
||||
else CCSHARED="+z";
|
||||
fi;;
|
||||
- Linux*|GNU*) CCSHARED="-fPIC";;
|
||||
+ Linux*|GNU*|Haiku*) CCSHARED="-fPIC";;
|
||||
BSD/OS*/4*) CCSHARED="-fpic";;
|
||||
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
|
||||
OpenUNIX*|UnixWare*)
|
||||
@@ -1916,7 +1916,7 @@
|
||||
LINKFORSHARED="-Wl,-E -Wl,+s";;
|
||||
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
|
||||
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
- Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
+ Linux*|GNU*|Haiku*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
# -u libsys_s pulls in all symbols in libsys
|
||||
Darwin/*)
|
||||
# -u _PyMac_Error is needed to pull in the mac toolbox glue,
|
||||
@@ -2035,6 +2035,9 @@
|
||||
BeOS*)
|
||||
AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS
|
||||
;;
|
||||
+Haiku*)
|
||||
+AC_CHECK_LIB(network, socket, [LIBS="-lnetwork $LIBS"], [], $LIBS) # Haiku
|
||||
+;;
|
||||
esac
|
||||
|
||||
AC_MSG_CHECKING(for --with-libs)
|
||||
@@ -3265,7 +3268,7 @@
|
||||
AC_SUBST(LIBM)
|
||||
case $ac_sys_system in
|
||||
Darwin) ;;
|
||||
-BeOS) ;;
|
||||
+BeOS|Haiku) ;;
|
||||
*) LIBM=-lm
|
||||
esac
|
||||
AC_MSG_CHECKING(for --with-libm=STRING)
|
||||
diff -urN Python-2.6.7/setup.py Python-2.6.7-haiku/setup.py
|
||||
--- Python-2.6.7/setup.py 2010-07-17 12:31:09.057147392 +0000
|
||||
+++ Python-2.6.7-haiku/setup.py 2010-08-30 04:52:27.220463104 +0000
|
||||
@@ -428,6 +428,10 @@
|
||||
inc_dirs += ['/system/include', '/atheos/autolnk/include']
|
||||
inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
|
||||
|
||||
+ if platform == 'haiku1':
|
||||
+ inc_dirs += ['/boot/develop/headers/posix', '/boot/develop/headers/3rdparty', '/boot/common/include']
|
||||
+ lib_dirs += ['/boot/system/lib', '/boot/develop/lib/x86', '/boot/common/lib']
|
||||
+
|
||||
# OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
|
||||
if platform in ['osf1', 'unixware7', 'openunix8']:
|
||||
lib_dirs += ['/usr/ccs/lib']
|
||||
@@ -451,7 +455,7 @@
|
||||
|
||||
# Check for MacOS X, which doesn't need libm.a at all
|
||||
math_libs = ['m']
|
||||
- if platform in ['darwin', 'beos', 'mac']:
|
||||
+ if platform in ['darwin', 'beos', 'haiku1', 'mac']:
|
||||
math_libs = []
|
||||
|
||||
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
||||
@@ -1176,7 +1180,7 @@
|
||||
missing.append('resource')
|
||||
|
||||
# Sun yellow pages. Some systems have the functions in libc.
|
||||
- if (platform not in ['cygwin', 'atheos', 'qnx6'] and
|
||||
+ if (platform not in ['cygwin', 'atheos', 'qnx6', 'haiku1'] and
|
||||
find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None):
|
||||
if (self.compiler.find_library_file(lib_dirs, 'nsl')):
|
||||
libs = ['nsl']
|
||||
--- Python-2.6.7/Lib/test/test_fileio.py 2012-07-26 23:04:42.208666624 +0000
|
||||
+++ Python-2.6.7-haiku/Lib/test/test_fileio.py 2012-07-26 23:05:09.382730240 +0000
|
||||
@@ -152,6 +152,7 @@
|
||||
self.assertEquals(f.writable(), True)
|
||||
if sys.platform != "darwin" and \
|
||||
'bsd' not in sys.platform and \
|
||||
+ 'haiku' not in sys.platform and \
|
||||
not sys.platform.startswith('sunos'):
|
||||
# Somehow /dev/tty appears seekable on some BSDs
|
||||
self.assertEquals(f.seekable(), False)
|
||||
568
dev-lang/python/patches/python-2.6.8.patch
Normal file
568
dev-lang/python/patches/python-2.6.8.patch
Normal file
@@ -0,0 +1,568 @@
|
||||
diff -urN Python-2.6.8/Lib/plat-haiku1/IN.py Python-2.6.8-haiku/Lib/plat-haiku1/IN.py
|
||||
--- Python-2.6.8/Lib/plat-haiku1/IN.py 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ Python-2.6.8-haiku/Lib/plat-haiku1/IN.py 2010-08-30 04:52:27.223346688 +0000
|
||||
@@ -0,0 +1,327 @@
|
||||
+# Generated by h2py from /boot/develop/headers/be/net/netinet/in.h
|
||||
+
|
||||
+# Included from socket.h
|
||||
+
|
||||
+# Included from BeBuild.h
|
||||
+B_BEOS_VERSION_4 = 0x0400
|
||||
+B_BEOS_VERSION_4_5 = 0x0450
|
||||
+B_BEOS_VERSION_5 = 0x0500
|
||||
+B_BEOS_VERSION = B_BEOS_VERSION_5
|
||||
+B_BEOS_VERSION_MAUI = B_BEOS_VERSION_5
|
||||
+_PR2_COMPATIBLE_ = 1
|
||||
+_PR3_COMPATIBLE_ = 1
|
||||
+_R4_COMPATIBLE_ = 1
|
||||
+_R4_5_COMPATIBLE_ = 1
|
||||
+_PR2_COMPATIBLE_ = 0
|
||||
+_PR3_COMPATIBLE_ = 0
|
||||
+_R4_COMPATIBLE_ = 1
|
||||
+_R4_5_COMPATIBLE_ = 1
|
||||
+def _UNUSED(x): return x
|
||||
+
|
||||
+
|
||||
+# Included from sys/types.h
|
||||
+
|
||||
+# Included from time.h
|
||||
+
|
||||
+# Included from be_setup.h
|
||||
+def __std(ref): return ref
|
||||
+
|
||||
+__be_os = 2
|
||||
+__dest_os = __be_os
|
||||
+__MSL__ = 0x4011
|
||||
+__GLIBC__ = -2
|
||||
+__GLIBC_MINOR__ = 1
|
||||
+
|
||||
+# Included from null.h
|
||||
+NULL = (0)
|
||||
+NULL = 0L
|
||||
+
|
||||
+# Included from size_t.h
|
||||
+
|
||||
+# Included from stddef.h
|
||||
+
|
||||
+# Included from wchar_t.h
|
||||
+CLOCKS_PER_SEC = 1000
|
||||
+CLK_TCK = CLOCKS_PER_SEC
|
||||
+MAX_TIMESTR = 70
|
||||
+
|
||||
+# Included from sys/time.h
|
||||
+
|
||||
+# Included from ByteOrder.h
|
||||
+
|
||||
+# Included from endian.h
|
||||
+__LITTLE_ENDIAN = 1234
|
||||
+LITTLE_ENDIAN = __LITTLE_ENDIAN
|
||||
+__BYTE_ORDER = __LITTLE_ENDIAN
|
||||
+BYTE_ORDER = __BYTE_ORDER
|
||||
+__BIG_ENDIAN = 0
|
||||
+BIG_ENDIAN = 0
|
||||
+__BIG_ENDIAN = 4321
|
||||
+BIG_ENDIAN = __BIG_ENDIAN
|
||||
+__BYTE_ORDER = __BIG_ENDIAN
|
||||
+BYTE_ORDER = __BYTE_ORDER
|
||||
+__LITTLE_ENDIAN = 0
|
||||
+LITTLE_ENDIAN = 0
|
||||
+__PDP_ENDIAN = 3412
|
||||
+PDP_ENDIAN = __PDP_ENDIAN
|
||||
+
|
||||
+# Included from SupportDefs.h
|
||||
+
|
||||
+# Included from Errors.h
|
||||
+
|
||||
+# Included from limits.h
|
||||
+
|
||||
+# Included from float.h
|
||||
+FLT_ROUNDS = 1
|
||||
+FLT_RADIX = 2
|
||||
+FLT_MANT_DIG = 24
|
||||
+FLT_DIG = 6
|
||||
+FLT_MIN_EXP = (-125)
|
||||
+FLT_MIN_10_EXP = (-37)
|
||||
+FLT_MAX_EXP = 128
|
||||
+FLT_MAX_10_EXP = 38
|
||||
+DBL_MANT_DIG = 53
|
||||
+DBL_DIG = 15
|
||||
+DBL_MIN_EXP = (-1021)
|
||||
+DBL_MIN_10_EXP = (-308)
|
||||
+DBL_MAX_EXP = 1024
|
||||
+DBL_MAX_10_EXP = 308
|
||||
+LDBL_MANT_DIG = DBL_MANT_DIG
|
||||
+LDBL_DIG = DBL_DIG
|
||||
+LDBL_MIN_EXP = DBL_MIN_EXP
|
||||
+LDBL_MIN_10_EXP = DBL_MIN_10_EXP
|
||||
+LDBL_MAX_EXP = DBL_MAX_EXP
|
||||
+LDBL_MAX_10_EXP = DBL_MAX_10_EXP
|
||||
+CHAR_BIT = (8)
|
||||
+SCHAR_MIN = (-127-1)
|
||||
+SCHAR_MAX = (127)
|
||||
+CHAR_MIN = SCHAR_MIN
|
||||
+CHAR_MAX = SCHAR_MAX
|
||||
+MB_LEN_MAX = (1)
|
||||
+SHRT_MIN = (-32767-1)
|
||||
+SHRT_MAX = (32767)
|
||||
+LONG_MIN = (-2147483647L-1)
|
||||
+LONG_MAX = (2147483647L)
|
||||
+INT_MIN = LONG_MIN
|
||||
+INT_MAX = LONG_MAX
|
||||
+ARG_MAX = (32768)
|
||||
+ATEXIT_MAX = (32)
|
||||
+CHILD_MAX = (1024)
|
||||
+IOV_MAX = (256)
|
||||
+FILESIZEBITS = (64)
|
||||
+LINK_MAX = (1)
|
||||
+LOGIN_NAME_MAX = (32)
|
||||
+MAX_CANON = (255)
|
||||
+MAX_INPUT = (255)
|
||||
+NAME_MAX = (256)
|
||||
+NGROUPS_MAX = (32)
|
||||
+OPEN_MAX = (128)
|
||||
+PATH_MAX = (1024)
|
||||
+PIPE_MAX = (512)
|
||||
+SSIZE_MAX = (2147483647L)
|
||||
+TTY_NAME_MAX = (256)
|
||||
+TZNAME_MAX = (32)
|
||||
+SYMLINKS_MAX = (16)
|
||||
+_POSIX_ARG_MAX = (32768)
|
||||
+_POSIX_CHILD_MAX = (1024)
|
||||
+_POSIX_LINK_MAX = (1)
|
||||
+_POSIX_LOGIN_NAME_MAX = (9)
|
||||
+_POSIX_MAX_CANON = (255)
|
||||
+_POSIX_MAX_INPUT = (255)
|
||||
+_POSIX_NAME_MAX = (255)
|
||||
+_POSIX_NGROUPS_MAX = (0)
|
||||
+_POSIX_OPEN_MAX = (128)
|
||||
+_POSIX_PATH_MAX = (1024)
|
||||
+_POSIX_PIPE_BUF = (512)
|
||||
+_POSIX_SSIZE_MAX = (2147483647L)
|
||||
+_POSIX_STREAM_MAX = (8)
|
||||
+_POSIX_TTY_NAME_MAX = (256)
|
||||
+_POSIX_TZNAME_MAX = (3)
|
||||
+B_GENERAL_ERROR_BASE = LONG_MIN
|
||||
+B_OS_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x1000
|
||||
+B_APP_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x2000
|
||||
+B_INTERFACE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x3000
|
||||
+B_MEDIA_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4000
|
||||
+B_TRANSLATION_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x4800
|
||||
+B_MIDI_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x5000
|
||||
+B_STORAGE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x6000
|
||||
+B_POSIX_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x7000
|
||||
+B_MAIL_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x8000
|
||||
+B_PRINT_ERROR_BASE = B_GENERAL_ERROR_BASE + 0x9000
|
||||
+B_DEVICE_ERROR_BASE = B_GENERAL_ERROR_BASE + 0xa000
|
||||
+B_ERRORS_END = (B_GENERAL_ERROR_BASE + 0xffff)
|
||||
+E2BIG = (B_POSIX_ERROR_BASE + 1)
|
||||
+ECHILD = (B_POSIX_ERROR_BASE + 2)
|
||||
+EDEADLK = (B_POSIX_ERROR_BASE + 3)
|
||||
+EFBIG = (B_POSIX_ERROR_BASE + 4)
|
||||
+EMLINK = (B_POSIX_ERROR_BASE + 5)
|
||||
+ENFILE = (B_POSIX_ERROR_BASE + 6)
|
||||
+ENODEV = (B_POSIX_ERROR_BASE + 7)
|
||||
+ENOLCK = (B_POSIX_ERROR_BASE + 8)
|
||||
+ENOSYS = (B_POSIX_ERROR_BASE + 9)
|
||||
+ENOTTY = (B_POSIX_ERROR_BASE + 10)
|
||||
+ENXIO = (B_POSIX_ERROR_BASE + 11)
|
||||
+ESPIPE = (B_POSIX_ERROR_BASE + 12)
|
||||
+ESRCH = (B_POSIX_ERROR_BASE + 13)
|
||||
+EFPOS = (B_POSIX_ERROR_BASE + 14)
|
||||
+ESIGPARM = (B_POSIX_ERROR_BASE + 15)
|
||||
+EDOM = (B_POSIX_ERROR_BASE + 16)
|
||||
+ERANGE = (B_POSIX_ERROR_BASE + 17)
|
||||
+EPROTOTYPE = (B_POSIX_ERROR_BASE + 18)
|
||||
+EPROTONOSUPPORT = (B_POSIX_ERROR_BASE + 19)
|
||||
+EPFNOSUPPORT = (B_POSIX_ERROR_BASE + 20)
|
||||
+EAFNOSUPPORT = (B_POSIX_ERROR_BASE + 21)
|
||||
+EADDRINUSE = (B_POSIX_ERROR_BASE + 22)
|
||||
+EADDRNOTAVAIL = (B_POSIX_ERROR_BASE + 23)
|
||||
+ENETDOWN = (B_POSIX_ERROR_BASE + 24)
|
||||
+ENETUNREACH = (B_POSIX_ERROR_BASE + 25)
|
||||
+ENETRESET = (B_POSIX_ERROR_BASE + 26)
|
||||
+ECONNABORTED = (B_POSIX_ERROR_BASE + 27)
|
||||
+ECONNRESET = (B_POSIX_ERROR_BASE + 28)
|
||||
+EISCONN = (B_POSIX_ERROR_BASE + 29)
|
||||
+ENOTCONN = (B_POSIX_ERROR_BASE + 30)
|
||||
+ESHUTDOWN = (B_POSIX_ERROR_BASE + 31)
|
||||
+ECONNREFUSED = (B_POSIX_ERROR_BASE + 32)
|
||||
+EHOSTUNREACH = (B_POSIX_ERROR_BASE + 33)
|
||||
+ENOPROTOOPT = (B_POSIX_ERROR_BASE + 34)
|
||||
+ENOBUFS = (B_POSIX_ERROR_BASE + 35)
|
||||
+EINPROGRESS = (B_POSIX_ERROR_BASE + 36)
|
||||
+EALREADY = (B_POSIX_ERROR_BASE + 37)
|
||||
+EILSEQ = (B_POSIX_ERROR_BASE + 38)
|
||||
+ENOMSG = (B_POSIX_ERROR_BASE + 39)
|
||||
+ESTALE = (B_POSIX_ERROR_BASE + 40)
|
||||
+EOVERFLOW = (B_POSIX_ERROR_BASE + 41)
|
||||
+EMSGSIZE = (B_POSIX_ERROR_BASE + 42)
|
||||
+EOPNOTSUPP = (B_POSIX_ERROR_BASE + 43)
|
||||
+ENOTSOCK = (B_POSIX_ERROR_BASE + 44)
|
||||
+false = 0
|
||||
+true = 1
|
||||
+NULL = (0)
|
||||
+FALSE = 0
|
||||
+TRUE = 1
|
||||
+
|
||||
+# Included from TypeConstants.h
|
||||
+B_HOST_IS_LENDIAN = 1
|
||||
+B_HOST_IS_BENDIAN = 0
|
||||
+def B_HOST_TO_LENDIAN_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+B_HOST_IS_LENDIAN = 0
|
||||
+B_HOST_IS_BENDIAN = 1
|
||||
+def B_HOST_TO_LENDIAN_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_HOST_TO_LENDIAN_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_HOST_TO_BENDIAN_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_LENDIAN_TO_HOST_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_DOUBLE(arg): return (double)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_FLOAT(arg): return (float)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT64(arg): return (uint64)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT32(arg): return (uint32)(arg)
|
||||
+
|
||||
+def B_BENDIAN_TO_HOST_INT16(arg): return (uint16)(arg)
|
||||
+
|
||||
+def B_SWAP_DOUBLE(arg): return __swap_double(arg)
|
||||
+
|
||||
+def B_SWAP_FLOAT(arg): return __swap_float(arg)
|
||||
+
|
||||
+def B_SWAP_INT64(arg): return __swap_int64(arg)
|
||||
+
|
||||
+def B_SWAP_INT32(arg): return __swap_int32(arg)
|
||||
+
|
||||
+def B_SWAP_INT16(arg): return __swap_int16(arg)
|
||||
+
|
||||
+def htonl(x): return B_HOST_TO_BENDIAN_INT32(x)
|
||||
+
|
||||
+def ntohl(x): return B_BENDIAN_TO_HOST_INT32(x)
|
||||
+
|
||||
+def htons(x): return B_HOST_TO_BENDIAN_INT16(x)
|
||||
+
|
||||
+def ntohs(x): return B_BENDIAN_TO_HOST_INT16(x)
|
||||
+
|
||||
+AF_INET = 1
|
||||
+INADDR_ANY = 0x00000000
|
||||
+INADDR_BROADCAST = 0xffffffff
|
||||
+INADDR_LOOPBACK = 0x7f000001
|
||||
+SOL_SOCKET = 1
|
||||
+SO_DEBUG = 1
|
||||
+SO_REUSEADDR = 2
|
||||
+SO_NONBLOCK = 3
|
||||
+SO_REUSEPORT = 4
|
||||
+MSG_OOB = 0x1
|
||||
+SOCK_DGRAM = 1
|
||||
+SOCK_STREAM = 2
|
||||
+IPPROTO_UDP = 1
|
||||
+IPPROTO_TCP = 2
|
||||
+IPPROTO_ICMP = 3
|
||||
+B_UDP_MAX_SIZE = (65536 - 1024)
|
||||
+FD_SETSIZE = 256
|
||||
+FDSETSIZE = FD_SETSIZE
|
||||
+NFDBITS = 32
|
||||
+def _FDMSKNO(fd): return ((fd) / NFDBITS)
|
||||
+
|
||||
+def _FDBITNO(fd): return ((fd) % NFDBITS)
|
||||
diff -urN Python-2.6.8/Lib/plat-haiku1/regen Python-2.6.8-haiku/Lib/plat-haiku1/regen
|
||||
--- Python-2.6.8/Lib/plat-haiku1/regen 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ Python-2.6.8-haiku/Lib/plat-haiku1/regen 2010-08-30 04:52:27.237502464 +0000
|
||||
@@ -0,0 +1,7 @@
|
||||
+#! /bin/sh
|
||||
+
|
||||
+H2PY=../../Tools/scripts/h2py.py
|
||||
+HEADERS=/boot/develop/headers
|
||||
+
|
||||
+set -v
|
||||
+python $H2PY -i '(u_long)' $HEADERS/posix/netinet/in.h
|
||||
diff -urN Python-2.6.8/Modules/resource.c Python-2.6.8-haiku/Modules/resource.c
|
||||
--- Python-2.6.8/Modules/resource.c 2010-05-09 15:15:40.053739520 +0000
|
||||
+++ Python-2.6.8-haiku/Modules/resource.c 2010-08-30 04:52:24.666370048 +0000
|
||||
@@ -86,6 +86,7 @@
|
||||
PyFloat_FromDouble(doubletime(ru.ru_utime)));
|
||||
PyStructSequence_SET_ITEM(result, 1,
|
||||
PyFloat_FromDouble(doubletime(ru.ru_stime)));
|
||||
+#ifndef __HAIKU__
|
||||
PyStructSequence_SET_ITEM(result, 2, PyInt_FromLong(ru.ru_maxrss));
|
||||
PyStructSequence_SET_ITEM(result, 3, PyInt_FromLong(ru.ru_ixrss));
|
||||
PyStructSequence_SET_ITEM(result, 4, PyInt_FromLong(ru.ru_idrss));
|
||||
@@ -100,7 +101,7 @@
|
||||
PyStructSequence_SET_ITEM(result, 13, PyInt_FromLong(ru.ru_nsignals));
|
||||
PyStructSequence_SET_ITEM(result, 14, PyInt_FromLong(ru.ru_nvcsw));
|
||||
PyStructSequence_SET_ITEM(result, 15, PyInt_FromLong(ru.ru_nivcsw));
|
||||
-
|
||||
+#endif
|
||||
if (PyErr_Occurred()) {
|
||||
Py_DECREF(result);
|
||||
return NULL;
|
||||
diff -urN Python-2.6.8/Modules/socketmodule.c Python-2.6.8-haiku/Modules/socketmodule.c
|
||||
--- Python-2.6.8/Modules/socketmodule.c 2010-05-23 15:22:08.054525952 +0000
|
||||
+++ Python-2.6.8-haiku/Modules/socketmodule.c 2010-08-30 04:53:35.429916160 +0000
|
||||
@@ -4661,7 +4661,9 @@
|
||||
#ifndef __BEOS__
|
||||
/* We have incomplete socket support. */
|
||||
PyModule_AddIntConstant(m, "SOCK_RAW", SOCK_RAW);
|
||||
- PyModule_AddIntConstant(m, "SOCK_SEQPACKET", SOCK_SEQPACKET);
|
||||
+#ifndef __HAIKU__
|
||||
+ PyModule_AddIntConstant(m, "SOCK_SEQPACKET", SOCK_SEQPACKET);
|
||||
+#endif
|
||||
#if defined(SOCK_RDM)
|
||||
PyModule_AddIntConstant(m, "SOCK_RDM", SOCK_RDM);
|
||||
#endif
|
||||
diff -urN Python-2.6.8/Modules/socketmodule.h Python-2.6.8-haiku/Modules/socketmodule.h
|
||||
--- Python-2.6.8/Modules/socketmodule.h 2010-05-09 15:15:40.053739520 +0000
|
||||
+++ Python-2.6.8-haiku/Modules/socketmodule.h 2010-08-30 04:52:24.667942912 +0000
|
||||
@@ -47,6 +47,10 @@
|
||||
# undef AF_NETLINK
|
||||
#endif
|
||||
|
||||
+#if defined(__HAIKU__)
|
||||
+#undef HAVE_BLUETOOTH_BLUETOOTH_H
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/rfcomm.h>
|
||||
diff -urN Python-2.6.8/Modules/spwdmodule.c Python-2.6.8-haiku/Modules/spwdmodule.c
|
||||
--- Python-2.6.8/Modules/spwdmodule.c 2010-05-09 15:15:40.030408704 +0000
|
||||
+++ Python-2.6.8-haiku/Modules/spwdmodule.c 2010-08-30 04:52:24.709623808 +0000
|
||||
@@ -79,7 +79,9 @@
|
||||
|
||||
SETS(setIndex++, p->sp_namp);
|
||||
SETS(setIndex++, p->sp_pwdp);
|
||||
+#ifndef __HAIKU__
|
||||
SETI(setIndex++, p->sp_lstchg);
|
||||
+#endif
|
||||
SETI(setIndex++, p->sp_min);
|
||||
SETI(setIndex++, p->sp_max);
|
||||
SETI(setIndex++, p->sp_warn);
|
||||
diff -urN Python-2.6.8/Modules/timemodule.c Python-2.6.8-haiku/Modules/timemodule.c
|
||||
--- Python-2.6.8/Modules/timemodule.c 2010-05-09 15:15:40.015204352 +0000
|
||||
+++ Python-2.6.8-haiku/Modules/timemodule.c 2010-08-30 04:52:24.721944576 +0000
|
||||
@@ -972,11 +972,11 @@
|
||||
return -1;
|
||||
}
|
||||
Py_END_ALLOW_THREADS
|
||||
-#elif defined(__BEOS__)
|
||||
+#elif defined(__BEOS__) || defined(__HAIKU__)
|
||||
/* This sleep *CAN BE* interrupted. */
|
||||
{
|
||||
if( secs <= 0.0 ) {
|
||||
- return;
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
diff -urN Python-2.6.8/Parser/asdl_c.py Python-2.6.8-haiku/Parser/asdl_c.py
|
||||
--- Python-2.6.8/Parser/asdl_c.py 2009-12-13 00:59:01.059768832 +0000
|
||||
+++ Python-2.6.8-haiku/Parser/asdl_c.py 2010-08-30 04:52:27.169607168 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/env python
|
||||
+#! /bin/env python
|
||||
"""Generate C code from an ASDL description."""
|
||||
|
||||
# TO DO
|
||||
diff -urN Python-2.6.8/Python/bltinmodule.c Python-2.6.8-haiku/Python/bltinmodule.c
|
||||
--- Python-2.6.8/Python/bltinmodule.c 2010-05-09 15:15:40.065011712 +0000
|
||||
+++ Python-2.6.8-haiku/Python/bltinmodule.c 2010-08-30 04:52:27.186646528 +0000
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
|
||||
const char *Py_FileSystemDefaultEncoding = "mbcs";
|
||||
-#elif defined(__APPLE__)
|
||||
+#elif defined(__APPLE__) || defined(__HAIKU__)
|
||||
const char *Py_FileSystemDefaultEncoding = "utf-8";
|
||||
#else
|
||||
const char *Py_FileSystemDefaultEncoding = NULL; /* use default */
|
||||
diff -urN Python-2.6.8/Tools/scripts/h2py.py Python-2.6.8-haiku/Tools/scripts/h2py.py
|
||||
--- Python-2.6.8/Tools/scripts/h2py.py 2004-08-09 17:27:55.066584576 +0000
|
||||
+++ Python-2.6.8-haiku/Tools/scripts/h2py.py 2010-08-30 04:52:27.188219392 +0000
|
||||
@@ -1,4 +1,4 @@
|
||||
-#! /usr/bin/env python
|
||||
+#! /bin/env python
|
||||
|
||||
# Read #define's and translate to Python code.
|
||||
# Handle #include statements.
|
||||
@@ -50,7 +50,7 @@
|
||||
searchdirs=os.environ['INCLUDE'].split(';')
|
||||
except KeyError:
|
||||
try:
|
||||
- if sys.platform.find("beos") == 0:
|
||||
+ if sys.platform.find("beos") == 0 or sys.platform.find("haiku1") == 0:
|
||||
searchdirs=os.environ['BEINCLUDES'].split(';')
|
||||
elif sys.platform.startswith("atheos"):
|
||||
searchdirs=os.environ['C_INCLUDE_PATH'].split(':')
|
||||
diff -urN Python-2.6.8/configure.in Python-2.6.8-haiku/configure.in
|
||||
--- Python-2.6.8/configure.in 2010-05-25 02:27:03.064225280 +0000
|
||||
+++ Python-2.6.8-haiku/configure.in 2010-08-30 04:52:27.207880192 +0000
|
||||
@@ -745,7 +745,7 @@
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
||||
INSTSONAME="$LDLIBRARY".$SOVERSION
|
||||
;;
|
||||
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
|
||||
+ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|Haiku*)
|
||||
LDLIBRARY='libpython$(VERSION).so'
|
||||
BLDLIBRARY='-L. -lpython$(VERSION)'
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
||||
@@ -823,7 +823,7 @@
|
||||
AC_SUBST(LN)
|
||||
if test -z "$LN" ; then
|
||||
case $ac_sys_system in
|
||||
- BeOS*) LN="ln -s";;
|
||||
+ BeOS*|Haiku*) LN="ln -s";;
|
||||
CYGWIN*) LN="ln -s";;
|
||||
atheos*) LN="ln -s";;
|
||||
*) LN=ln;;
|
||||
@@ -1829,7 +1829,7 @@
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
- Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
|
||||
+ Linux*|GNU*|QNX*|Haiku*) LDSHARED='$(CC) -shared';;
|
||||
BSD/OS*/4*) LDSHARED="gcc -shared";;
|
||||
FreeBSD*)
|
||||
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
|
||||
@@ -1883,7 +1883,7 @@
|
||||
then CCSHARED="-fPIC";
|
||||
else CCSHARED="+z";
|
||||
fi;;
|
||||
- Linux*|GNU*) CCSHARED="-fPIC";;
|
||||
+ Linux*|GNU*|Haiku*) CCSHARED="-fPIC";;
|
||||
BSD/OS*/4*) CCSHARED="-fpic";;
|
||||
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
|
||||
OpenUNIX*|UnixWare*)
|
||||
@@ -1916,7 +1916,7 @@
|
||||
LINKFORSHARED="-Wl,-E -Wl,+s";;
|
||||
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
|
||||
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
- Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
+ Linux*|GNU*|Haiku*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
# -u libsys_s pulls in all symbols in libsys
|
||||
Darwin/*)
|
||||
# -u _PyMac_Error is needed to pull in the mac toolbox glue,
|
||||
@@ -2035,6 +2035,9 @@
|
||||
BeOS*)
|
||||
AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS
|
||||
;;
|
||||
+Haiku*)
|
||||
+AC_CHECK_LIB(network, socket, [LIBS="-lnetwork $LIBS"], [], $LIBS) # Haiku
|
||||
+;;
|
||||
esac
|
||||
|
||||
AC_MSG_CHECKING(for --with-libs)
|
||||
@@ -3265,7 +3268,7 @@
|
||||
AC_SUBST(LIBM)
|
||||
case $ac_sys_system in
|
||||
Darwin) ;;
|
||||
-BeOS) ;;
|
||||
+BeOS|Haiku) ;;
|
||||
*) LIBM=-lm
|
||||
esac
|
||||
AC_MSG_CHECKING(for --with-libm=STRING)
|
||||
diff -urN Python-2.6.8/setup.py Python-2.6.8-haiku/setup.py
|
||||
--- Python-2.6.8/setup.py 2010-07-17 12:31:09.057147392 +0000
|
||||
+++ Python-2.6.8-haiku/setup.py 2010-08-30 04:52:27.220463104 +0000
|
||||
@@ -428,6 +428,10 @@
|
||||
inc_dirs += ['/system/include', '/atheos/autolnk/include']
|
||||
inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
|
||||
|
||||
+ if platform == 'haiku1':
|
||||
+ inc_dirs += ['/boot/develop/headers/posix', '/boot/develop/headers/3rdparty', '/boot/common/include']
|
||||
+ lib_dirs += ['/boot/system/lib', '/boot/develop/lib/x86', '/boot/common/lib']
|
||||
+
|
||||
# OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
|
||||
if platform in ['osf1', 'unixware7', 'openunix8']:
|
||||
lib_dirs += ['/usr/ccs/lib']
|
||||
@@ -451,7 +455,7 @@
|
||||
|
||||
# Check for MacOS X, which doesn't need libm.a at all
|
||||
math_libs = ['m']
|
||||
- if platform in ['darwin', 'beos', 'mac']:
|
||||
+ if platform in ['darwin', 'beos', 'haiku1', 'mac']:
|
||||
math_libs = []
|
||||
|
||||
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
||||
@@ -1176,7 +1180,7 @@
|
||||
missing.append('resource')
|
||||
|
||||
# Sun yellow pages. Some systems have the functions in libc.
|
||||
- if (platform not in ['cygwin', 'atheos', 'qnx6'] and
|
||||
+ if (platform not in ['cygwin', 'atheos', 'qnx6', 'haiku1'] and
|
||||
find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None):
|
||||
if (self.compiler.find_library_file(lib_dirs, 'nsl')):
|
||||
libs = ['nsl']
|
||||
--- Python-2.6.8/Lib/test/test_fileio.py 2012-07-26 23:04:42.208666624 +0000
|
||||
+++ Python-2.6.8-haiku/Lib/test/test_fileio.py 2012-07-26 23:05:09.382730240 +0000
|
||||
@@ -152,6 +152,7 @@
|
||||
self.assertEquals(f.writable(), True)
|
||||
if sys.platform != "darwin" and \
|
||||
'bsd' not in sys.platform and \
|
||||
+ 'haiku' not in sys.platform and \
|
||||
not sys.platform.startswith('sunos'):
|
||||
# Somehow /dev/tty appears seekable on some BSDs
|
||||
self.assertEquals(f.seekable(), False)
|
||||
187
dev-lang/python/patches/python-3.2.patch
Normal file
187
dev-lang/python/patches/python-3.2.patch
Normal file
@@ -0,0 +1,187 @@
|
||||
diff -urN Python-3.2/Lib/plat-haiku/regen Python-3.2-haiku/Lib/plat-haiku/regen
|
||||
--- Python-3.2/Lib/plat-haiku/regen 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ Python-3.2-haiku/Lib/plat-haiku/regen 2010-11-22 11:11:57.509870080 +0000
|
||||
@@ -0,0 +1,3 @@
|
||||
+#! /bin/sh
|
||||
+set -v
|
||||
+python$EXE ../../Tools/scripts/h2py.py -i '(u_long)' /boot/develop/headers/posix/netinet/in.h
|
||||
diff -urN Python-3.2/Modules/resource.c Python-3.2-haiku/Modules/resource.c
|
||||
--- Python-3.2/Modules/resource.c 2010-05-09 15:52:27.011796480 +0000
|
||||
+++ Python-3.2-haiku/Modules/resource.c 2010-11-22 11:11:57.581173248 +0000
|
||||
@@ -86,6 +86,7 @@
|
||||
PyFloat_FromDouble(doubletime(ru.ru_utime)));
|
||||
PyStructSequence_SET_ITEM(result, 1,
|
||||
PyFloat_FromDouble(doubletime(ru.ru_stime)));
|
||||
+#ifndef __HAIKU__
|
||||
PyStructSequence_SET_ITEM(result, 2, PyLong_FromLong(ru.ru_maxrss));
|
||||
PyStructSequence_SET_ITEM(result, 3, PyLong_FromLong(ru.ru_ixrss));
|
||||
PyStructSequence_SET_ITEM(result, 4, PyLong_FromLong(ru.ru_idrss));
|
||||
@@ -100,7 +101,7 @@
|
||||
PyStructSequence_SET_ITEM(result, 13, PyLong_FromLong(ru.ru_nsignals));
|
||||
PyStructSequence_SET_ITEM(result, 14, PyLong_FromLong(ru.ru_nvcsw));
|
||||
PyStructSequence_SET_ITEM(result, 15, PyLong_FromLong(ru.ru_nivcsw));
|
||||
-
|
||||
+#endif
|
||||
if (PyErr_Occurred()) {
|
||||
Py_DECREF(result);
|
||||
return NULL;
|
||||
diff -urN Python-3.2/Modules/socketmodule.c Python-3.2-haiku/Modules/socketmodule.c
|
||||
--- Python-3.2/Modules/socketmodule.c 2010-11-05 17:24:13.021233664 +0000
|
||||
+++ Python-3.2-haiku/Modules/socketmodule.c 2010-11-22 11:11:57.722468864 +0000
|
||||
@@ -4684,7 +4684,9 @@
|
||||
PyModule_AddIntConstant(m, "SOCK_DGRAM", SOCK_DGRAM);
|
||||
/* We have incomplete socket support. */
|
||||
PyModule_AddIntConstant(m, "SOCK_RAW", SOCK_RAW);
|
||||
+#ifndef __HAIKU__
|
||||
PyModule_AddIntConstant(m, "SOCK_SEQPACKET", SOCK_SEQPACKET);
|
||||
+#endif
|
||||
#if defined(SOCK_RDM)
|
||||
PyModule_AddIntConstant(m, "SOCK_RDM", SOCK_RDM);
|
||||
#endif
|
||||
diff -urN Python-3.2/Modules/socketmodule.h Python-3.2-haiku/Modules/socketmodule.h
|
||||
--- Python-3.2/Modules/socketmodule.h 2010-08-28 20:42:55.019398656 +0000
|
||||
+++ Python-3.2-haiku/Modules/socketmodule.h 2010-11-22 11:11:57.790626304 +0000
|
||||
@@ -47,6 +47,10 @@
|
||||
# undef AF_NETLINK
|
||||
#endif
|
||||
|
||||
+#if defined (__HAIKU__)
|
||||
+# undef HAVE_BLUETOOTH_BLUETOOTH_H
|
||||
+#endif
|
||||
+
|
||||
#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/rfcomm.h>
|
||||
diff -urN Python-3.2/Modules/spwdmodule.c Python-3.2-haiku/Modules/spwdmodule.c
|
||||
--- Python-3.2/Modules/spwdmodule.c 2010-05-15 16:27:27.011534336 +0000
|
||||
+++ Python-3.2-haiku/Modules/spwdmodule.c 2010-11-22 11:11:57.802422784 +0000
|
||||
@@ -80,7 +80,9 @@
|
||||
|
||||
SETS(setIndex++, p->sp_namp);
|
||||
SETS(setIndex++, p->sp_pwdp);
|
||||
+#ifndef __HAIKU__
|
||||
SETI(setIndex++, p->sp_lstchg);
|
||||
+#endif
|
||||
SETI(setIndex++, p->sp_min);
|
||||
SETI(setIndex++, p->sp_max);
|
||||
SETI(setIndex++, p->sp_warn);
|
||||
diff -urN Python-3.2/Python/bltinmodule.c Python-3.2-haiku/Python/bltinmodule.c
|
||||
--- Python-3.2/Python/bltinmodule.c 2010-10-17 20:54:53.028049408 +0000
|
||||
+++ Python-3.2-haiku/Python/bltinmodule.c 2010-11-22 11:11:57.832831488 +0000
|
||||
@@ -22,7 +22,7 @@
|
||||
#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T)
|
||||
const char *Py_FileSystemDefaultEncoding = "mbcs";
|
||||
int Py_HasFileSystemDefaultEncoding = 1;
|
||||
-#elif defined(__APPLE__)
|
||||
+#elif defined(__APPLE__) || defined(__HAIKU__)
|
||||
const char *Py_FileSystemDefaultEncoding = "utf-8";
|
||||
int Py_HasFileSystemDefaultEncoding = 1;
|
||||
#elif defined(HAVE_LANGINFO_H) && defined(CODESET)
|
||||
diff -urN Python-3.2/configure.in Python-3.2-haiku/configure.in
|
||||
--- Python-3.2/configure.in 2010-11-01 01:44:30.004980736 +0000
|
||||
+++ Python-3.2-haiku/configure.in 2010-11-22 11:14:04.316407808 +0000
|
||||
@@ -292,6 +292,7 @@
|
||||
case $MACHDEP in
|
||||
cygwin*) MACHDEP="cygwin";;
|
||||
darwin*) MACHDEP="darwin";;
|
||||
+ haiku*) MACHDEP="haiku";;
|
||||
irix646) MACHDEP="irix6";;
|
||||
'') MACHDEP="unknown";;
|
||||
esac
|
||||
@@ -738,7 +739,7 @@
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
||||
INSTSONAME="$LDLIBRARY".$SOVERSION
|
||||
;;
|
||||
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*)
|
||||
+ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|Haiku*)
|
||||
LDLIBRARY='libpython$(LDVERSION).so'
|
||||
BLDLIBRARY='-L. -lpython$(LDVERSION)'
|
||||
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
|
||||
@@ -823,6 +824,7 @@
|
||||
if test -z "$LN" ; then
|
||||
case $ac_sys_system in
|
||||
CYGWIN*) LN="ln -s";;
|
||||
+ Haiku*) LN="ln -s";;
|
||||
*) LN=ln;;
|
||||
esac
|
||||
fi
|
||||
@@ -1709,7 +1711,7 @@
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
- Linux*|GNU*|QNX*)
|
||||
+ Linux*|GNU*|QNX*|Haiku*)
|
||||
LDSHARED='$(CC) -shared'
|
||||
LDCXXSHARED='$(CXX) -shared';;
|
||||
BSD/OS*/4*)
|
||||
@@ -1778,7 +1780,7 @@
|
||||
then CCSHARED="-fPIC";
|
||||
else CCSHARED="+z";
|
||||
fi;;
|
||||
- Linux*|GNU*) CCSHARED="-fPIC";;
|
||||
+ Linux*|GNU*|Haiku*) CCSHARED="-fPIC";;
|
||||
BSD/OS*/4*) CCSHARED="-fpic";;
|
||||
FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
|
||||
OpenUNIX*|UnixWare*)
|
||||
@@ -1809,7 +1811,7 @@
|
||||
LINKFORSHARED="-Wl,-E -Wl,+s";;
|
||||
# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
|
||||
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
- Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
+ Linux*|GNU*|Haiku*) LINKFORSHARED="-Xlinker -export-dynamic";;
|
||||
# -u libsys_s pulls in all symbols in libsys
|
||||
Darwin/*)
|
||||
LINKFORSHARED="$extra_undefs -framework CoreFoundation"
|
||||
@@ -1920,6 +1922,8 @@
|
||||
AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4
|
||||
AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
|
||||
|
||||
+AC_CHECK_LIB(network, socket, [LIBS="-lnetwork $LIBS"], [], $LIBS) # For Haiku
|
||||
+
|
||||
AC_MSG_CHECKING(for --with-libs)
|
||||
AC_ARG_WITH(libs,
|
||||
AS_HELP_STRING([--with-libs='lib1 ...'], [link against additional libs]),
|
||||
@@ -3192,7 +3196,7 @@
|
||||
# check for --with-libm=...
|
||||
AC_SUBST(LIBM)
|
||||
case $ac_sys_system in
|
||||
-Darwin) ;;
|
||||
+Darwin|Haiku*) ;;
|
||||
*) LIBM=-lm
|
||||
esac
|
||||
AC_MSG_CHECKING(for --with-libm=STRING)
|
||||
diff -urN Python-3.2/setup.py Python-3.2-haiku/setup.py
|
||||
--- Python-3.2/setup.py 2010-10-31 17:11:02.000000000 +0000
|
||||
+++ Python-3.2-haiku/setup.py 2010-11-22 11:11:58.034603008 +0000
|
||||
@@ -429,6 +429,10 @@
|
||||
platform = self.get_platform()
|
||||
srcdir = sysconfig.get_config_var('srcdir')
|
||||
|
||||
+ if platform == 'haiku1':
|
||||
+ inc_dirs += ['/boot/develop/headers/posix', '/boot/develop/headers/3rdparty', '/boot/common/include']
|
||||
+ lib_dirs += ['/boot/system/lib', '/boot/develop/lib/x86', '/boot/common/lib']
|
||||
+
|
||||
# OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
|
||||
if platform in ['osf1', 'unixware7', 'openunix8']:
|
||||
lib_dirs += ['/usr/ccs/lib']
|
||||
@@ -450,9 +454,9 @@
|
||||
if item.startswith('-L'):
|
||||
lib_dirs.append(item[2:])
|
||||
|
||||
- # Check for MacOS X, which doesn't need libm.a at all
|
||||
+ # Check for MacOS X or Haiku, which don't need libm.a at all
|
||||
math_libs = ['m']
|
||||
- if platform == 'darwin':
|
||||
+ if platform == 'darwin' or platform == 'haiku':
|
||||
math_libs = []
|
||||
|
||||
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
||||
@@ -1110,7 +1114,7 @@
|
||||
exts.append( Extension('resource', ['resource.c']) )
|
||||
|
||||
# Sun yellow pages. Some systems have the functions in libc.
|
||||
- if (platform not in ['cygwin', 'qnx6'] and
|
||||
+ if (platform not in ['cygwin', 'qnx6', 'haiku'] and
|
||||
find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None):
|
||||
if (self.compiler.find_library_file(lib_dirs, 'nsl')):
|
||||
libs = ['nsl']
|
||||
@@ -16,7 +16,7 @@ BUILD {
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=/boot/common --enable-shared LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-shared LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ BUILD {
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=/boot/common --enable-shared CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-shared CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ BUILD {
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=/boot/common --enable-shared LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-shared LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,10 @@ BUILD {
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=/boot/common --enable-shared LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--enable-shared LDFLAGS=-L/boot/common/lib \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
DESCRIPTION="python - An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org"
|
||||
SRC_URI="http://www.python.org/ftp/python/3.2/Python-3.2a3.tar.bz2"
|
||||
CHECKSUM_MD5="2c7f690e6de62691a0427328a9654290"
|
||||
SRC_URI="http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tar.bz2"
|
||||
CHECKSUM_MD5="d40ef58ed88438a870bbeb0ac5d4217b"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="sys-libs/readline >= 6.0"
|
||||
BUILD {
|
||||
cd Python-3.2a3/Modules/_ctypes/libffi
|
||||
cd Python-2.6.7/Modules/_ctypes/libffi
|
||||
libtoolize --force --copy --install
|
||||
cd ../../..
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
@@ -14,19 +14,19 @@ BUILD {
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--enable-shared \
|
||||
LDFLAGS=-L/boot/common/lib \
|
||||
--enable-shared LDFLAGS=-L/boot/common/lib \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd Python-3.2a3
|
||||
cd Python-2.6.7
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd Python-3.2a3
|
||||
cd Python-2.6.7
|
||||
cd Lib/test
|
||||
rm test_asynchat.py # this one stalls, so skip it for now
|
||||
rm test_multiprocessing.py # this one stalls, so skip it for now
|
||||
@@ -35,4 +35,4 @@ TEST {
|
||||
}
|
||||
|
||||
LICENSE="Python"
|
||||
COPYRIGHT="1990-2010, Python Software Foundation"
|
||||
COPYRIGHT="1990-2011, Python Software Foundation"
|
||||
@@ -1,12 +1,12 @@
|
||||
DESCRIPTION="python - An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org"
|
||||
SRC_URI="http://www.python.org/ftp/python/3.2/Python-3.2a4.tar.bz2"
|
||||
CHECKSUM_MD5="1f94db4c5e56454e3eec26eafae43e6e"
|
||||
SRC_URI="http://www.python.org/ftp/python/2.6.8/Python-2.6.8.tar.bz2"
|
||||
CHECKSUM_MD5="c6e0420a21d8b23dee8b0195c9b9a125"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="sys-libs/readline >= 6.0"
|
||||
BUILD {
|
||||
cd Python-3.2a4/Modules/_ctypes/libffi
|
||||
cd Python-2.6.8/Modules/_ctypes/libffi
|
||||
libtoolize --force --copy --install
|
||||
cd ../../..
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
@@ -14,19 +14,19 @@ BUILD {
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--enable-shared \
|
||||
LDFLAGS=-L/boot/common/lib \
|
||||
--enable-shared LDFLAGS=-L/boot/common/lib \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd Python-3.2a4
|
||||
cd Python-2.6.8
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd Python-3.2a4
|
||||
cd Python-2.6.8
|
||||
cd Lib/test
|
||||
rm test_asynchat.py # this one stalls, so skip it for now
|
||||
rm test_multiprocessing.py # this one stalls, so skip it for now
|
||||
@@ -35,4 +35,4 @@ TEST {
|
||||
}
|
||||
|
||||
LICENSE="Python"
|
||||
COPYRIGHT="1990-2010, Python Software Foundation"
|
||||
COPYRIGHT="1990-2012, Python Software Foundation"
|
||||
@@ -1,25 +0,0 @@
|
||||
DESCRIPTION="python - An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org"
|
||||
SRC_URI="http://www.python.org/ftp/python/2.7/Python-2.7a1.tgz"
|
||||
CHECKSUM_MD5="1dead8228f03928b69c123ef32ab36c0"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd Python-2.7a1/Modules/_ctypes/libffi
|
||||
libtoolize --force --copy --install
|
||||
cd ../../..
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./configure --prefix=/boot/common --enable-shared CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd Python-2.7a1
|
||||
make install
|
||||
}
|
||||
LICENSE="Python"
|
||||
COPYRIGHT="1990-2010, Python Software Foundation"
|
||||
@@ -1,12 +1,12 @@
|
||||
DESCRIPTION="python - An interpreted, interactive, object-oriented programming language"
|
||||
HOMEPAGE="http://www.python.org"
|
||||
SRC_URI="http://www.python.org/ftp/python/3.2/Python-3.2b2.tar.bz2"
|
||||
CHECKSUM_MD5="45ab5ff5edfb73ec277b1c763f3d5a42"
|
||||
SRC_URI="http://www.python.org/ftp/python/3.2/Python-3.2.tar.bz2"
|
||||
CHECKSUM_MD5="92e94b5b6652b96349d6362b8337811d"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="sys-libs/readline >= 6.0"
|
||||
BUILD {
|
||||
cd Python-3.2b2/Modules/_ctypes/libffi
|
||||
cd Python-3.2/Modules/_ctypes/libffi
|
||||
libtoolize --force --copy --install
|
||||
cd ../../..
|
||||
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.in
|
||||
@@ -15,18 +15,19 @@ BUILD {
|
||||
autoconf
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--enable-shared \
|
||||
LDFLAGS=-L/boot/common/lib \
|
||||
CFLAGS=-I/boot/develop/headers/3rdparty
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY/man` \
|
||||
CFLAGS=-I`finddir B_COMMON_DIRECTORY`/include
|
||||
ln -sf `pwd`/libpython3.2m.so.1.0 /boot/common/lib/libpython3.2m.so.1.0
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd Python-3.2b2
|
||||
cd Python-3.2
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd Python-3.2b2
|
||||
cd Python-3.2
|
||||
cd Lib/test
|
||||
rm test_asynchat.py # this one stalls, so skip it for now
|
||||
rm test_multiprocessing.py # this one stalls, so skip it for now
|
||||
@@ -35,4 +36,4 @@ TEST {
|
||||
}
|
||||
|
||||
LICENSE="Python"
|
||||
COPYRIGHT="1990-2010, Python Software Foundation"
|
||||
COPYRIGHT="1990-2011, Python Software Foundation"
|
||||
33
dev-lang/rebol/rebol-2.101.0.5.75.bep
Normal file
33
dev-lang/rebol/rebol-2.101.0.5.75.bep
Normal file
@@ -0,0 +1,33 @@
|
||||
DESCRIPTION="Language with lightweight domain-specific sublanguages and micro-formats"
|
||||
HOMEPAGE="http://www.rebol.com/"
|
||||
SRC_URI="https://github.com/rebol/r3/archive/master.zip"
|
||||
CHECKSUM_MD5="b6dc765aa910ad7d7e4af649d5e35431"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
|
||||
BUILD {
|
||||
cd r3-master/make
|
||||
wget http://metaeducation.com/media/shared/haiku/r3-make.zip
|
||||
unzip r3-make.zip
|
||||
make make OS_ID=0.5.75
|
||||
make prep
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd r3-master/make
|
||||
mkdir -p $DESTDIR`finddir B_COMMON_BIN_DIRECTORY`
|
||||
install -m 0755 r3 $DESTDIR`finddir B_COMMON_BIN_DIRECTORY`/rebol
|
||||
}
|
||||
|
||||
TEST {
|
||||
mkdir -p tests
|
||||
cd tests
|
||||
wget -N https://github.com/rebolsource/rebol-test/archive/master.zip
|
||||
unzip -o master
|
||||
../r3-master/make/r3 rebol-test-master/run-safe.r
|
||||
}
|
||||
|
||||
LICENSE="Apache v2"
|
||||
COPYRIGHT="2013 REBOL Technologies"
|
||||
@@ -4,11 +4,13 @@ SRC_URI="ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.tar.gz"
|
||||
CHECKSUM_MD5="515bfd965814e718c0943abf3dde5494"
|
||||
REVISION="2"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-lang/ruby >= 1.8.7"
|
||||
DEPEND="dev-libs/libedit >= 20100424"
|
||||
BUILD {
|
||||
cd ruby-1.9.1-p243
|
||||
autoconf
|
||||
./configure --prefix=/boot/common
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY`/ruby
|
||||
make
|
||||
}
|
||||
|
||||
@@ -16,6 +18,7 @@ INSTALL {
|
||||
cd ruby-1.9.1-p243
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="Ruby
|
||||
GNU GPL v2
|
||||
GNU LGPL v2.1
|
||||
|
||||
5
dev-lang/swi-prolog/licenses/SWI-Prolog
Normal file
5
dev-lang/swi-prolog/licenses/SWI-Prolog
Normal file
@@ -0,0 +1,5 @@
|
||||
The SWI-Prolog Prolog libraries
|
||||
|
||||
Lacking a satisfactory technical solution to handle article 6 of the LGPL, this license cannot be used for the Prolog source code that is part of the SWI-Prolog system (both libraries and kernel code). This situation is comparable to libgcc, the runtime library used with the GNU C-compiler. Therefore, we use the same proven license terms as this library. The libgcc license is the GPL, accompanied with a special exception. Below we rephrased this exception adjusted to our needs:
|
||||
|
||||
As a special exception, if you link this library with other files, compiled with a Free Software compiler, to produce an executable, this library does not by itself cause the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License.
|
||||
68
dev-lang/swi-prolog/patches/swi-prolog-6.0.2.patch
Normal file
68
dev-lang/swi-prolog/patches/swi-prolog-6.0.2.patch
Normal file
@@ -0,0 +1,68 @@
|
||||
diff -Naur pl-6.0.2/src/configure.in pl-6.0.2-haiku/src/configure.in
|
||||
--- pl-6.0.2/src/configure.in 2012-03-04 13:12:01.001835008 +0000
|
||||
+++ pl-6.0.2-haiku/src/configure.in 2012-08-20 21:39:21.649330688 +0100
|
||||
@@ -689,6 +689,10 @@
|
||||
AC_DEFINE(_THREAD_SAFE, 1,
|
||||
[Required in FreeBSD for compiling thread-safe code])
|
||||
;;
|
||||
+ *haiku*)
|
||||
+ pthread_ok=true
|
||||
+ CFLAGS="$CFLAGS -lroot"
|
||||
+ ;;
|
||||
*-win32|*-win64)
|
||||
pthread_ok=true
|
||||
AC_CHECK_LIB(pthreadGC2, pthread_create)
|
||||
diff -Naur pl-6.0.2/src/os/pl-files.c pl-6.0.2-haiku/src/os/pl-files.c
|
||||
--- pl-6.0.2/src/os/pl-files.c 2012-03-04 13:12:01.011272192 +0000
|
||||
+++ pl-6.0.2-haiku/src/os/pl-files.c 2012-08-23 14:45:48.981204992 +0100
|
||||
@@ -239,7 +239,7 @@
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
-#ifdef __unix__ /* doesn't work on most not Unix's */
|
||||
+#if defined(__unix__) || defined(__HAIKU__) /* doesn't work on most not Unix's */
|
||||
{ statstruct buf1;
|
||||
statstruct buf2;
|
||||
char tmp[MAXPATHLEN];
|
||||
diff -Naur pl-6.0.2/src/os/pl-os.c pl-6.0.2-haiku/src/os/pl-os.c
|
||||
--- pl-6.0.2/src/os/pl-os.c 2012-03-04 13:12:01.011796480 +0000
|
||||
+++ pl-6.0.2-haiku/src/os/pl-os.c 2012-08-23 16:02:11.794034176 +0100
|
||||
@@ -590,7 +590,7 @@
|
||||
}
|
||||
|
||||
retry:
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
{ static int MTOK_temp_counter = 0;
|
||||
const char *sep = id[0] ? "_" : "";
|
||||
|
||||
@@ -732,7 +732,7 @@
|
||||
}
|
||||
#endif /* O_HPFS */
|
||||
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
char *
|
||||
PrologPath(const char *p, char *buf, size_t len)
|
||||
{ strncpy(buf, p, len);
|
||||
@@ -2436,7 +2436,7 @@
|
||||
return strcpy(buffer, file ? file : buf);
|
||||
}
|
||||
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
static char *
|
||||
okToExec(const char *s)
|
||||
{ statstruct stbuff;
|
||||
diff -Naur pl-6.0.2/src/pl-term.c pl-6.0.2-haiku/src/pl-term.c
|
||||
--- pl-6.0.2/src/pl-term.c 2012-03-04 13:12:01.023592960 +0000
|
||||
+++ pl-6.0.2-haiku/src/pl-term.c 2012-08-08 20:03:23.111673344 +0100
|
||||
@@ -296,7 +296,7 @@
|
||||
term_t r = A1;
|
||||
term_t c = A2;
|
||||
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
int iorval;
|
||||
|
||||
#ifdef TIOCGSIZE
|
||||
67
dev-lang/swi-prolog/patches/swi-prolog-6.2.0.patch
Normal file
67
dev-lang/swi-prolog/patches/swi-prolog-6.2.0.patch
Normal file
@@ -0,0 +1,67 @@
|
||||
diff -Naur pl-6.2.0/src/configure.in pl-6.2.0-haiku/src/configure.in
|
||||
--- pl-6.2.0/src/configure.in 2012-08-21 13:12:53.016777216 +0100
|
||||
+++ pl-6.2.0-haiku/src/configure.in 2012-08-23 17:06:25.987758592 +0100
|
||||
@@ -728,6 +728,9 @@
|
||||
AC_DEFINE(_THREAD_SAFE, 1,
|
||||
[Required in FreeBSD for compiling thread-safe code])
|
||||
;;
|
||||
+ *-haiku*)
|
||||
+ pthread_ok=true
|
||||
+ ;;
|
||||
*-win32|*-win64)
|
||||
pthread_ok=true
|
||||
AC_CHECK_LIB(pthreadGC2, pthread_create)
|
||||
diff -Naur pl-6.2.0/src/os/pl-files.c pl-6.2.0-haiku/src/os/pl-files.c
|
||||
--- pl-6.2.0/src/os/pl-files.c 2012-08-21 13:12:53.026214400 +0100
|
||||
+++ pl-6.2.0-haiku/src/os/pl-files.c 2012-08-23 17:07:04.695992320 +0100
|
||||
@@ -302,7 +302,7 @@
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
-#ifdef __unix__ /* doesn't work on most not Unix's */
|
||||
+#if defined(__unix__) || defined(__HAIKU__) /* doesn't work on most not Unix's */
|
||||
{ statstruct buf1;
|
||||
statstruct buf2;
|
||||
char tmp[MAXPATHLEN];
|
||||
diff -Naur pl-6.2.0/src/os/pl-os.c pl-6.2.0-haiku/src/os/pl-os.c
|
||||
--- pl-6.2.0/src/os/pl-os.c 2012-08-21 13:12:53.027000832 +0100
|
||||
+++ pl-6.2.0-haiku/src/os/pl-os.c 2012-08-23 17:09:14.962330624 +0100
|
||||
@@ -601,7 +601,7 @@
|
||||
}
|
||||
|
||||
retry:
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
{ static int MTOK_temp_counter = 0;
|
||||
const char *sep = id[0] ? "_" : "";
|
||||
|
||||
@@ -743,7 +743,7 @@
|
||||
}
|
||||
#endif /* O_HPFS */
|
||||
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
char *
|
||||
PrologPath(const char *p, char *buf, size_t len)
|
||||
{ strncpy(buf, p, len);
|
||||
@@ -2507,7 +2507,7 @@
|
||||
return strcpy(buffer, file ? file : buf);
|
||||
}
|
||||
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
static char *
|
||||
okToExec(const char *s)
|
||||
{ statstruct stbuff;
|
||||
diff -Naur pl-6.2.0/src/pl-term.c pl-6.2.0-haiku/src/pl-term.c
|
||||
--- pl-6.2.0/src/pl-term.c 2012-08-21 13:12:53.038535168 +0100
|
||||
+++ pl-6.2.0-haiku/src/pl-term.c 2012-08-23 17:09:57.306708480 +0100
|
||||
@@ -296,7 +296,7 @@
|
||||
term_t r = A1;
|
||||
term_t c = A2;
|
||||
|
||||
-#ifdef __unix__
|
||||
+#if defined(__unix__) || defined(__HAIKU__)
|
||||
int iorval;
|
||||
|
||||
#ifdef TIOCGSIZE
|
||||
29
dev-lang/swi-prolog/swi-prolog-6.0.2.bep
Normal file
29
dev-lang/swi-prolog/swi-prolog-6.0.2.bep
Normal file
@@ -0,0 +1,29 @@
|
||||
DESCRIPTION="SWI Prolog. Stable and free standard Prolog implementation"
|
||||
HOMEPAGE="http://www.swi-prolog.org/"
|
||||
SRC_URI="http://www.swi-prolog.org/download/stable/src/pl-6.0.2.tar.gz"
|
||||
CHECKSUM_MD5="dcde1c50713317d0f5093dd2dedc1bd0"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-libs/gmp >= 5.0.5
|
||||
sys-libs/readline >= 6.2"
|
||||
BUILD {
|
||||
cd pl-6.0.2/src
|
||||
libtoolize -fci
|
||||
autoreconf
|
||||
LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/common/include ./configure --prefix=$(finddir B_COMMON_DIRECTORY)
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd pl-6.0.2/src
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd pl-6.0.2/src
|
||||
make check
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1
|
||||
SWI-Prolog"
|
||||
COPYRIGHT="1985-2010, University of Amsterdam, VU University Amsterdam"
|
||||
29
dev-lang/swi-prolog/swi-prolog-6.2.0.bep
Normal file
29
dev-lang/swi-prolog/swi-prolog-6.2.0.bep
Normal file
@@ -0,0 +1,29 @@
|
||||
DESCRIPTION="SWI Prolog. Stable and free standard Prolog implementation"
|
||||
HOMEPAGE="http://www.swi-prolog.org/"
|
||||
SRC_URI="http://www.swi-prolog.org/download/stable/src/pl-6.2.0.tar.gz"
|
||||
CHECKSUM_MD5="969ed2e00b7afc1537fbf19d667333c5"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="dev-libs/gmp >= 5.0.5
|
||||
sys-libs/readline >= 6.2"
|
||||
BUILD {
|
||||
cd pl-6.2.0/src
|
||||
libtoolize -fci
|
||||
autoreconf
|
||||
LDFLAGS=-L/boot/common/lib CFLAGS=-I/boot/common/include ./configure --prefix=$(finddir B_COMMON_DIRECTORY)
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd pl-6.2.0/src
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd pl-6.2.0/src
|
||||
make check
|
||||
}
|
||||
|
||||
LICENSE="GNU LGPL v2.1
|
||||
SWI-Prolog"
|
||||
COPYRIGHT="1985-2012, University of Amsterdam, VU University Amsterdam"
|
||||
@@ -8,7 +8,7 @@ DEPEND=""
|
||||
BUILD {
|
||||
cd swig-1.3.40
|
||||
libtoolize -fci
|
||||
./configure --prefix=/boot/common
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
23
dev-lang/swig/swig-2.0.2.bep
Normal file
23
dev-lang/swig/swig-2.0.2.bep
Normal file
@@ -0,0 +1,23 @@
|
||||
DESCRIPTION="Simplified Wrapper and Interface Generator"
|
||||
HOMEPAGE="http://www.swig.org/"
|
||||
SRC_URI="http://sourceforge.net/projects/swig/files/swig/swig-2.0.2/swig-2.0.2.tar.gz/download"
|
||||
CHECKSUM_MD5="eaf619a4169886923e5f828349504a29"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd swig-2.0.2
|
||||
libtoolize -fci
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd swig-2.0.2
|
||||
make install
|
||||
}
|
||||
LICENSE="SWIG"
|
||||
COPYRIGHT="1995-1998 University of Utah and the Regents of the University of California
|
||||
1998-2005 University of Chicago
|
||||
2005-2006 Arizona Board of Regents (University of Arizona)
|
||||
1995-2010 The SWIG Developers"
|
||||
49
dev-lang/tcl/patches/tcl-8.5.9.patch
Normal file
49
dev-lang/tcl/patches/tcl-8.5.9.patch
Normal file
@@ -0,0 +1,49 @@
|
||||
diff -up tcl8.5.9/tests/env.test.orig tcl8.5.9/tests/env.test
|
||||
--- tcl8.5.9/tests/env.test.orig 2011-05-14 16:24:47.871366656 -0600
|
||||
+++ tcl8.5.9/tests/env.test 2011-05-14 16:26:18.149946368 -0600
|
||||
@@ -80,7 +80,7 @@ set printenvScript [makeFile {
|
||||
TCL_LIBRARY PATH LD_LIBRARY_PATH LIBPATH PURE_PROG_NAME DISPLAY
|
||||
SHLIB_PATH SYSTEMDRIVE SYSTEMROOT DYLD_LIBRARY_PATH DYLD_FRAMEWORK_PATH
|
||||
DYLD_NEW_LOCAL_SHARED_REGIONS DYLD_NO_FIX_PREBINDING
|
||||
- __CF_USER_TEXT_ENCODING SECURITYSESSIONID LANG WINDIR TERM
|
||||
+ __CF_USER_TEXT_ENCODING SECURITYSESSIONID LANG WINDIR TERM LIBRARY_PATH
|
||||
} {
|
||||
lrem names $name
|
||||
}
|
||||
@@ -112,7 +112,7 @@ foreach name [array names env] {
|
||||
TCL_LIBRARY PATH LD_LIBRARY_PATH LIBPATH DISPLAY SHLIB_PATH
|
||||
SYSTEMDRIVE SYSTEMROOT DYLD_LIBRARY_PATH DYLD_FRAMEWORK_PATH
|
||||
DYLD_NEW_LOCAL_SHARED_REGIONS DYLD_NO_FIX_PREBINDING
|
||||
- SECURITYSESSIONID LANG WINDIR TERM
|
||||
+ SECURITYSESSIONID LANG WINDIR TERM LIBRARY_PATH
|
||||
}} {
|
||||
unset env($name)
|
||||
}
|
||||
diff -up tcl8.5.9/unix/tcl.m4.orig tcl8.5.9/unix/tcl.m4
|
||||
--- tcl8.5.9/unix/tcl.m4.orig 2010-09-08 11:40:48.016515072 -0600
|
||||
+++ tcl8.5.9/unix/tcl.m4 2011-05-14 16:20:36.560201728 -0600
|
||||
@@ -669,9 +669,16 @@ AC_DEFUN([SC_ENABLE_THREADS], [
|
||||
# The space is needed
|
||||
THREADS_LIBS=" -pthread"
|
||||
else
|
||||
+ AC_CHECK_LIB(root, pthread_mutex_init,
|
||||
+ tcl_ok=yes, tcl_ok=no)
|
||||
+ if test "$tcl_ok" = "yes"; then
|
||||
+ # The space is needed
|
||||
+ THREAD_LIBS=" "
|
||||
+ else
|
||||
TCL_THREADS=0
|
||||
AC_MSG_WARN([Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...])
|
||||
fi
|
||||
+ fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -1276,6 +1283,7 @@ dnl AC_CHECK_TOOL(AR, ar)
|
||||
SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
|
||||
DL_OBJS="tclLoadDl.o"
|
||||
DL_LIBS="-lroot"
|
||||
+ LD_LIBRARY_PATH_VAR="LIBRARY_PATH"
|
||||
AC_CHECK_LIB(network, inet_ntoa, [LIBS="$LIBS -lnetwork"])
|
||||
;;
|
||||
HP-UX-*.11.*)
|
||||
28
dev-lang/tcl/tcl-8.5.9.bep
Normal file
28
dev-lang/tcl/tcl-8.5.9.bep
Normal file
@@ -0,0 +1,28 @@
|
||||
DESCRIPTION="Tcl (Tool Command Language) is a very powerful but easy to learn dynamic programming language, suitable for a very wide range of uses."
|
||||
HOMEPAGE="http://www.tcl.tk"
|
||||
SRC_URI="http://sourceforge.net/projects/tcl/files/Tcl/8.5.9/tcl8.5.9-src.tar.gz/download"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
CHECKSUM_MD5="8512d8db3233041dd68a81476906012a"
|
||||
BUILD {
|
||||
cd tcl8.5.9/unix
|
||||
autoconf -f
|
||||
./configure --prefix=$(finddir B_COMMON_DIRECTORY) \
|
||||
--enable-threads --enable-man-symlinks
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd tcl8.5.9/unix
|
||||
make install
|
||||
ln -s tclsh8.5 "$(finddir B_COMMON_BIN_DIRECTORY)/tclsh"
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd tcl8.5.9/unix
|
||||
make test
|
||||
}
|
||||
|
||||
LICENSE="BSD (2-clause)"
|
||||
#COPYRIGHT=""
|
||||
7
dev-lang/tcl/tcl-8.6b1-1.build
Normal file
7
dev-lang/tcl/tcl-8.6b1-1.build
Normal file
@@ -0,0 +1,7 @@
|
||||
cd tcl8.6b1/pkgs/tdbc1.0b1
|
||||
autoconf
|
||||
cd ../../unix
|
||||
autoconf
|
||||
mkdir build && cd build
|
||||
../configure --prefix=`finddir B_COMMON_DIRECTORY` --enable-man-symlinks
|
||||
make
|
||||
2
dev-lang/tcl/tcl-8.6b1-1.install
Normal file
2
dev-lang/tcl/tcl-8.6b1-1.install
Normal file
@@ -0,0 +1,2 @@
|
||||
cd tcl8.6b1/unix/build
|
||||
make install
|
||||
99
dev-lang/tcl/tcl-8.6b1-1.patch
Normal file
99
dev-lang/tcl/tcl-8.6b1-1.patch
Normal file
@@ -0,0 +1,99 @@
|
||||
diff -Naur tcl8.6b1/generic/tclPosixStr.c tcl8.6b1-haiku/generic/tclPosixStr.c
|
||||
--- tcl8.6b1/generic/tclPosixStr.c 2008-04-28 00:21:32.028049408 +0200
|
||||
+++ tcl8.6b1-haiku/generic/tclPosixStr.c 2011-06-11 21:57:53.249036800 +0200
|
||||
@@ -941,7 +941,9 @@
|
||||
case SIGALRM: return "SIGALRM";
|
||||
#endif
|
||||
#ifdef SIGBUS
|
||||
- case SIGBUS: return "SIGBUS";
|
||||
+# if !defined(SIGSEGV) || (SIGBUS != SIGSEGV)
|
||||
+ case SIGBUS: return "SIGBUS";
|
||||
+# endif
|
||||
#endif
|
||||
#ifdef SIGCHLD
|
||||
case SIGCHLD: return "SIGCHLD";
|
||||
@@ -1072,7 +1074,9 @@
|
||||
case SIGALRM: return "alarm clock";
|
||||
#endif
|
||||
#ifdef SIGBUS
|
||||
- case SIGBUS: return "bus error";
|
||||
+# if !defined(SIGSEGV) || (SIGBUS != SIGSEGV)
|
||||
+ case SIGBUS: return "bus error";
|
||||
+# endif
|
||||
#endif
|
||||
#ifdef SIGCHLD
|
||||
case SIGCHLD: return "child status changed";
|
||||
diff -Naur tcl8.6b1/pkgs/tdbc1.0b1/tclconfig/tcl.m4 tcl8.6b1-haiku/pkgs/tdbc1.0b1/tclconfig/tcl.m4
|
||||
--- tcl8.6b1/pkgs/tdbc1.0b1/tclconfig/tcl.m4 2008-12-22 18:45:06.004456448 +0100
|
||||
+++ tcl8.6b1-haiku/pkgs/tdbc1.0b1/tclconfig/tcl.m4 2011-06-11 21:58:19.403177472 +0200
|
||||
@@ -761,8 +761,15 @@
|
||||
# The space is needed
|
||||
THREADS_LIBS=" -pthread"
|
||||
else
|
||||
- TCL_THREADS=0
|
||||
- AC_MSG_WARN([Do not know how to find pthread lib on your system - thread support disabled])
|
||||
+ # Haiku
|
||||
+ AC_CHECK_LIB(root,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
|
||||
+ if test "$tcl_ok" = "yes"; then
|
||||
+ # The space is needed
|
||||
+ THREADS_LIBS=" -lroot"
|
||||
+ else
|
||||
+ TCL_THREADS=0
|
||||
+ AC_MSG_WARN([Do not know how to find pthread lib on your system - thread support disabled])
|
||||
+ fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -1459,6 +1466,15 @@
|
||||
CC_SEARCH_FLAGS=""
|
||||
LD_SEARCH_FLAGS=""
|
||||
;;
|
||||
+ Haiku*)
|
||||
+ SHLIB_CFLAGS="-fPIC"
|
||||
+ SHLIB_LD='${CC} -nostart'
|
||||
+ SHLIB_LD_LIBS='${LIBS}'
|
||||
+ SHLIB_SUFFIX=".so"
|
||||
+ DL_OBJS="tclLoadDl.o"
|
||||
+ DL_LIBS="-lroot"
|
||||
+ LIBS="$LIBS -lnetwork"
|
||||
+ ;;
|
||||
HP-UX-*.11.*)
|
||||
# Use updated header definitions where possible
|
||||
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?])
|
||||
diff -Naur tcl8.6b1/unix/tcl.m4 tcl8.6b1-haiku/unix/tcl.m4
|
||||
--- tcl8.6b1/unix/tcl.m4 2008-12-22 18:45:06.034603008 +0100
|
||||
+++ tcl8.6b1-haiku/unix/tcl.m4 2011-06-11 22:04:12.228327424 +0200
|
||||
@@ -667,8 +667,15 @@
|
||||
# The space is needed
|
||||
THREADS_LIBS=" -pthread"
|
||||
else
|
||||
- TCL_THREADS=0
|
||||
- AC_MSG_WARN([Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...])
|
||||
+ # Haiku
|
||||
+ AC_CHECK_LIB(root,pthread_mutex_init,tcl_ok=yes,tcl_ok=no)
|
||||
+ if test "$tcl_ok" = "yes"; then
|
||||
+ # The space is needed
|
||||
+ THREADS_LIBS=" -lroot"
|
||||
+ else
|
||||
+ TCL_THREADS=0
|
||||
+ AC_MSG_WARN([Don't know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...])
|
||||
+ fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
@@ -1252,6 +1259,15 @@
|
||||
CC_SEARCH_FLAGS=""
|
||||
LD_SEARCH_FLAGS=""
|
||||
;;
|
||||
+ Haiku*)
|
||||
+ SHLIB_CFLAGS="-fPIC"
|
||||
+ SHLIB_LD='${CC} -nostart'
|
||||
+ SHLIB_LD_LIBS='${LIBS}'
|
||||
+ SHLIB_SUFFIX=".so"
|
||||
+ DL_OBJS="tclLoadDl.o"
|
||||
+ DL_LIBS="-lroot"
|
||||
+ LIBS="$LIBS -lnetwork"
|
||||
+ ;;
|
||||
HP-UX-*.11.*)
|
||||
# Use updated header definitions where possible
|
||||
AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, [Do we want to use the XOPEN network library?])
|
||||
2
dev-lang/tcl/tcl-8.6b1-1.test
Normal file
2
dev-lang/tcl/tcl-8.6b1-1.test
Normal file
@@ -0,0 +1,2 @@
|
||||
cd tcl8.6b1/unix/build
|
||||
make test
|
||||
2460
dev-lang/v8/patches/gyp-r1501.patch
Normal file
2460
dev-lang/v8/patches/gyp-r1501.patch
Normal file
File diff suppressed because it is too large
Load Diff
1381
dev-lang/v8/patches/v8-r13067.patch
Normal file
1381
dev-lang/v8/patches/v8-r13067.patch
Normal file
File diff suppressed because it is too large
Load Diff
46
dev-lang/v8/v8-r13067.bep
Normal file
46
dev-lang/v8/v8-r13067.bep
Normal file
@@ -0,0 +1,46 @@
|
||||
DESCRIPTION="V8 is Google's open source JavaScript engine."
|
||||
HOMEPAGE="https://code.google.com/p/v8/"
|
||||
SRC_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"
|
||||
@@ -1,12 +0,0 @@
|
||||
diff -urN yasm-0.7.1/util.h yasm-0.7.1-haiku/util.h
|
||||
--- yasm-0.7.1/util.h 2008-05-15 01:35:11.000000000 +0000
|
||||
+++ yasm-0.7.1-haiku/util.h 2008-09-26 11:19:12.000000000 +0000
|
||||
@@ -116,7 +116,7 @@
|
||||
# define USE_OUR_OWN_STRCASECMP
|
||||
#endif
|
||||
|
||||
-#if !defined(HAVE_TOASCII) || defined(lint)
|
||||
+#if (!defined(HAVE_TOASCII) || defined(lint)) && !defined(__HAIKU__)
|
||||
# define toascii(c) ((c) & 0x7F)
|
||||
#endif
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
DESCRIPTION="Yasm assembler"
|
||||
HOMEPAGE="http://www.tortall.net/projects/yasm/"
|
||||
SRC_URI="http://www.tortall.net/projects/yasm/releases/yasm-0.7.1.tar.gz"
|
||||
CHECKSUM_MD5="fce21d066f4d04e3ec7f9318e6446e2b"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd yasm-0.7.1
|
||||
cp /boot/common/share/libtool/config/config.guess config/.
|
||||
cp /boot/common/share/libtool/config/config.sub config/.
|
||||
./configure --prefix=/boot/common LDFLAGS=-L/boot/common/lib CPPFLAG=-I/boot/common/include
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd yasm-0.7.1
|
||||
make install
|
||||
}
|
||||
LICENSE="Artistic
|
||||
BSD (2-clause)
|
||||
BSD (3-clause)
|
||||
GNU GPL v2
|
||||
GNU LGPL v2"
|
||||
COPYRIGHT="2001-2009 Peter Johnson and other Yasm developers."
|
||||
@@ -1,27 +0,0 @@
|
||||
DESCRIPTION="Yasm assembler"
|
||||
HOMEPAGE="http://www.tortall.net/projects/yasm/"
|
||||
SRC_URI="http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz"
|
||||
CHECKSUM_MD5="84a72204c9b452a00b39b1b00495163f"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd yasm-0.8.0
|
||||
cp /boot/common/share/libtool/config/config.guess config/.
|
||||
cp /boot/common/share/libtool/config/config.sub config/.
|
||||
./configure --prefix=/boot/common \
|
||||
LDFLAGS=-L/boot/common/lib \
|
||||
CPPFLAG=-I/boot/common/include
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd yasm-0.8.0
|
||||
make install
|
||||
}
|
||||
LICENSE="Artistic
|
||||
BSD (2-clause)
|
||||
BSD (3-clause)
|
||||
GNU GPL v2
|
||||
GNU LGPL v2"
|
||||
COPYRIGHT="2001-2009 Peter Johnson and other Yasm developers."
|
||||
@@ -1,5 +1,5 @@
|
||||
DESCRIPTION="Yasm assembler"
|
||||
HOMEPAGE="http://www.tortall.net/projects/yasm/"
|
||||
DESCRIPTION="Yasm assembler"
|
||||
HOMEPAGE="http://www.tortall.net/projects/yasm/"
|
||||
SRC_URI="http://www.tortall.net/projects/yasm/releases/yasm-1.1.0.tar.gz"
|
||||
CHECKSUM_MD5="8392e5f2235c2c2a981e1a633f2698cb"
|
||||
REVISION="1"
|
||||
@@ -8,7 +8,10 @@ DEPEND=""
|
||||
BUILD {
|
||||
cd yasm-1.1.0
|
||||
libtoolize --force --copy --install
|
||||
./configure --prefix=/boot/common
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--mandir=$COMMON_DOCS/man \
|
||||
--disable-nls
|
||||
make
|
||||
}
|
||||
|
||||
@@ -16,6 +19,7 @@ INSTALL {
|
||||
cd yasm-1.1.0
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="Artistic
|
||||
BSD (2-clause)
|
||||
BSD (3-clause)
|
||||
|
||||
28
dev-lang/yasm/yasm-1.2.0.bep
Normal file
28
dev-lang/yasm/yasm-1.2.0.bep
Normal file
@@ -0,0 +1,28 @@
|
||||
DESCRIPTION="Yasm assembler"
|
||||
HOMEPAGE="http://www.tortall.net/projects/yasm/"
|
||||
SRC_URI="http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz"
|
||||
CHECKSUM_MD5="4cfc0686cf5350dd1305c4d905eb55a6"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd yasm-1.2.0
|
||||
libtoolize --force --copy --install
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--mandir=$COMMON_DOCS/man \
|
||||
--disable-nls
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd yasm-1.2.0
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="Artistic
|
||||
BSD (2-clause)
|
||||
BSD (3-clause)
|
||||
GNU GPL v2
|
||||
GNU LGPL v2"
|
||||
COPYRIGHT="2001-2011 Peter Johnson and other Yasm developers."
|
||||
Reference in New Issue
Block a user