Merge all changes from trunk

This commit is contained in:
Oliver Tappe
2013-03-29 14:04:07 +00:00
parent 888e133171
commit 94cc6aaf85
1052 changed files with 65053 additions and 2541 deletions

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd autoconf-2.65
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd autoconf-2.66
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd autoconf-2.67
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd autoconf-2.67
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,30 @@
DESCRIPTION="autoconf - Used to create autoconfiguration files"
HOMEPAGE="http://www.gnu.org/software/autoconf/"
SRC_URI="http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz"
CHECKSUM_MD5="50f97f4159805e374639a73e2636f22e"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd autoconf-2.69
libtoolize --force --copy --install
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--datadir=`finddir B_COMMON_DATA_DIRECTORY`
make
}
INSTALL {
cd autoconf-2.69
make install
}
TEST {
cd autoconf-2.69
make check
}
LICENSE="GNU GPL v2
GNU GPL v3"
COPYRIGHT="1992-2012 Free Software Foundation, Inc."

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd automake-1.10.3
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,31 @@
DESCRIPTION="automake - Used to generate Makefile.in from Makefile.am"
HOMEPAGE="http://www.gnu.org/software/automake/"
SRC_URI="http://ftp.gnu.org/gnu/automake/automake-1.12.2.tar.gz"
CHECKSUM_MD5="e620cb9e0259159341c0e0d6b712b67a"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd automake-1.12.2
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_DATA=`finddir B_COMMON_DATA_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=$COMMON_DATA \
--docdir=$COMMON_DOCS/doc/automake \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd automake-1.12.2
make install
}
TEST {
cd automake-1.12.2
make check
}
LICENSE="GNU GPL v2"
COPYRIGHT="2012 Free Software Foundation, Inc."

View File

@@ -0,0 +1,31 @@
DESCRIPTION="automake - Used to generate Makefile.in from Makefile.am"
HOMEPAGE="http://www.gnu.org/software/automake/"
SRC_URI="http://ftp.gnu.org/gnu/automake/automake-1.12.5.tar.gz"
CHECKSUM_MD5="674f6d28f8723e0f478cb03de30f36f1"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd automake-1.12.5
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_DATA=`finddir B_COMMON_DATA_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=$COMMON_DATA \
--docdir=$COMMON_DOCS/doc/automake \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd automake-1.12.5
make install
}
TEST {
cd automake-1.12.5
make check
}
LICENSE="GNU GPL v2"
COPYRIGHT="2012 Free Software Foundation, Inc."

View File

@@ -0,0 +1,32 @@
DESCRIPTION="automake - Used to generate Makefile.in from Makefile.am"
HOMEPAGE="http://www.gnu.org/software/automake/"
SRC_URI="http://ftp.gnu.org/gnu/automake/automake-1.13.1.tar.gz"
CHECKSUM_MD5="78a0ef8216b0556b44508e7b5b0c0847"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd automake-1.13.1
libtoolize --force --copy --install
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_DATA=`finddir B_COMMON_DATA_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=$COMMON_DATA \
--docdir=$COMMON_DOCS/doc/automake \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd automake-1.13.1
make install
}
TEST {
cd automake-1.13.1
make check
}
LICENSE="GNU GPL v2"
COPYRIGHT="2013 Free Software Foundation, Inc."

View File

@@ -0,0 +1,31 @@
DESCRIPTION="automake - Used to generate Makefile.in from Makefile.am"
HOMEPAGE="http://www.gnu.org/software/automake/"
SRC_URI="http://ftp.gnu.org/gnu/automake/automake-1.13.tar.gz"
CHECKSUM_MD5="255661c7729d04ef2f8f58d076c89ecc"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd automake-1.13
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_DATA=`finddir B_COMMON_DATA_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=$COMMON_DATA \
--docdir=$COMMON_DOCS/doc/automake \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd automake-1.13
make install
}
TEST {
cd automake-1.13
make check
}
LICENSE="GNU GPL v2"
COPYRIGHT="2012 Free Software Foundation, Inc."

View File

@@ -1,17 +0,0 @@
diff -ur automake-1.10.1-orig/lib/config.guess automake-1.10.1/lib/config.guess
--- automake-1.10.1-orig/lib/config.guess 2008-01-19 09:54:57.000000000 +0000
+++ automake-1.10.1/lib/config.guess 2008-03-20 23:52:43.000000000 +0000
@@ -1216,6 +1216,12 @@
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
exit ;;
+ BeMac:Haiku:*:*)
+ echo powerpc-apple-haiku
+ exit ;;
+ BePC:Haiku:*:*)
+ echo i586-pc-haiku
+ exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
exit ;;
Only in automake-1.10.1/lib: config.guess~

View File

@@ -7,7 +7,9 @@ DEPEND=""
CHECKSUM_MD5="d44b5dddebd8a7a7309aea6c36fda117"
BUILD {
cd bc-1.06
./configure --prefix=`finddir B_COMMON_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd bison-2.4.1
./configure --prefix=/boot/common --disable-nls
./configure --prefix=`finddir B_COMMON_DIRECTORY` --disable-nls
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd bison-2.4
./configure --prefix=/boot/common --disable-nls
./configure --prefix=`finddir B_COMMON_DIRECTORY` --disable-nls
make
}

View File

@@ -0,0 +1,30 @@
DESCRIPTION="bison - A yacc-compatible parser generator"
HOMEPAGE="http://www.gnu.org/software/bison/bison.html"
SRC_URI="http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz"
CHECKSUM_MD5="687e1dcd29452789d34eaeea4c25abe4"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
DEPEND=""
BUILD {
cd bison-2.5
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--disable-nls
make
}
INSTALL {
cd bison-2.5
make install
}
TEST {
cd bison-2.5
make check
}
LICENSE="GNU GPL v3"
COPYRIGHT="1992-2011 Free Software Foundation, Inc."

View File

@@ -0,0 +1,30 @@
DESCRIPTION="bison - A yacc-compatible parser generator"
HOMEPAGE="http://www.gnu.org/software/bison/bison.html"
SRC_URI="http://ftp.gnu.org/gnu/bison/bison-2.6.2.tar.gz"
CHECKSUM_MD5="8b8e458d4ce0cc184f1a58af93663647"
REVISION="15"
STATUS_HAIKU="stable"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
DEPEND=""
BUILD {
cd bison-2.6.2
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--disable-nls
make
}
INSTALL {
cd bison-2.6.2
make install
}
TEST {
cd bison-2.6.2
make check
}
LICENSE="GNU GPL v3"
COPYRIGHT="1992-2011 Free Software Foundation, Inc."

View File

@@ -0,0 +1,29 @@
diff -urN bison-2.5/src/AnnotationList.c bison-2.5-haiku/src/AnnotationList.c
--- bison-2.5/src/AnnotationList.c 2011-03-06 16:47:12.043515904 -0800
+++ bison-2.5-haiku/src/AnnotationList.c 2012-08-26 09:54:44.000000000 -0700
@@ -233,9 +233,10 @@
AnnotationList *annotation_node =
AnnotationList__alloc_on_obstack (
self->inadequacyNode->contributionCount, annotations_obstackp);
- annotation_node->inadequacyNode = self->inadequacyNode;
bool potential_contribution = false;
bitset *lookaheads = NULL;
+ annotation_node->inadequacyNode = self->inadequacyNode;
+
{
ContributionIndex ci;
for (ci = 0; ci < self->inadequacyNode->contributionCount; ++ci)
diff -urN bison-2.5/src/ielr.c bison-2.5-haiku/src/ielr.c
--- bison-2.5/src/ielr.c 2011-03-06 16:47:12.044564480 -0800
+++ bison-2.5-haiku/src/ielr.c 2012-08-26 10:05:25.000000000 -0700
@@ -1032,9 +1032,9 @@
lookahead sets. */
if (!annotation_lists)
{
+ state_list *node;
timevar_push (TV_IELR_PHASE4);
initialize_LA ();
- state_list *node;
for (node = first_state; node; node = node->next)
if (!node->state->consistent)
{

View File

@@ -0,0 +1,29 @@
diff -urN bison-2.5/src/location.c bison-2.5-haiku/src/location.c
--- bison-2.5/src/location.c 2011-05-01 22:17:32.046137344 +0000
+++ bison-2.5-haiku/src/location.c 2012-06-01 18:19:15.538443776 +0000
@@ -144,11 +144,11 @@
/* Must search in reverse since the file name field may
* contain `.' or `:'. */
char *delim = mbsrchr (loc_str, '.');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->column = atoi (delim+1);
delim = mbsrchr (loc_str, ':');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->line = atoi (delim+1);
bound->file = uniqstr_new (loc_str);
diff -urN bison-2.5/src/muscle-tab.c bison-2.5-haiku/src/muscle-tab.c
--- bison-2.5/src/muscle-tab.c 2011-05-14 22:17:12.043253760 +0000
+++ bison-2.5-haiku/src/muscle-tab.c 2012-06-01 18:16:05.827326464 +0000
@@ -336,7 +336,7 @@
{
location loc;
char const *value = muscle_find_const (key);
- aver (value);
+ aver (value != NULL);
aver (*value == '[');
aver (*++value == '[');
while (*++value)

View File

@@ -0,0 +1,81 @@
diff -urN bison-2.6.2/src/AnnotationList.c bison-2.6.2-haiku/src/AnnotationList.c
--- bison-2.6.2/src/AnnotationList.c 2012-03-30 05:39:19.030146560 -0700
+++ bison-2.6.2-haiku/src/AnnotationList.c 2012-09-30 11:25:40.750518272 -0700
@@ -230,12 +230,13 @@
state **predecessor;
for (predecessor = predecessors[s->number]; *predecessor; ++predecessor)
{
+ bool potential_contribution = false;
+ bitset *lookaheads = NULL;
AnnotationList *annotation_node =
AnnotationList__alloc_on_obstack (
self->inadequacyNode->contributionCount, annotations_obstackp);
annotation_node->inadequacyNode = self->inadequacyNode;
- bool potential_contribution = false;
- bitset *lookaheads = NULL;
+
{
ContributionIndex ci;
for (ci = 0; ci < self->inadequacyNode->contributionCount; ++ci)
diff -urN bison-2.6.2/src/ielr.c bison-2.6.2-haiku/src/ielr.c
--- bison-2.6.2/src/ielr.c 2012-03-30 05:39:19.032243712 -0700
+++ bison-2.6.2-haiku/src/ielr.c 2012-09-30 11:28:10.713555968 -0700
@@ -1032,9 +1032,9 @@
lookahead sets. */
if (!annotation_lists)
{
+ state_list *node;
timevar_push (TV_IELR_PHASE4);
initialize_LA ();
- state_list *node;
for (node = first_state; node; node = node->next)
if (!node->state->consistent)
{
diff -urN bison-2.6.2/src/location.c bison-2.6.2-haiku/src/location.c
--- bison-2.6.2/src/location.c 2012-03-30 05:39:19.033030144 -0700
+++ bison-2.6.2-haiku/src/location.c 2012-09-30 10:32:52.147587072 -0700
@@ -144,11 +144,11 @@
/* Must search in reverse since the file name field may
* contain `.' or `:'. */
char *delim = mbsrchr (loc_str, '.');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->column = atoi (delim+1);
delim = mbsrchr (loc_str, ':');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->line = atoi (delim+1);
bound->file = uniqstr_new (loc_str);
diff -urN bison-2.6.2/src/muscle-tab.c bison-2.6.2-haiku/src/muscle-tab.c
--- bison-2.6.2/src/muscle-tab.c 2012-07-30 09:06:21.033816576 -0700
+++ bison-2.6.2-haiku/src/muscle-tab.c 2012-09-30 10:32:52.255852544 -0700
@@ -344,7 +344,7 @@
{
location loc;
char const *value = muscle_find_const (key);
- aver (value);
+ aver (value != NULL);
aver (*value == '[');
aver (*++value == '[');
while (*++value)
diff -urN bison-2.6.2/src/scan-code.l bison-2.6.2-haiku/src/scan-code.l
--- bison-2.6.2/src/scan-code.l 2012-07-30 09:06:21.009437184 -0700
+++ bison-2.6.2-haiku/src/scan-code.l2 2012-09-30 19:52:46.294912000 -0700
@@ -611,12 +611,12 @@
indent += SUB_INDENT;
if (len == 0)
{
- location sym_loc = text_loc;
- sym_loc.start.column += 1;
- sym_loc.end = sym_loc.start;
const char *format =
_("syntax error after '%c', expecting integer, letter,"
" '_', '[', or '$'");
+ location sym_loc = text_loc;
+ sym_loc.start.column += 1;
+ sym_loc.end = sym_loc.start;
complain_at_indent (sym_loc, &indent, format, dollar_or_at);
}
else if (midrule_rhs_index)

View File

@@ -0,0 +1,26 @@
DESCRIPTION="clang: an llvm front end compiler for C and C++"
HOMEPAGE="http://www.llvm.org/"
SRC_URI="http://llvm.org/releases/3.0/llvm-3.0.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="groff"
CHECKSUM_MD5="a8e5f5f1c1adebae7b4a654c376a6005"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
cd llvm-3.0.src/tools
wget "http://llvm.org/releases/3.0/clang-3.0.tar.gz"
echo "Extracting clang llvm tool..."
tar xzf clang-3.0.tar.gz
mv clang-3.0.src clang
cd ..
./configure --enable-optimized --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd llvm-3.0.src
make install
}
LICENSE="UIUC"
COPYRIGHT="2003-2010 University of Illinois at Urbana-Champaign"

View File

@@ -0,0 +1,36 @@
DESCRIPTION="clang: an llvm front end compiler for C and C++"
HOMEPAGE="http://www.llvm.org/"
SRC_URI="http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND="groff"
CHECKSUM_MD5="71610289bbc819e3e15fdd562809a2d7"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
if [ ! -L /usr ]; then
ln -s /boot/system/ /usr
fi
cd llvm-3.2.src/tools
wget "http://llvm.org/releases/3.2/clang-3.2.src.tar.gz"
echo "Extracting clang llvm tool..."
tar xzf clang-3.2.src.tar.gz
mv clang-3.2.src clang
cd ..
cp -r /boot/common/data/libtool/config/. autoconf/
cp -r /boot/common/data/libtool/config/. projects/sample/autoconf/
./configure --enable-optimized --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd llvm-3.2.src
make install
}
TEST {
cd llvm-3.2.src
make check
}
LICENSE="UIUC"
COPYRIGHT="2003-2012 University of Illinois at Urbana-Champaign"

View File

@@ -0,0 +1,69 @@
==============================================================================
LLVM Release License
==============================================================================
University of Illinois/NCSA
Open Source License
Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
All rights reserved.
Developed by:
LLVM Team
University of Illinois at Urbana-Champaign
http://llvm.org
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimers in the
documentation and/or other materials provided with the distribution.
* Neither the names of the LLVM Team, University of Illinois at
Urbana-Champaign, nor the names of its contributors may be used to
endorse or promote products derived from this Software without specific
prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
SOFTWARE.
==============================================================================
Copyrights and Licenses for Third Party Software Distributed with LLVM:
==============================================================================
The LLVM software contains code written by third parties. Such software will
have its own individual LICENSE.TXT file in the directory in which it appears.
This file will describe the copyrights, license, and restrictions which apply
to that code.
The disclaimer of warranty in the University of Illinois Open Source License
applies to all code in the LLVM Distribution, and nothing in any of the
other licenses gives permission to use the names of the LLVM Team or the
University of Illinois to endorse or promote products derived from this
Software.
The following pieces of software have additional or alternate copyrights,
licenses, and/or restrictions:
Program Directory
------- ---------
Autoconf llvm/autoconf
llvm/projects/ModuleMaker/autoconf
llvm/projects/sample/autoconf
CellSPU backend llvm/lib/Target/CellSPU/README.txt
Google Test llvm/utils/unittest/googletest
OpenBSD regex llvm/lib/Support/{reg*, COPYRIGHT.regex}

View File

@@ -0,0 +1,5 @@
cd distcc-3.1
libtoolize --force --copy --install
./autogen.sh
./configure LDFLAGS=-L/boot/common/lib/python2.6/config --prefix=`finddir B_COMMON_DIRECTORY`
make

View File

@@ -0,0 +1,2 @@
cd distcc-3.1
make install

View File

@@ -0,0 +1,100 @@
diff -Naur distcc-3.1/Makefile.in distcc-3.1-haiku/Makefile.in
--- distcc-3.1/Makefile.in 2008-12-02 21:50:31.066060288 +0000
+++ distcc-3.1-haiku/Makefile.in 2011-05-21 01:10:21.995098624 +0000
@@ -554,7 +554,7 @@
# The include-server is a python app, so we use Python's build system. We pass
# the distcc version, the source location, the CPP flags (for location of the
-# includes), and the build location.
+# includes), LD flags and the build location.
include-server:
if test -z "$(INCLUDESERVER_PYTHON)"; then \
echo "Not building $@: No suitable python found"; \
@@ -564,6 +564,7 @@
SRCDIR="$(srcdir)" \
CFLAGS="$(CFLAGS) $(PYTHON_CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
+ LDFLAGS="$(LDFLAGS)" \
$(INCLUDESERVER_PYTHON) "$(srcdir)/include_server/setup.py" \
build \
--build-base="$(include_server_builddir)" \
diff -Naur distcc-3.1/configure.ac distcc-3.1-haiku/configure.ac
--- distcc-3.1/configure.ac 2008-12-02 21:50:31.066846720 +0000
+++ distcc-3.1-haiku/configure.ac 2011-05-21 01:10:34.207618048 +0000
@@ -329,9 +329,12 @@
# only looks in /etc/hosts), so we only look for -lsocket if we need
# it.
AC_SEARCH_LIBS(gethostent, [nsl])
-AC_SEARCH_LIBS(setsockopt, [socket])
+AC_SEARCH_LIBS(setsockopt, [socket network])
AC_SEARCH_LIBS(hstrerror, [resolv])
AC_SEARCH_LIBS(inet_aton, [resolv])
+AC_SEARCH_LIBS(strsep, [bsd])
+AC_SEARCH_LIBS(wait3, [bsd])
+AC_SEARCH_LIBS(wait4, [bsd])
if test x"$with_included_popt" != x"yes" && test x"$with_included_popt" != xno
then
@@ -379,6 +382,7 @@
AC_CHECK_FUNCS([getrusage strsignal gettimeofday])
AC_CHECK_FUNCS([getaddrinfo getnameinfo inet_ntop inet_ntoa])
AC_CHECK_FUNCS([strndup strsep mmap strlcpy])
+AC_CHECK_FUNCS([nice])
AC_CHECK_FUNCS([getloadavg])
@@ -471,6 +475,8 @@
AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [define if you have struct sockaddr_storage]),,
[#include <sys/socket.h>])
+AC_CHECK_MEMBERS([struct rusage.ru_minflt, struct rusage.ru_majflt])
+
AC_ARG_WITH(avahi,
AC_HELP_STRING([--without-avahi], [build without avahi]))
diff -Naur distcc-3.1/src/daemon.c distcc-3.1-haiku/src/daemon.c
--- distcc-3.1/src/daemon.c 2008-12-02 21:50:25.053739520 +0000
+++ distcc-3.1-haiku/src/daemon.c 2011-05-21 01:11:07.709361664 +0000
@@ -172,15 +172,19 @@
if ((ret = dcc_set_lifetime()) != 0)
dcc_exit(ret);
+#ifdef HAVE_NICE
/* do this before giving away root */
if (nice(opt_niceness) == -1) {
rs_log_warning("nice %d failed: %s", opt_niceness,
strerror(errno));
/* continue anyhow */
}
+#endif
+#ifndef __HAIKU__
if ((ret = dcc_discard_root()) != 0)
dcc_exit(ret);
+#endif
/* Discard privileges before opening log so that if it's created, it has
* the right ownership. */
diff -Naur distcc-3.1/src/exec.c distcc-3.1-haiku/src/exec.c
--- distcc-3.1/src/exec.c 2008-12-02 21:50:24.054263808 +0000
+++ distcc-3.1-haiku/src/exec.c 2011-05-21 01:10:57.257687552 +0000
@@ -488,12 +488,19 @@
* critique_status(). */
rs_trace("%s child %ld terminated with status %#x",
what, (long) ret_pid, *wait_status);
+#if defined HAVE_RUSAGE_RU_MINFLT && defined HAVE_RUSAGE_RU_MAJFLT
rs_log_info("%s times: user %ld.%06lds, system %ld.%06lds, "
"%ld minflt, %ld majflt",
what,
ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec,
ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec,
ru.ru_minflt, ru.ru_majflt);
+#else
+ rs_log_info("%s times: user %ld.%06lds, system %ld.%06lds",
+ what,
+ ru.ru_utime.tv_sec, (long) ru.ru_utime.tv_usec,
+ ru.ru_stime.tv_sec, (long) ru.ru_stime.tv_usec);
+#endif
return 0;
}

View File

@@ -0,0 +1,2 @@
cd distcc-3.1
make check

View File

@@ -1,50 +1,22 @@
DESCRIPTION="gettext"
DESCRIPTION="gettext-dev - full tools included"
HOMEPAGE="http://www.gnu.org/software/gettext/"
SRC_URI="http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz"
CHECKSUM_MD5="3dd55b952826d2b32f51308f2f91aa89"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND="dev-libs/gnulib = 9999"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd gettext-0.18.1.1
if [ ! -e `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999 ] ; then
echo "gnulib not found, so updating it now..."
haikuporter -i gnulib
fi
echo "Copying gnulib to gettext work directory..."
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/binary* gettext-tools/gnulib-lib/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/fseek* gettext-tools/gnulib-lib/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/iswblank* gettext-tools/gnulib-lib/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/fcntl* gettext-tools/gnulib-lib/
cp -a build-aux gettext-tools/
cd gettext-tools
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
cd ..
libtoolize --force --copy --install
sed -i 's/AC_INIT/AC_INIT([gettext],[0.18.1.1])/' configure.ac
./autogen.sh --quick --skip-gnulib
cd gettext-runtime
sed -i 's/AC_INIT/AC_INIT([gettext-runtime],[0.18.1.1])/' configure.ac
sed -i 's/gl_INIT_PACKAGE/dnl gl_INIT_PACKAGE was here/' configure.ac
sed -i 's/gl_WOE32_DLL/dnl gl_WOE32_DLL was here/' configure.ac
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
autoconf -Wnone
aclocal -I m4 -I gnulib-m4 --install --force
libtoolize --force --copy --install
autoconf -Wnone
export EXTRA_CONF="--disable-java"
cd ../
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--disable-java --without-git \
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
--docdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc \
--docdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc/gettext \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
make
}
INSTALL {
@@ -53,9 +25,7 @@ INSTALL {
}
TEST {
cd gettext-0.18.1.1/gettext-tools
make check
cd ../gettext-0.18.1.1/gettext-runtime
cd gettext-0.18.1.1/gettext-runtime/tests
make check
}

View File

@@ -2,7 +2,7 @@ DESCRIPTION="gettext"
HOMEPAGE="http://www.gnu.org/software/gettext/"
SRC_URI="http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz"
CHECKSUM_MD5="3dd55b952826d2b32f51308f2f91aa89"
REVISION="1"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
@@ -24,7 +24,7 @@ BUILD {
# export LDFLAGS="-lnetwork -liconv"
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
--docdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc \
--docdir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/doc/gettext \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man

View File

@@ -0,0 +1,11 @@
--- gettext-0.18.1.1-orig/gettext-tools/gnulib-lib/binary-io.h 2010-05-24 09:42:36.028573696 +0000
+++ gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h 2012-08-03 20:17:21.155189248 +0000
@@ -31,7 +31,7 @@
# define O_BINARY _O_BINARY
# define O_TEXT _O_TEXT
#endif
-#if defined __BEOS__ || defined __HAIKU__
+#if defined __BEOS__
/* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
# undef O_BINARY
# undef O_TEXT

View File

@@ -1,7 +1,7 @@
diff -urN gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac gettext-0.18.1.1-haiku/gettext-runtime/libasprintf/configure.ac
--- gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac 2010-06-06 12:49:57.044040192 +0000
+++ gettext-0.18.1.1-haiku/gettext-runtime/libasprintf/configure.ac 2011-01-14 15:54:38.003670016 +0000
@@ -44,7 +44,7 @@
diff -up gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac.orig gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac
--- gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac.orig 2010-06-06 06:49:57.058720256 -0600
+++ gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac 2012-05-04 20:40:00.847511552 -0600
@@ -44,7 +44,7 @@ LT_INIT([win32-dll])
case "$host_os" in
# On Cygwin, without -no-undefined, a warning is emitted and only a static
# library is built.
@@ -10,10 +10,10 @@ diff -urN gettext-0.18.1.1/gettext-runtime/libasprintf/configure.ac gettext-0.18
*) LTNOUNDEF='' ;;
esac
AC_SUBST([LTNOUNDEF])
diff -urN gettext-0.18.1.1/gettext-tools/configure.ac gettext-0.18.1.1-haiku/gettext-tools/configure.ac
--- gettext-0.18.1.1/gettext-tools/configure.ac 2010-06-06 20:04:04.061079552 +0000
+++ gettext-0.18.1.1-haiku/gettext-tools/configure.ac 2011-01-14 15:54:53.031981568 +0000
@@ -100,7 +100,7 @@
diff -up gettext-0.18.1.1/gettext-tools/configure.ac.orig gettext-0.18.1.1/gettext-tools/configure.ac
--- gettext-0.18.1.1/gettext-tools/configure.ac.orig 2010-06-06 14:04:04.007602176 -0600
+++ gettext-0.18.1.1/gettext-tools/configure.ac 2012-05-04 20:40:00.860880896 -0600
@@ -100,7 +100,7 @@ LT_LANG([Windows Resource])
case "$host_os" in
# On Cygwin, without -no-undefined, a warning is emitted and only a static
# library is built.
@@ -22,3 +22,19 @@ diff -urN gettext-0.18.1.1/gettext-tools/configure.ac gettext-0.18.1.1-haiku/get
*) LTNOUNDEF='' ;;
esac
AC_SUBST([LTNOUNDEF])
diff -up gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h.orig gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h
--- gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h.orig 2012-05-04 21:23:18.533200896 -0600
+++ gettext-0.18.1.1/gettext-tools/gnulib-lib/binary-io.h 2012-05-04 21:23:54.882900992 -0600
@@ -31,11 +31,6 @@
# define O_BINARY _O_BINARY
# define O_TEXT _O_TEXT
#endif
-#if defined __BEOS__ || defined __HAIKU__
- /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
-# undef O_BINARY
-# undef O_TEXT
-#endif
/* SET_BINARY (fd);
changes the file descriptor fd to perform binary I/O. */
diff -up gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe2.c.orig gettext-0.18.1.1/gettext-tools/gnulib-lib/pipe2.c

View File

@@ -1,19 +1,19 @@
DESCRIPTION="jam"
HOMEPAGE="http://www.perforce.com/jam/jam.html"
SRC_URI="svn://svn.berlios.de/haiku/buildtools/trunk/jam"
DESCRIPTION="jam"
HOMEPAGE="http://www.perforce.com/jam/jam.html"
SRC_URI="git://git.haiku-os.org/buildtools"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
#CHECKSUM_MD5=""
BUILD {
cd jam-2.5
jam
cd jam-2.5/jam
make
}
INSTALL {
cd jam-2.5
mkdir -p ${DESTDIR}/boot/common/bin
cp -a bin.haikux86/jam ${DESTDIR}/boot/common/bin/jam
cd jam-2.5/jam
mkdir -p ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
cp -a bin.haikux86/jam ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`/jam
}
LICENSE="Jam"
COPYRIGHT="1993-2003 Christopher Seiwald"

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd libtool-2.2.10
./bootstrap
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd libtool-2.2.6
./bootstrap
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd libtool-2.2.6b
./bootstrap
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd libtool-2.2.7b
./bootstrap
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd libtool-2.2.8
./bootstrap
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -9,7 +9,7 @@ DEPEND=""
BUILD {
cd libtool-2.2.x
./bootstrap
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,29 @@
DESCRIPTION="libtool - a generic library support script"
HOMEPAGE="http://www.gnu.org/software/libtool"
SRC_URI="ftp://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz"
CHECKSUM_MD5="d2f3b7d4627e69e13514a40e72a24d50"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd libtool-2.4.2
./bootstrap
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
}
INSTALL {
cd libtool-2.4.2
make install
}
TEST {
cd libtool-2.4.2
make check
}
LICENSE="GNU GPL v2"
COPYRIGHT="2004-2011 Free Software Foundation, Inc."

View File

@@ -0,0 +1,12 @@
diff -urN libtool-2.4.2/libltdl/m4/libtool.m4 libtool-2.4.2-haiku/libltdl/m4/libtool.m4
--- libtool-2.4.2/libltdl/m4/libtool.m4 2010-09-22 01:41:19.046923776 -0700
+++ libtool-2.4.2-haiku/libltdl/m4/libtool.m4 2011-07-26 09:06:47.362807296 -0700
@@ -2472,7 +2472,7 @@
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
shlibpath_var=LIBRARY_PATH
- shlibpath_overrides_runpath=yes
+ shlibpath_overrides_runpath=no
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
hardcode_into_libs=yes
;;

View File

@@ -0,0 +1,69 @@
==============================================================================
LLVM Release License
==============================================================================
University of Illinois/NCSA
Open Source License
Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
All rights reserved.
Developed by:
LLVM Team
University of Illinois at Urbana-Champaign
http://llvm.org
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal with
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimers.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimers in the
documentation and/or other materials provided with the distribution.
* Neither the names of the LLVM Team, University of Illinois at
Urbana-Champaign, nor the names of its contributors may be used to
endorse or promote products derived from this Software without specific
prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
SOFTWARE.
==============================================================================
Copyrights and Licenses for Third Party Software Distributed with LLVM:
==============================================================================
The LLVM software contains code written by third parties. Such software will
have its own individual LICENSE.TXT file in the directory in which it appears.
This file will describe the copyrights, license, and restrictions which apply
to that code.
The disclaimer of warranty in the University of Illinois Open Source License
applies to all code in the LLVM Distribution, and nothing in any of the
other licenses gives permission to use the names of the LLVM Team or the
University of Illinois to endorse or promote products derived from this
Software.
The following pieces of software have additional or alternate copyrights,
licenses, and/or restrictions:
Program Directory
------- ---------
Autoconf llvm/autoconf
llvm/projects/ModuleMaker/autoconf
llvm/projects/sample/autoconf
CellSPU backend llvm/lib/Target/CellSPU/README.txt
Google Test llvm/utils/unittest/googletest
OpenBSD regex llvm/lib/Support/{reg*, COPYRIGHT.regex}

View File

@@ -0,0 +1,21 @@
DESCRIPTION="LLVM is a collection of modular and reuseable compiler and toolchain technologies."
HOMEPAGE="http://www.llvm.org/"
SRC_URI="http://llvm.org/releases/3.0/llvm-3.0.tar.gz"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND=""
CHECKSUM_MD5="a8e5f5f1c1adebae7b4a654c376a6005"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
cd llvm-3.0.src
./configure --enable-optimized --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd llvm-3.0.src
make install
}
LICENSE="UIUC"
COPYRIGHT="2003-2011 University of Illinois at Urbana-Champaign"

View File

@@ -0,0 +1,26 @@
DESCRIPTION="LLVM is a collection of modular and reuseable compiler and toolchain technologies."
HOMEPAGE="http://www.llvm.org/"
SRC_URI="http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="71610289bbc819e3e15fdd562809a2d7"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
if [ ! -L /usr ]; then
ln -s /boot/system/ /usr
fi
cd llvm-3.2.src
cp -r /boot/common/data/libtool/config/. autoconf/
cp -r /boot/common/data/libtool/config/. projects/sample/autoconf/
./configure --enable-optimized --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd llvm-3.2.src
make install
}
LICENSE="UIUC"
COPYRIGHT="2003-2012 University of Illinois at Urbana-Champaign"

View File

@@ -0,0 +1,20 @@
DESCRIPTION="Utility to apply diffs to files"
HOMEPAGE="http://www.gnu.org/software/patch/"
SRC_URI="http://ftp.gnu.org/pub/gnu/patch/patch-2.7.1.tar.bz2"
CHECKSUM_MD5="0881a7c6477862fc395f373ada0ec6b6"
STATUS_HAIKU="stable"
REVISION="1"
BUILD {
cd patch-2.7.1
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
}
INSTALL {
cd patch-2.7.1
make install
}
LICENSE="GNU GPL v3"
COPYRIGHT="2012 Free Software Foundation, Inc."