This commit is contained in:
Kamil Krzyżanowski
2015-01-11 20:27:22 +00:00
241 changed files with 15419 additions and 2777 deletions

View File

@@ -0,0 +1,119 @@
SUMMARY="Text-to-speech engine"
DESCRIPTION="Festival is a text-to-speech engine co-developed by the \
University of Edinburgh, UK, and Carnegie Mellon University. It is designed to \
support multiple languages and to be easy to extend, both in terms of voices \
and new languages."
HOMEPAGE="http://www.cstr.ed.ac.uk/projects/festival"
SRC_URI="
http://festvox.org/packed/festival/$portVersion/festival-${portVersion}-release.tar.gz
"
CHECKSUM_SHA256="1e47f293e0857ffde2bccead97947c040ea0b35ea12dd5796edb51583e5e5d84"
SOURCE_DIR="festival"
REVISION="1"
# Only including the licenses that cover the files that are actually used
# and/or installed
LICENSE="
Festival
"
COPYRIGHT="
1996 Alan W. Black
1996-2004 University of Edinburgh, UK
1997 Jacques H. de Villiers <jacques@cse.ogi.edu>
1997 Kevin A. Lenzo <lenzo@cs.cmu.edu>
1997 Center for Spoken Language Understanding, Oregon Graduate \
Institute of Science & Technology
1999-2004 Language Technologies Institute, Carnegie Mellon University
2001-2008 Tokyo Institute of Technology
2001-2012 Nagoya Institute of Technology
2012 The Department of Arts and Culture, The Government of the \
Republic of South Africa
"
ARCHITECTURES="x86_gcc2 x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
PROVIDES="
festival$secondaryArchSuffix = $portVersion
cmd:festival = $portVersion
cmd:festival_client = $portVersion
cmd:text2wave = $portVersion
"
PROVIDES_devel="
festival${secondaryArchSuffix}_devel = $portVersion
devel:libFestival$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
speech_tools$secondaryArchSuffix >= 2.4
lib:libgcc_s$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
festival$secondaryArchSuffix == $portVersion base
speech_tools${secondaryArchSuffix}_devel >= 2.4
devel:libncurses$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
speech_tools${secondaryArchSuffix}_devel >= 2.4
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:find
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:mkdepend
"
PATCHES="festival-${portVersion}.patchset"
BUILD()
{
binDir=$prefix/bin
export binDir \
portPackageLinksDir \
relativeDevelopLibDir \
secondaryArchSuffix
for f in lib/festival.scm \
lib/lexicons.scm \
lib/voices.scm \
src/arch/festival/festival.cc
do
sed -e "s,@DOCDIR@,$docDir,g" \
-e "s,@DATADIR@,$dataDir/festival,g" \
-e "s,@LIBDIR@,$libDir/festival,g" \
${f}.in > ${f}
done
make
}
INSTALL()
{
mkdir -p \
$developLibDir \
$prefix/bin \
$dataDir/festival \
$manDir/man1 \
$docDir/examples
cp -a src/lib/libFestival.a $developLibDir
cp -a src/main/festival $prefix/bin
cp -a src/main/festival_client $prefix/bin
cp -a examples/text2wave $prefix/bin
cp -a lib/* $dataDir/festival
cp -a doc/*.1 $manDir/man1
cp -a examples/*intro.text $docDir/examples
packageEntries devel \
$developDir
}

View File

@@ -0,0 +1,113 @@
The system as a whole and most of the files in it are distributed
under the following copyright and conditions
The Festival Speech Synthesis System
Centre for Speech Technology Research
University of Edinburgh, UK
Copyright (c) 1996-2014
All Rights Reserved.
Permission is hereby granted, free of charge, to use and distribute
this software and its documentation without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of this work, and to
permit persons to whom this work is furnished to do so, subject to
the following conditions:
1. The code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Any modifications must be clearly marked as such.
3. Original authors' names are not deleted.
4. The authors' names are not used to endorse or promote products
derived from this software without specific prior written
permission.
THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
Some further comments:
Every effort has been made to ensure that Festival does not contain
any violation of intellectual property rights through disclosure of
trade secrets, copyright or patent violation. Considerable time and
effort has been spent to ensure that this is the case. However,
especially with patent problems, it is not always within our control
to know what has or has not been restricted. If you do suspect that
some part of Festival cannot be legally distributed please inform us
so that an alternative may be sought. Festival is only useful if it
is truly free to distribute.
As of 1.4.0 the core distribution (and speech tools) is free. Unlike
previous versions which had a commercial restriction. You are free to
incorporate Festival in commercial (and of course non-commercial
systems), without any further communication or licence from us.
However if you are seriously using Festival within a commercial
application we would like to know, both so we know we are contributing
and so we can keep you informed of future developments. Also if you
require maintenance, support or wish us to provide consultancy feel
free to contact us.
The voices however aren't all free. At present the US voices, kal and
ked are free. Our British voices are free themselves but they use OALD
which is restricted for non-commercial use. Our Spanish voice is also
so restricted.
Note other modules that festival supports e.g MBROLA and OGI
extensions, may have different licencing please take care when using
the system to understand what you are actually using.
--------------------------------------------------
A number of individual files in the system fall under a different
copyright from the above. All however are termed "free software"
but most people.
./src/arch/festival/tcl.c
* Copyright (C)1997 Jacques H. de Villiers <jacques@cse.ogi.edu>
* Copyright (C)1997 Center for Spoken Language Understanding,
* Oregon Graduate Institute of Science & Technology
See conditions in file. This is the standard TCL licence and hence
shouldn't cause problems from most people.
./examples/festival_client.pl
# Copyright (C) 1997
# Kevin A. Lenzo (lenzo@cs.cmu.edu) 7/97
See condition in file
./src/modules/clunits/*
./lib/*clunits*
Joint copyright University of Edinburgh and Carnegie Mellon University
Conditions remain as free software like the rest of distribution
./src/modules/clustergen/*
Copyright Carnegie Mellon University
Nagoya Insitute of Technology (derived code from HTS)
HTS_vocoder_me.c HTS_vocoder_me.h
contains additions from Aby Louw
Copyright (c) 2012 The Department of Arts and Culture,
The Government of the Republic of South Africa.
under a free software licence compatible with the other
free software copyrights in this work
./src/modules/hts_engine/*
./lib/hts.scm
The HMM-based speech synthesis system (HTS)
hts_engine API version 1.07 (http://hts-engine.sourceforge.net/)
Copyright (C) 2001-2012 Nagoya Institute of Technology
2001-2008 Tokyo Institute of Technology
All rights reserved.
distributed under the Modified BSD licence.
./lib/festival.el
;;; Copyright (C) Alan W Black 1996
copyright under FSF General Public Licence
Please also read the COPYING section of speech_tools/README for the
conditions on those files.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,119 @@
SUMMARY="A light-weight text-to-speech engine"
DESCRIPTION="Flite is a text-to-speech engine developed by the Carnegie \
Mellon University. As a light-weight alternative to the Festival engine, it \
is desinged to fit into small embedded machines as well as large-scale \
servers. In addition to its native format flite supports voices generated by \
the FestVox project as well.
"
HOMEPAGE="http://www.festvox.org/flite/"
SRC_URI="http://www.festvox.org/flite/packed/flite-2.0/flite-${portVersion}-release.tar.bz2"
CHECKSUM_SHA256="678c3860fd539402b5d1699b921239072af6acb4e72dc4720494112807cae411"
SOURCE_DIR="flite-${portVersion}-release"
REVISION="1"
# Although individually many files have different licenses, as a whole this
# license covers all the files.
LICENSE="
Flite
"
COPYRIGHT="
1986 University of Toronto
1992, 1995 Markus Mummert
1996-2004 University of Edinburgh, UK
1999-2014 Language Technologies Institute, Carnegie Mellon University
2001 Cepstral, LLC
2001 Sun Microsystems, Inc.
2003-2004 Nagoya Institute of Technology
2003-2004 Nara Institute of Science and Technology
2008-2012 University of Illinois at Urbana-Champaign
"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
EXTRA_CMD="
cmu_time_awb
cmu_us_awb
cmu_us_kal
cmu_us_kal16
cmu_us_rms
cmu_us_slt
"
EXTRA_LIBS="
cmu_grapheme_lang
cmu_grapheme_lex
cmu_indic_lang
cmu_indic_lex
$EXTRA_CMD
cmulex
usenglish
"
PROVIDES="
flite$secondaryArchSuffix = $portVersion
lib:libflite$secondaryArchSuffix = $portVersion compat >= 2
flite_tools = $portVersion
cmd:flite$secondaryArchSuffix = $portVersion
cmd:flite_time$secondaryArchSuffix = $portVersion
"
DEVEL_LIBS="libflite"
for c in $EXTRA_CMD; do
PROVIDES="
$PROVIDES
cmd:flite_${c} = $portVersion
"
done
PROVIDES_devel="
flite${secondaryArchSuffix}_devel = $portVersion
devel:libflite$secondaryArchSuffix = $portVersion compat >= 2
"
for l in $EXTRA_LIBS; do
PROVIDES="
$PROVIDES
lib:libflite_${l}${secondaryArchSuffix} = $portVersion compat >= 2
"
PROVIDES_devel="
$PROVIDES_devel
devel:libflite_${l}${secondaryArchSuffix} = $portVersion compat >= 2
"
DEVEL_LIBS="
$DEVEL_LIBS
libflite_${l}
"
done
REQUIRES="
haiku$secondaryArchSuffix
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
flite$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:awk
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:mkdepend
"
PATCHES="flite-${portVersion}.patchset"
BUILD()
{
autoconf
runConfigure ./configure \
--enable-shared
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs \
$DEVEL_LIBS
packageEntries devel \
$developDir
}

View File

@@ -0,0 +1,206 @@
Flite is free software.
We have kept the core code to BSD-like copyright, thus the system is
free to use in commercial products, with commercial extensions. GPL
code is only included as part of the build process and does not
taint any of the run-time code.
As a collection it is distributed under the following license. Note
a few files in this distribution have a different but equally free
non-conflicting licence, see below.
Language Technologies Institute
Carnegie Mellon University
Copyright (c) 1999-2014
All Rights Reserved.
Permission is hereby granted, free of charge, to use and distribute
this software and its documentation without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of this work, and to
permit persons to whom this work is furnished to do so, subject to
the following conditions:
1. The code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Any modifications must be clearly marked as such.
3. Original authors' names are not deleted.
4. The authors' names are not used to endorse or promote products
derived from this software without specific prior written
permission.
CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
All files within this distribution have the above license except
the following
src/cg/cst_mlpg.h
src/cg/cst_mlpg.c
src/cg/cst_mlsa.h
src/cg/cst_mlsa.c
src/cg/cst_vc.h
src/cg/cst_vc.c
/*********************************************************************/
/* */
/* Nagoya Institute of Technology, Aichi, Japan, */
/* Nara Institute of Science and Technology, Nara, Japan */
/* and */
/* Carnegie Mellon University, Pittsburgh, PA */
/* Copyright (c) 2003-2004 */
/* All Rights Reserved. */
/* */
/* Permission is hereby granted, free of charge, to use and */
/* distribute this software and its documentation without */
/* restriction, including without limitation the rights to use, */
/* copy, modify, merge, publish, distribute, sublicense, and/or */
/* sell copies of this work, and to permit persons to whom this */
/* work is furnished to do so, subject to the following conditions: */
/* */
/* 1. The code must retain the above copyright notice, this list */
/* of conditions and the following disclaimer. */
/* 2. Any modifications must be clearly marked as such. */
/* 3. Original authors' names are not deleted. */
/* */
/* NAGOYA INSTITUTE OF TECHNOLOGY, NARA INSTITUTE OF SCIENCE AND */
/* TECHNOLOGY, CARNEGIE MELLON UNIVERSITY, AND THE CONTRIBUTORS TO */
/* THIS WORK DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, */
/* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, */
/* IN NO EVENT SHALL NAGOYA INSTITUTE OF TECHNOLOGY, NARA */
/* INSTITUTE OF SCIENCE AND TECHNOLOGY, CARNEGIE MELLON UNIVERSITY, */
/* NOR THE CONTRIBUTORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR */
/* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM */
/* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, */
/* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN */
/* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */
/* */
/*********************************************************************/
These functions are derived from the versions in festvox/src/vc/ as
modified by Tomoki Toda which in turn contain code derived from
NITECH's HTS system. Their copyright has the same freedoms as
as Flite's but under NAIST, NITECH and/or CMU.
src/audio/au_wince.c
src/utils/cst_file_stdio.c
src/utils/cst_mmap_posix.c
src/utils/cst_mmap_win32.c
src/utils/cst_mmap_none.c
src/utils/cst_file_wince.c
sapi/
are copyright Cepstral, LLC rather than CMU but fall under the same
free licence as the above, except for the owner. (Note the SAPI stuff
probably doesn't work any more)
doc/alice
Is the first two chapters of Alice in Wonderland as distributed by the
Gutenburg project and is now in the public domain
src/regex/regexp.c
src/regex/regsub.c
* Copyright (c) 1986 by University of Toronto.
* Written by Henry Spencer. Not derived from licensed software.
*
* Permission is granted to anyone to use this software for any
* purpose on any computer system, and to redistribute it freely,
* subject to the following restrictions:
*
* 1. The author is not responsible for the consequences of use of
* this software, no matter how awful, even if they arise
* from defects in it.
*
* 2. The origin of this software must not be misrepresented, either
* by explicit claim or by omission.
*
* 3. Altered versions must be plainly marked as such, and must not
* be misrepresented as being the original software.
src/speech/rateconv.c
* Copyright (c) 1992, 1995 by Markus Mummert
*
* Redistribution and use of this software, modifcation and inclusion
* into other forms of software are permitted provided that the following
* conditions are met:
*
* 1. Redistributions of this software must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. If this software is redistributed in a modified condition
* it must reveal clearly that it has been modified.
lang/usenglish/us_durz_cart.c
lang/usenglish/us_durz_cart.h
lang/usenglish/us_int_accent_cart.c
lang/usenglish/us_int_accent_cart.h
lang/usenglish/us_int_tone_cart.c
lang/usenglish/us_int_tone_cart.h
lang/usenglish/us_phoneset.c
lang/usenglish/us_f0lr.c
These are directly (or indirectly) compiled/derived from files that are
part of the Festival Speech Synthesis System (1.4.1). Hence they have
a joint copyright CMU/Edinburgh but with the same free licence
configure
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
configure.sub
config.guess
missing
install-sh
mkinstalldirs
Copyright FSF, and under the GPL, these files are only used for
convenient configuration and are not part of the generated binary,
and therefore do not impose any GPL restrctions on the rest of the
system. But as they are standard methods for configuration they
are included.
src/speech/g72x.h
src/speech/g721.c
src/speech/g72x.c
src/speech/g723_24.c
src/speech/g723_40.c
/*
* This source code is a product of Sun Microsystems, Inc. and is provided
* for unrestricted use. Users may copy or modify this source code without
* charge.
*
* SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING
* THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
*
* Sun source code is provided with no support and without any obligation on
* the part of Sun Microsystems, Inc. to assist in its use, correction,
* modification or enhancement.
*
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE
* OR ANY PART THEREOF.
*
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
* or profits or other special, indirect and consequential damages, even if
* Sun has been advised of the possibility of such damages.
*
* Sun Microsystems, Inc.
* 2550 Garcia Avenue
* Mountain View, California 94043
*/
lang/cmu_grapheme_lex/grapheme_unitran_tables.c
/* Copyright 2008-2012, University of Illinois at Urbana-Champaign */
/* distributed under the Apache License, Version (2.0) */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* Original table developed by Richard Sproat and Kyoung-young Kim */
/* Ported for Festvox by Gopala Anumachipalli gopalakr@cs.cmu.edu Sep 2012 */
/* Then converted to C for CMU Flite (cmuflite.org) */

View File

@@ -0,0 +1,102 @@
From b21c80cf33debb37b6638ab2be8d188c5a14eafb Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Wed, 24 Dec 2014 22:37:15 +0000
Subject: Support shared libraries on Haiku
diff --git a/configure.in b/configure.in
index 972d818..c2472a6 100644
--- a/configure.in
+++ b/configure.in
@@ -265,6 +265,10 @@ fi
if test "$shared" = true; then
case "$target_os" in
+ haiku*)
+ SHFLAGS="-fPIC"
+ OTHERLIBS="-lnetwork"
+ ;;
linux*|k*bsd*-gnu|gnu*)
SHFLAGS="-fPIC"
;;
--
1.8.3.4
From 95e4aff793bbef466ed151897d71585bcb7e0321 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Wed, 24 Dec 2014 22:38:03 +0000
Subject: Do not unconditionally add `-lm` to linking commands
TODO: make this more platform-independent.
diff --git a/config/common_make_rules b/config/common_make_rules
index 7a03785..0dacbb6 100644
--- a/config/common_make_rules
+++ b/config/common_make_rules
@@ -68,7 +68,7 @@ BUILDDIRS=$(OBJDIR) $(BINDIR) $(LIBDIR)
FLITELIBS = $(BUILDDIR)/lib/libflite.a
FLITELIBFLAGS = -L$(BUILDDIR)/lib -lflite
-LDFLAGS += -lm $(AUDIOLIBS) $(OTHERLIBS)
+LDFLAGS += $(AUDIOLIBS) $(OTHERLIBS)
FULLOBJS = $(OBJS:%=$(OBJDIR)/%)
ifdef SHFLAGS
--
1.8.3.4
From 96416a919c8ea1fcafd457502ee2bc6fd3ef107f Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Wed, 24 Dec 2014 22:39:36 +0000
Subject: cmu_indic_lex: Separate code and declaration
diff --git a/lang/cmu_indic_lex/cmu_indic_lex.c b/lang/cmu_indic_lex/cmu_indic_lex.c
index 3c586cb..ee682d6 100644
--- a/lang/cmu_indic_lex/cmu_indic_lex.c
+++ b/lang/cmu_indic_lex/cmu_indic_lex.c
@@ -334,6 +334,9 @@ cst_val *cmu_indic_lex_ord_to_phones(const cst_val *ords,
int cur_char_type = 0;
int next_char_type = 0;
+ const cst_val *v, *vx;
+ cst_val *ph;
+
// Ignore chars (filter)
in_ords = cmu_indic_lex_remove_ignore_chars(ords);
@@ -431,8 +434,6 @@ cst_val *cmu_indic_lex_ord_to_phones(const cst_val *ords,
}
}
- const cst_val *v, *vx;
- cst_val *ph;
for(v=out_phone_strings; v; v=val_cdr(v)) {
ph = val_readlist_string(val_string(val_car(v)));
for(vx=ph; vx; vx=val_cdr(vx)) {
--
1.8.3.4
From 8b998ca76f21a8bb7cf240fd7ed40627eafbc2d8 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Wed, 24 Dec 2014 23:44:02 +0000
Subject: Bump shlib version to libflite.so.2
This way it is consistent with libflite.so.2.0.0
diff --git a/config/project.mak b/config/project.mak
index f42ee12..252f22a 100644
--- a/config/project.mak
+++ b/config/project.mak
@@ -40,4 +40,4 @@ PROJECT_VERSION = 2.0.0
PROJECT_DATE = Dec 2014
PROJECT_STATE = release
-PROJECT_SHLIB_VERSION = 1
+PROJECT_SHLIB_VERSION = 2
--
1.8.3.4

View File

@@ -0,0 +1,70 @@
Centre for Speech Technology Research
University of Edinburgh, UK
Copyright (c) 1994-2014
All Rights Reserved.
Permission is hereby granted, free of charge, to use and distribute
this software and its documentation without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of this work, and to
permit persons to whom this work is furnished to do so, subject to
the following conditions:
1. The code must retain the above copyright notice, this list of
conditions and the following disclaimer.
2. Any modifications must be clearly marked as such.
3. Original authors' names are not deleted.
4. The authors' names are not used to endorse or promote products
derived from this software without specific prior written
permission.
THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT
SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
COPYING
------------------------------------------------------------------------
Some files in the distribution do not fall under the above copyright.
However none have any commercial restrictions, and no files fall under
the GPL. Specifically files that have different licences are as
follows:
grammar/wfst/wfst_train.cc
Copyright Carnegie Mellon University (under the same
open licences as much of the rest of the code).
siod/
include/siod*.h
lib/siod/siod.scm
Apart from some new functionality under our licence the SIOD
files fall under the licence given in siod/slib.cc copyright
Paradigm Associates. This code has been substantially modified
by us though our changes are under that licence.
editline.c editline.h el_complete.c el_sysunix.c el_unix.h
are copyright 1992 Simmule Turner and Rich Salz under the
"BSD like" licence in siod/editline.c Again substantial
changes have been made by us which continue to be under that
licence
rxp/
include/rxp/
Is Copyright Richard Tobin. We have a specific version of RXP
which allows free (including non-commercial) use.
base_class/raveconv.cc
Is copyright 1992, 1995 by Markus Mummert
base_class/string/reg*.{c,cc}
Copyright (c) 1986 by University of Toronto.
base_class/string/EST_strcasecmp.c
Copyright (c) 1987, 1993
The Regents of the University of California. All rights reserved.
The 3-clause BSD licence

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,168 @@
SUMMARY="Edinburgh speech tools library"
SUMMARY_tools="Edinburgh Speech Tools"
DESCRIPTION="The Edinburgh speech tools library is a collection of C++ classes \
that aide in developing machine-synthesized voices. Developed by the University \
of Edinburgh, it is used in Festival, a text-to-speech engine developed by \
the University of Edinburgh as well.
"
HOMEPAGE="http://www.cstr.ed.ac.uk/projects/speech_tools/"
SRC_URI="http://www.festvox.org/packed/festival/${portVersion}/speech_tools-${portVersion}-release.tar.gz"
CHECKSUM_SHA256="fbc2482c443919aa79d2e599d6a5faee4e793df55a79ef377f1dc7e8ba237010"
SOURCE_DIR="speech_tools"
REVISION="2"
# Although individually many files have different licenses, as a whole this
# license covers all the files.
LICENSE="
Edinburgh Speech Tools
"
COPYRIGHT="
1986 University of Toronto
1987, 1993 The Regents of the University of California
1992, 1995 Markus Mummert
1992 Rich Salz
1992 Simmule Turner
1994-2014 University of Edinburgh, UK
1997-1998 Richard Tobin
1999-2003 Language Technologies Institute, Carnegie Mellon University
"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86 !x86_gcc2"
PROVIDES="
speech_tools$secondaryArchSuffix = $portVersion
lib:libestbase$secondaryArchSuffix = $portVersion compat >= 2
lib:libestools$secondaryArchSuffix = $portVersion compat >= 2
lib:libeststring$secondaryArchSuffix = $portVersion compat >= 2
"
PROVIDES_devel="
speech_tools${secondaryArchSuffix}_devel = $portVersion
devel:libestbase$secondaryArchSuffix = $portVersion compat >= 2
devel:libestools$secondaryArchSuffix = $portVersion compat >= 2
devel:libeststring$secondaryArchSuffix = $portVersion compat >= 2
"
PROGS=" bcat ch_lab ch_track ch_utt ch_wave design_filter dp \
na_play na_record ngram_build ngram_test ols \
ols_test pda pitchmark scfg_make \
scfg_parse scfg_test scfg_train sig2fv sigfilter spectgen \
tilt_analysis tilt_synthesis viterbi wagon wagon_test \
wfst_build wfst_run wfst_train xml_parser
"
SCRIPTS="
make_wagon_desc
raw_to_xgraph
resynth
"
PROVIDES_tools="
speech_tools${secondaryArchSuffix}_tools = $portVersion
cmd:simple_pitchmark = $portVersion
"
for p in $PROGS $SCRIPTS; do
PROVIDES_tools="
$PROVIDES_tools
cmd:$p = $portVersion
"
done
REQUIRES="
haiku$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
speech_tools$secondaryArchSuffix == $portVersion base
devel:libncurses$secondaryArchSuffix
"
REQUIRES_tools="
haiku$secondaryArchSuffix
speech_tools$secondaryArchSuffix == $portVersion base
cmd:perl
lib:libgcc_s$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:mkdepend
"
PATCHES="speech_tools-${portVersion}.patchset"
BUILD()
{
runConfigure ./configure
# There are some problems with concurrency.
make
}
INSTALL()
{
cmdBinDir=$prefix/bin
mkdir -p $cmdBinDir
(cd main && cp $PROGS $cmdBinDir)
for s in $SCRIPTS; do
sed 's,__PERL__,/bin/perl,g' <scripts/${s}.* >$cmdBinDir/$s
chmod +x $cmdBinDir/$s
done
sed 's,__PERL__,/bin/perl,g' \
<scripts/pm.prl \
>$cmdBinDir/simple-pitchmark
chmod +x $cmdBinDir/simple-pitchmark
mkdir -p $libDir
# Install everything to lib/ and let prepareInstalledDevelLibs handle
# devel libs, etc.
cp lib/*.a lib/*.so lib/*.so.* $libDir
# Installs possibly internal headers as well, as debian installs them
includeDir=$includeDir/speech_tools
mkdir -p $includeDir/
cp -a include/* $includeDir/
rm -rf $includeDir/Makefile \
$includeDir/*/Makefile \
$includeDir/win32
cp -a base_class/*.h $includeDir/
mkdir -p $includeDir/base_class/
cp -a base_class/*.cc $includeDir/base_class/
# Install configurations as festival need them. Yes it's ugly but it's
# the only way to do it. (Debian does this too.)
privDir=$developLibDir/$portName
mkdir -p $privDir/lib/siod
cp -a make.include config $privDir
cp -a lib/siod/*.scm $privDir/lib/siod
prepareInstalledDevelLibs \
libestbase \
libestools \
libeststring
# Evil linking for Festival
for i in $developLibDir/libest*.a \
$developLibDir/libest*.so; do
ln -s "$i" "$privDir/lib/`basename $i`"
done
ln -s "$includeDir" "$privDir/include"
packageEntries devel \
$developDir
packageEntries tools \
$cmdBinDir
}

View File

@@ -11,7 +11,7 @@ COPYRIGHT="2000-2011 Stuart Caie"
SRC_URI="http://www.cabextract.org.uk/cabextract-1.4.tar.gz"
CHECKSUM_SHA256="f7ba8ba2c2d71912846eaaa2bed9200a7722ef0addeec32db7471c350a48e41e"
REVISION="1"
ARCHITECTURES="x86 ?x86_gcc2 ?x86_64"
ARCHITECTURES="x86 x86_gcc2 x86_64"
PROVIDES="
cabextract = $portVersion
@@ -29,6 +29,9 @@ BUILD_REQUIRES="
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
cmd:awk
cmd:sed
cmd:grep
"
BUILD()

View File

@@ -7,7 +7,7 @@ HOMEPAGE="http://www.gzip.org/"
SRC_URI="https://ftp.gnu.org/gnu/gzip/gzip-1.6.tar.xz"
CHECKSUM_SHA256="37dfed1a485d53212c43b3fa2a7c7952f09bf5cd86e37121c222341ee1b27847"
SOURCE_DIR="$portVersionedName"
REVISION="1"
REVISION="2"
LICENSE="GNU GPL v3"
COPYRIGHT="1992-1993 Jean-loup Gailly
1999-2013 Free Software Foundation, Inc."
@@ -45,6 +45,8 @@ BUILD_PREREQUIRES="
cmd:awk
"
PATCHES="${portVersionedName}.patchset"
BUILD()
{
export CFLAGS="-Wno-error"

View File

@@ -0,0 +1,25 @@
From 39ee8c0d94879bde10822f2b95caedde3d6842fb Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Tue, 16 Dec 2014 21:50:24 +0000
Subject: [PATCH] gzexe: Fallback on file copying for backup
BFS doesn't support hard links.
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
diff --git a/gzexe.in b/gzexe.in
index e458563..45e1900 100644
--- a/gzexe.in
+++ b/gzexe.in
@@ -218,7 +218,7 @@ EOF
echo >&2 "$0: $tmp: cannot chmod"
continue
}
- ln -f "$file" "$file~" || {
+ ln -f "$file" "$file~" || cp -f "$file" "${file}~" || {
res=$?
echo >&2 "$0: cannot backup $i as $i~"
continue
--
1.8.3.4

View File

@@ -0,0 +1 @@
"application/x-lzx" .lzx "unlzx -v %s" "unlzx %s"

View File

@@ -0,0 +1,41 @@
SUMMARY="Decompresses LZX archives on multiple platforms"
DESCRIPTION="LZX is the name of an LZ77 family compression algorithm invented \
by Johnathon Forbes and Tomi Poutanen. unlzx is a program designed to extract \
these archives."
HOMEPAGE="http://aminet.net/package/misc/unix/unlzx.c.gz"
SRC_URI="git+https://github.com/tweakdeveloper/unlzx.git#36a85e7"
ADDITIONAL_FILES="unlzx-expander-rules"
REVISION="3"
LICENSE="Public Domain"
COPYRIGHT="2001 Erik Meusel"
ARCHITECTURES="x86_gcc2 x86"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
cmd:gcc
cmd:strip
"
PROVIDES="
unlzx = $portVersion
cmd:unlzx
"
BUILD()
{
gcc unlzx.c -o unlzx
strip unlzx
}
INSTALL()
{
expanderRulesDir=$dataDir/expander/rules
mkdir -p $binDir $expanderRulesDir
cp unlzx $binDir
cp $portDir/additional-files/unlzx-expander-rules $expanderRulesDir
}

View File

@@ -4,7 +4,7 @@ a high compression ratio. They are the successors to LZMA Utils.
"
HOMEPAGE="http://tukaani.org/xz/"
SRC_URI="http://tukaani.org/xz/xz-$portVersion.tar.bz2"
CHECKSUM_SHA256="e8851dc749df2340dac6c9297cb2653eff684e73c3dedf690930119502edd616"
CHECKSUM_SHA256="2286f9d90bb0a0de34cba990df1b10cfad0777f00cb2883def26b8ec1b326bda"
SOURCE_DIR="xz-$portVersion"
LICENSE="GNU LGPL v2.1
GNU GPL v2

View File

@@ -0,0 +1,85 @@
SUMMARY="A tool to make and restore backups over a network"
DESCRIPTION="Burp aims to be a better Bacula and is a network backup and \
restore software. It relies on librsync for compression of network \
communication and of the backups itself. Burp provides both a client and a \
server and supports Windows's Volume Shadow Copy Services."
HOMEPAGE="http://burp.grke.org"
SRC_URI="http://sourceforge.net/projects/burp/files/burp-1.4.28/burp-1.4.28.tar.bz2"
CHECKSUM_SHA256="01c41c07805ebe8c882d7cb9f294e779b6decbe2eb2c81fd65d8fb2b174e18f0"
REVISION="1"
SOURCE_DIR="burp"
ARCHITECTURES="x86_gcc2 ?x86 ?ppc"
LICENSE="GNU AGPL v3"
COPYRIGHT="
2011-2014 Graham Keeling
2005-2010 Troy D. Hanson
"
REQUIRES="
haiku
lib:libssl
lib:libz
lib:librsync
lib:libncurses
lib:libpopt
"
BUILD_REQUIRES="
haiku_devel
devel:libssl
devel:libz
devel:librsync
devel:libncurses
devel:libpopt
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
cmd:gawk
cmd:sed
"
PROVIDES="
burp = $portVersion
cmd:burp_ca
cmd:burp
cmd:bedup
cmd:vss_strip
"
PATCHES="
burp-1.4.28.patchset
"
GLOBAL_WRITABLE_FILES="
settings/burp/CA.cnf auto-merge
settings/burp/autoupgrade/server/win32/script auto-merge
settings/burp/autoupgrade/server/win64/script auto-merge
settings/burp/burp-server.conf auto-merge
settings/burp/burp.conf auto-merge
settings/burp/clientconfdir/incexc/example auto-merge
settings/burp/clientconfdir/testclient auto-merge
settings/burp/notify_script auto-merge
settings/burp/ssl_extra_checks_script auto-merge
settings/burp/summary_script auto-merge
settings/burp/timer_script auto-merge
"
BUILD()
{
runConfigure --omit-dirs sysconfdir\
./configure --sysconfdir $settingsDir/burp
make $jobArgs
}
escapedSharedStateDir=$(echo $sharedStateDir | sed -e 's/\//\\\//g')
INSTALL()
{
sed -i "s/\$(DESTDIR)\/var\//$escapedSharedStateDir\//g" Makefile
make install
}

View File

@@ -0,0 +1,662 @@
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<http://www.gnu.org/licenses/>.

View File

@@ -0,0 +1,55 @@
From f13db3e8ee38ea212dd1d7502d0604726021f44f Mon Sep 17 00:00:00 2001
From: Markus Himmel <markus@himmel-villmar.de>
Date: Fri, 26 Dec 2014 00:07:56 +0000
Subject: [PATCH] Update to the interface of librsync v.1.0.0
Librsync has moved away from MD4 for signatures, but to maintain
compatibility with non-Haiku versions, we hang on to it.
---
src/backup_phase2_server.c | 2 +-
src/backup_phase4_server.c | 2 +-
src/rs_buf.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backup_phase2_server.c b/src/backup_phase2_server.c
index 6e78515..747a369 100644
--- a/src/backup_phase2_server.c
+++ b/src/backup_phase2_server.c
@@ -483,7 +483,7 @@ static int process_changed_file(struct sbuf *cb, struct sbuf *p1b, const char *c
free(curpath);
blocklen=get_librsync_block_len(cb->endfile);
- if(!(p1b->sigjob=rs_sig_begin(blocklen, RS_DEFAULT_STRONG_LEN)))
+ if(!(p1b->sigjob=rs_sig_begin(blocklen, 8, RS_MD4_SIG_MAGIC)))
{
logp("could not start signature job.\n");
return -1;
diff --git a/src/backup_phase4_server.c b/src/backup_phase4_server.c
index ead92b3..f1b5a84 100644
--- a/src/backup_phase4_server.c
+++ b/src/backup_phase4_server.c
@@ -38,7 +38,7 @@ static int make_rev_sig(const char *dst, const char *sig, const char *endfile, i
}
result=rs_sig_gzfile(dstfp, dstzp, sigp,
get_librsync_block_len(endfile),
- RS_DEFAULT_STRONG_LEN, NULL, cntr);
+ 8, NULL, cntr);
gzclose_fp(&dstzp);
close_fp(&dstfp);
if(close_fp(&sigp))
diff --git a/src/rs_buf.c b/src/rs_buf.c
index 78f65b2..0a3c33a 100644
--- a/src/rs_buf.c
+++ b/src/rs_buf.c
@@ -497,7 +497,7 @@ rs_result rs_sig_gzfile(FILE *old_file, gzFile old_zfile, FILE *sig_file, size_t
rs_job_t *job;
rs_result r;
- job = rs_sig_begin(new_block_len, strong_len);
+ job = rs_sig_begin(new_block_len, strong_len, RS_MD4_SIG_MAGIC);
r = rs_whole_gzrun(job, old_file, old_zfile, sig_file, NULL, cntr);
/*
if (stats)
--
1.8.3.4

View File

@@ -1,22 +1,55 @@
DESCRIPTION="Filesystem benchmarking program"
HOMEPAGE="http://www.iozone.org/"
SRC_URI="http://www.iozone.org/src/current/iozone3_326.tar"
CHECKSUM_MD5="e80f06da89d314f7fc08fcef4046d367"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd iozone3_326/src/current/
make haiku
}
INSTALL()
{
cd iozone3_326/src/current/
mkdir -p ${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`
cp iozone ${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`/iozone
cp fileop ${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`/fileop
}
SUMMARY="Filesystem benchmarking program"
DESCRIPTION="Filesystem benchmarking program"
#NOTE: The author retains the exclusive right to publish derivative works based on this work, including, but not limited to, revised versions of this work.
LICENSE="iozone"
COPYRIGHT="1991-2001, William D. Norcott
2010, Don Capps"
HOMEPAGE="http://www.iozone.org/"
SRC_URI="http://www.iozone.org/src/current/iozone3_326.tar"
CHECKSUM_SHA256="bc0a40b2cc7f2e8c6dcfbbff82f1df82ad735f02c9a7db59f8364b76f43f7063"
SOURCE_DIR="iozone3_326"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
PATCHES="iozone-3.326.patch"
PROVIDES="
cmd:iozone = $portVersion
cmd:fileop = $portVersion
iozone = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
cmd:make
cmd:cc
"
BUILD_PREREQUIRES="
haiku_devel
"
BUILD()
{
cd src/current/
make haiku
}
INSTALL()
{
cd src/current/
cp iozone $binDir
cp fileop $binDir
mkdir -p $manDir/man1
cp ../../docs/iozone.1 $manDir/man1
}

View File

@@ -0,0 +1,84 @@
SUMMARY="A simple thesaurus"
DESCRIPTION="MyThes is a simple thesaurus that used a structured text \
data file and an index file with binary search to lookup words \
and phrases and return information on part of speech, \
meanings, and synonyms.
- written in C++ to make it easier to interface with \
LibreOffice, OpenOffice, AbiWord, Pspell, etc
- it is stateless, uses no static variables and \
should be completely reentrant with no ifdefs
- it compiles with -ansi and -pedantic and -Wall \
with no warnigns so it shouldbe quite portable
- it uses a simple perl program to read the structured \
text file and create the index needed for binary \
searching
- it is very simple with *lots* of comments. \
The main "smarts" are in the structure of the \
text file that makes up the thesaurus data
- It comes with a ready-to-go structured thesaurus \
data file for en_US extracted from the WordNet-2.0 data.
- Please see WordNet_license.txt and WordNet_readme.txt \
for more information on the very useful project!
- See http://www.danielnaber.de/wn2ooo/ for utilities to \
regenerate an up to date English thesaurus from the most \
recent WordNet data."
HOMEPAGE="http://sourceforge.net/projects/hunspell/files/MyThes/1.2.4"
SRC_URI="http://prdownloads.sf.net/hunspell/mythes-1.2.4.tar.gz"
CHECKSUM_SHA256="1e81f395d8c851c3e4e75b568e20fa2fa549354e75ab397f9de4b0e0790a305f"
COPYRIGHT="1994 - 2009 Free Software Foundation, Inc."
LICENSE="BSD (2-clause)"
REVISION="1"
PROVIDES="
mythes$secondaryArchSuffix = $portVersion
cmd:mythes = $portVersion
cmd:th_gen_idx.pl
lib:libmythes_1.2$secondaryArchSuffix = $portVersion
"
PROVIDES_devel="
devel:libmythes_1.2$secondaryArchSuffix = $portVersion
mythes${secondaryArchSuffix}_devel = $portVersion
"
ARCHITECTURES="x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
REQUIRES="
haiku$secondaryArchSuffix
lib:libhunspell_1.3$secondaryArchSuffix
cmd:perl
"
REQUIRES_devel="
mythes$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
devel:libhunspell_1.3$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:awk
haiku${secondaryArchSuffix}_devel
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs \
libmythes-1.2
packageEntries devel \
$developDir
}

View File

@@ -1,70 +0,0 @@
SUMMARY="Generate documentation from source code"
DESCRIPTION="
Doxygen is the de facto standard tool for generating documentation from \
annotated C++ sources, but it also supports other popular programming \
languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba and \
Microsoft flavors), Fortran, VHDL, Tcl, and to some extent D.
Doxygen can help you in three ways:
1. It can generate an on-line documentation browser (in HTML) and/or an \
off-line reference manual (in $\mbox{\LaTeX}$) from a set of documented source \
files. There is also support for generating output in RTF (MS-Word), \
PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \
documentation is extracted directly from the sources, which makes it much \
easier to keep the documentation consistent with the source code.
2. You can configure doxygen to extract the code structure from undocumented \
source files. This is very useful to quickly find your way in large source \
distributions. Doxygen can also visualize the relations between the various \
elements by means of include dependency graphs, inheritance diagrams, and \
collaboration diagrams, which are all generated automatically.
3. You can also use doxygen for creating normal documentation (as I did for \
the doxygen user manual and web-site).
"
HOMEPAGE="http://www.doxygen.org"
COPYRIGHT="1997-2010 Dimitri van Heesch"
LICENSE="GNU GPL v2"
SRC_URI="http://ftp.stack.nl/pub/users/dimitri/doxygen-1.6.3.src.tar.gz"
CHECKSUM_SHA256="a3a6524b5fc1da084fd0e081507c99240abaffff85f76ef7b15c9fb3ae248492"
REVISION="4"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="doxygen-1.6.3.patchset"
PROVIDES="
doxygen = $portVersion compat >= 1.6
cmd:doxygen = $portVersion compat >= 1.6
cmd:doxytag = $portVersion compat >= 1.6
"
REQUIRES="
haiku
lib:libiconv
"
BUILD_REQUIRES="
devel:libiconv
"
BUILD_PREREQUIRES="
haiku_devel
cmd:bison
cmd:flex
cmd:gcc
cmd:ld
cmd:make
cmd:perl
cmd:sed
"
PATCH()
{
sed -i "s,MAN1DIR = man/man1,MAN1DIR = $relativeManDir/man1," Makefile.in
}
BUILD()
{
./configure --prefix $prefix --docdir $docDir
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -1,42 +0,0 @@
SUMMARY="Generate documentation from source code"
DESCRIPTION="
Doxygen is the de facto standard tool for generating documentation from \
annotated C++ sources, but it also supports other popular programming \
languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba and \
Microsoft flavors), Fortran, VHDL, Tcl, and to some extent D.
Doxygen can help you in three ways:
1. It can generate an on-line documentation browser (in HTML) and/or an \
off-line reference manual (in $\mbox{\LaTeX}$) from a set of documented source \
files. There is also support for generating output in RTF (MS-Word), \
PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \
documentation is extracted directly from the sources, which makes it much \
easier to keep the documentation consistent with the source code.
2. You can configure doxygen to extract the code structure from undocumented \
source files. This is very useful to quickly find your way in large source \
distributions. Doxygen can also visualize the relations between the various \
elements by means of include dependency graphs, inheritance diagrams, and \
collaboration diagrams, which are all generated automatically.
3. You can also use doxygen for creating normal documentation (as I did for \
the doxygen user manual and web-site).
"
HOMEPAGE="http://www.doxygen.org"
SRC_URI="http://ftp.stack.nl/pub/users/dimitri/doxygen-1.7.4.src.tar.gz"
CHECKSUM_MD5="ff908759ff7cd9464424b04ae6c68e48"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd doxygen-1.7.4
sed -i 's/MAN1DIR = man\/man1/MAN1DIR = documentation\/man\/man1/' Makefile.in
./configure --prefix `finddir B_COMMON_DIRECTORY`
make
}
INSTALL()
{
cd doxygen-1.7.4
make install
}
LICENSE="GNU GPL v2"
COPYRIGHT="1997-2011 Dimitri van Heesch"

View File

@@ -0,0 +1,66 @@
SUMMARY="Generate documentation from source code"
DESCRIPTION="
Doxygen is the de facto standard tool for generating documentation from \
annotated C++ sources, but it also supports other popular programming \
languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba and \
Microsoft flavors), Fortran, VHDL, Tcl, and to some extent D.
Doxygen can:
* generate an on-line documentation browser (in HTML) and/or an \
off-line reference manual (in LaTeX) from a set of documented source \
files. There is also support for generating output in RTF (MS-Word), \
PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The \
documentation is extracted directly from the sources, which makes it much \
easier to keep the documentation consistent with the source code.
* extract the code structure from undocumented source files. This is \
very useful to quickly find your way in large source distributions. \
Doxygen can also visualize the relations between the various elements \
by means of include dependency graphs, inheritance diagrams, and \
collaboration diagrams, which are all generated automatically."
HOMEPAGE="http://www.doxygen.org"
COPYRIGHT="1997-2011 Dimitri van Heesch"
LICENSE="GNU GPL v2"
SRC_URI="http://ftp.stack.nl/pub/users/dimitri/doxygen-$portVersion.src.tar.gz"
CHECKSUM_SHA256="0e60e794fb172d3fa4a9a9535f0b8e0eeb04e8366153f6b417569af0bcd61fcd"
PATCHES="doxygen-$portVersion.patch"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
doxygen = $portVersion compat >= 1.7
cmd:doxygen = $portVersion compat >= 1.7
cmd:doxytag = $portVersion compat >= 1.7
"
REQUIRES="
haiku
lib:libiconv
"
BUILD_REQUIRES="
devel:libiconv
"
BUILD_PREREQUIRES="
haiku_devel
cmd:bison
cmd:flex
cmd:gcc
cmd:ld
cmd:make
cmd:perl
cmd:sed
"
PATCH()
{
sed -i "s,MAN1DIR = man/man1,MAN1DIR = $relativeManDir/man1," Makefile.in
}
BUILD()
{
# not an autotools configure
./configure --prefix $prefix --docdir $docDir
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -1,177 +0,0 @@
From 9612cfcd716d5924547e90229bd6e3cb51c950e9 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Wed, 21 Aug 2013 12:02:33 +0200
Subject: add support for Haiku
diff --git a/Makefile.in b/Makefile.in
index 781d359..9cd43eb 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -2,7 +2,7 @@
# cd qtools ; $(MAKE)
# cd src ; $(MAKE)
-DESTDIR =
+#DESTDIR =
clean: FORCE
cd examples ; $(MAKE) clean
diff --git a/PLATFORMS b/PLATFORMS
index c358a1d..18c4ed5 100644
--- a/PLATFORMS
+++ b/PLATFORMS
@@ -4,6 +4,7 @@ beos-g++
dgux-g++
freebsd-g++
gnu-g++
+haiku-g++
hpux-acc
hpux-cc
hpux-g++
diff --git a/configure b/configure
index c0db1c6..d631e47 100755
--- a/configure
+++ b/configure
@@ -180,6 +180,9 @@ if test -z "$f_platform"; then
f_insttool=/usr/bin/install
fi
;;
+ Haiku:*)
+ f_platform=haiku-g++
+ ;;
HP-UX:*)
f_platform=hpux-g++
if test "$f_insttool" = NO; then
diff --git a/qtools/qglobal.h b/qtools/qglobal.h
index 700cb80..259446d 100644
--- a/qtools/qglobal.h
+++ b/qtools/qglobal.h
@@ -150,6 +150,8 @@
#define _OS_CYGWIN_
#elif defined(__BEOS__)
#define _OS_BEOS_
+#elif defined(__HAIKU__)
+#define _OS_HAIKU_
#elif defined(__MINT__)
#define _OS_MINT_
#else
diff --git a/src/doxygen.pro.in b/src/doxygen.pro.in
index cc93820..c8a8d50 100644
--- a/src/doxygen.pro.in
+++ b/src/doxygen.pro.in
@@ -19,6 +19,7 @@ CONFIG = console warn_on $extraopts
HEADERS = doxygen.h
SOURCES = main.cpp
unix:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5
+haiku-g++:LIBS += -L/boot/common/lib -liconv
win32:INCLUDEPATH += .
win32-mingw:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5
win32-msvc:LIBS += qtools.lib md5.lib doxygen.lib doxycfg.lib shell32.lib iconv.lib
diff --git a/tmake/lib/haiku-g++/app.t b/tmake/lib/haiku-g++/app.t
new file mode 100644
index 0000000..867725e
--- /dev/null
+++ b/tmake/lib/haiku-g++/app.t
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/app.t");
diff --git a/tmake/lib/haiku-g++/lib.t b/tmake/lib/haiku-g++/lib.t
new file mode 100644
index 0000000..2523b2f
--- /dev/null
+++ b/tmake/lib/haiku-g++/lib.t
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/lib.t");
diff --git a/tmake/lib/haiku-g++/subdirs.t b/tmake/lib/haiku-g++/subdirs.t
new file mode 100644
index 0000000..5e888af
--- /dev/null
+++ b/tmake/lib/haiku-g++/subdirs.t
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/subdirs.t");
diff --git a/tmake/lib/haiku-g++/tmake.conf b/tmake/lib/haiku-g++/tmake.conf
new file mode 100644
index 0000000..23a2738
--- /dev/null
+++ b/tmake/lib/haiku-g++/tmake.conf
@@ -0,0 +1,51 @@
+#
+#
+#
+# tmake configuration for haiku-g++
+#
+
+TEMPLATE = app
+CONFIG = qt warn_on release
+
+TMAKE_CC = gcc
+TMAKE_CFLAGS =
+TMAKE_CFLAGS_WARN_ON = -Wall -W
+TMAKE_CFLAGS_WARN_OFF =
+TMAKE_CFLAGS_RELEASE =
+TMAKE_CFLAGS_DEBUG = -g
+TMAKE_CFLAGS_SHLIB = -fPIC
+TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
+
+TMAKE_CXX = g++
+TMAKE_CXXFLAGS = $$TMAKE_CFLAGS
+TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON
+TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF
+TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE
+TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG
+TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB
+TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC
+
+TMAKE_INCDIR =
+TMAKE_LIBDIR =
+TMAKE_INCDIR_QT = $(QTDIR)/include
+TMAKE_LIBDIR_QT = $(QTDIR)/lib
+
+TMAKE_LINK = g++
+TMAKE_LINK_SHLIB = g++
+TMAKE_LFLAGS = -Wl,-rpath=/lib:$(QTDIR)/lib
+TMAKE_LFLAGS_RELEASE =
+TMAKE_LFLAGS_DEBUG =
+TMAKE_LFLAGS_SHLIB = -shared
+TMAKE_LFLAGS_SONAME = -Wl,-soname,
+
+TMAKE_LIBS =
+TMAKE_LIBS_QT = -lqt
+TMAKE_LIBS_QT_MT = -lqt-mt
+
+TMAKE_MOC = moc
+
+TMAKE_AR = ar cqs
+TMAKE_RANLIB =
+
+TMAKE_TAR = tar -cf
+TMAKE_GZIP = gzip -9f
--
1.8.3.4
From 2e7199416501ace72e5ab2a548cc07ab25ef910e Mon Sep 17 00:00:00 2001
From: Ingo Weinhold <ingo_weinhold@gmx.de>
Date: Wed, 21 Aug 2013 12:21:09 +0200
Subject: qvaluestack.h: fix gcc 4 build
diff --git a/qtools/qvaluestack.h b/qtools/qvaluestack.h
index 3fb61fd..7438fcb 100644
--- a/qtools/qvaluestack.h
+++ b/qtools/qvaluestack.h
@@ -49,7 +49,7 @@ class Q_EXPORT QValueStack : public QValueList<T>
public:
QValueStack() {}
~QValueStack() {}
- void push( const T& d ) { append(d); }
+ void push( const T& d ) { this->append(d); }
T pop()
{
T elem( this->last() );
--
1.8.3.4

View File

@@ -1,158 +0,0 @@
diff -up doxygen-1.7.4/Makefile.in.orig doxygen-1.7.4/Makefile.in
--- doxygen-1.7.4/Makefile.in.orig 2009-08-20 13:41:13.056098816 -0600
+++ doxygen-1.7.4/Makefile.in 2011-05-14 12:14:04.776208384 -0600
@@ -2,7 +2,7 @@
# cd qtools ; $(MAKE)
# cd src ; $(MAKE)
-DESTDIR =
+#DESTDIR =
clean: FORCE
cd examples ; $(MAKE) clean
diff -up doxygen-1.7.4/PLATFORMS.orig doxygen-1.7.4/PLATFORMS
--- doxygen-1.7.4/PLATFORMS.orig 2007-11-24 09:12:35.056360960 -0700
+++ doxygen-1.7.4/PLATFORMS 2011-05-14 12:14:04.777519104 -0600
@@ -4,6 +4,7 @@ beos-g++
dgux-g++
freebsd-g++
gnu-g++
+haiku-g++
hpux-acc
hpux-cc
hpux-g++
diff -up doxygen-1.7.4/configure.orig doxygen-1.7.4/configure
--- doxygen-1.7.4/configure.orig 2011-03-28 07:12:47.055050240 -0600
+++ doxygen-1.7.4/configure 2011-05-14 12:14:04.783548416 -0600
@@ -180,6 +180,9 @@ if test -z "$f_platform"; then
f_insttool=/usr/bin/install
fi
;;
+ Haiku:*)
+ f_platform=haiku-g++
+ ;;
HP-UX:*)
f_platform=hpux-g++
if test "$f_insttool" = NO; then
diff -up doxygen-1.7.4/qtools/qglobal.h.orig doxygen-1.7.4/qtools/qglobal.h
--- doxygen-1.7.4/qtools/qglobal.h.orig 2010-06-09 03:49:13.006553600 -0600
+++ doxygen-1.7.4/qtools/qglobal.h 2011-05-14 12:14:04.784859136 -0600
@@ -150,6 +150,8 @@
#define _OS_CYGWIN_
#elif defined(__BEOS__)
#define _OS_BEOS_
+#elif defined(__HAIKU__)
+#define _OS_HAIKU_
#elif defined(__MINT__)
#define _OS_MINT_
#else
diff -up doxygen-1.7.4/qtools/qthread_unix.cpp.orig doxygen-1.7.4/qtools/qthread_unix.cpp
--- doxygen-1.7.4/qtools/qthread_unix.cpp.orig 2010-05-15 09:48:47.012058624 -0600
+++ doxygen-1.7.4/qtools/qthread_unix.cpp 2011-05-14 12:14:04.785645568 -0600
@@ -123,7 +123,7 @@ void QThread::start()
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_DETACHED);
- pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED);
+ //pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED);
if (d->stackSize>0)
{
#if defined(_POSIX_THREAD_ATTR_STACKSIZE) && (_POSIX_THREAD_ATTR_STACKSIZE-0>0)
diff -up doxygen-1.7.4/src/doxygen.cpp.orig doxygen-1.7.4/src/doxygen.cpp
--- doxygen-1.7.4/src/doxygen.cpp.orig 2011-03-22 15:56:58.029360128 -0600
+++ doxygen-1.7.4/src/doxygen.cpp 2011-05-14 12:14:04.802684928 -0600
@@ -9465,7 +9465,7 @@ void readConfiguration(int argc, char **
{
if (optind+4<argc || QFileInfo("Doxyfile").exists())
{
- QCString df = optind+4<argc ? argv[optind+4] : QCString("Doxyfile");
+ QCString df = optind+4<argc ? (QCString)argv[optind+4] : QCString("Doxyfile");
if (!Config::instance()->parse(df))
{
err("error opening or reading configuration file %s!\n",argv[optind+4]);
diff -up doxygen-1.7.4/src/doxygen.pro.in.orig doxygen-1.7.4/src/doxygen.pro.in
--- doxygen-1.7.4/src/doxygen.pro.in.orig 2011-01-03 13:14:46.046661632 -0700
+++ doxygen-1.7.4/src/doxygen.pro.in 2011-05-14 12:15:50.176947200 -0600
@@ -18,7 +18,8 @@ TEMPLATE = app.t
CONFIG = console warn_on $extraopts
HEADERS = doxygen.h
SOURCES = main.cpp
-unix:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread
+unix:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5
+haiku-g++:LIBS += -L/boot/common/lib -liconv
win32:INCLUDEPATH += .
win32-mingw:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread
win32-msvc:LIBS += qtools.lib md5.lib doxygen.lib doxycfg.lib shell32.lib iconv.lib
diff -up doxygen-1.7.4/tmake/lib/haiku-g++/app.t.orig doxygen-1.7.4/tmake/lib/haiku-g++/app.t
--- doxygen-1.7.4/tmake/lib/haiku-g++/app.t.orig 2011-05-14 12:14:04.823132160 -0600
+++ doxygen-1.7.4/tmake/lib/haiku-g++/app.t 2011-05-14 12:14:04.818937856 -0600
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/app.t");
diff -up doxygen-1.7.4/tmake/lib/haiku-g++/lib.t.orig doxygen-1.7.4/tmake/lib/haiku-g++/lib.t
--- doxygen-1.7.4/tmake/lib/haiku-g++/lib.t.orig 2011-05-14 12:14:04.828375040 -0600
+++ doxygen-1.7.4/tmake/lib/haiku-g++/lib.t 2011-05-14 12:14:04.827326464 -0600
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/lib.t");
diff -up doxygen-1.7.4/tmake/lib/haiku-g++/subdirs.t.orig doxygen-1.7.4/tmake/lib/haiku-g++/subdirs.t
--- doxygen-1.7.4/tmake/lib/haiku-g++/subdirs.t.orig 2011-05-14 12:14:04.830210048 -0600
+++ doxygen-1.7.4/tmake/lib/haiku-g++/subdirs.t 2011-05-14 12:14:04.828899328 -0600
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/subdirs.t");
diff -up doxygen-1.7.4/tmake/lib/haiku-g++/tmake.conf.orig doxygen-1.7.4/tmake/lib/haiku-g++/tmake.conf
--- doxygen-1.7.4/tmake/lib/haiku-g++/tmake.conf.orig 2011-05-14 12:14:04.832045056 -0600
+++ doxygen-1.7.4/tmake/lib/haiku-g++/tmake.conf 2011-05-14 12:14:04.830734336 -0600
@@ -0,0 +1,51 @@
+#
+#
+#
+# tmake configuration for haiku-g++
+#
+
+TEMPLATE = app
+CONFIG = qt warn_on release
+
+TMAKE_CC = gcc
+TMAKE_CFLAGS =
+TMAKE_CFLAGS_WARN_ON = -Wall -W
+TMAKE_CFLAGS_WARN_OFF =
+TMAKE_CFLAGS_RELEASE =
+TMAKE_CFLAGS_DEBUG = -g
+TMAKE_CFLAGS_SHLIB = -fPIC
+TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
+
+TMAKE_CXX = g++
+TMAKE_CXXFLAGS = $$TMAKE_CFLAGS
+TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON
+TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF
+TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE
+TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG
+TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB
+TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC
+
+TMAKE_INCDIR =
+TMAKE_LIBDIR =
+TMAKE_INCDIR_QT = $(QTDIR)/include
+TMAKE_LIBDIR_QT = $(QTDIR)/lib
+
+TMAKE_LINK = g++
+TMAKE_LINK_SHLIB = g++
+TMAKE_LFLAGS = -Wl,-rpath=/lib:$(QTDIR)/lib
+TMAKE_LFLAGS_RELEASE =
+TMAKE_LFLAGS_DEBUG =
+TMAKE_LFLAGS_SHLIB = -shared
+TMAKE_LFLAGS_SONAME = -Wl,-soname,
+
+TMAKE_LIBS =
+TMAKE_LIBS_QT = -lqt
+TMAKE_LIBS_QT_MT = -lqt-mt
+
+TMAKE_MOC = moc
+
+TMAKE_AR = ar cqs
+TMAKE_RANLIB =
+
+TMAKE_TAR = tar -cf
+TMAKE_GZIP = gzip -9f

View File

@@ -0,0 +1,216 @@
From 9309a5412ccb754634cca91ce1f43fd30ed4e0ce Mon Sep 17 00:00:00 2001
From: Augustin Cavalier <waddlesplash@gmail.com>
Date: Sat, 10 Jan 2015 20:13:41 -0500
Subject: [PATCH] Modifications so Doxygen works on Haiku.
---
PLATFORMS | 1 +
configure | 3 +++
qtools/qglobal.h | 6 +++--
qtools/qthread_unix.cpp | 2 +-
src/doxygen.cpp | 2 +-
src/doxygen.pro.in | 11 ++++-----
tmake/lib/haiku-g++/app.t | 2 ++
tmake/lib/haiku-g++/lib.t | 2 ++
tmake/lib/haiku-g++/subdirs.t | 2 ++
tmake/lib/haiku-g++/tmake.conf | 51 ++++++++++++++++++++++++++++++++++++++++++
10 files changed, 73 insertions(+), 9 deletions(-)
create mode 100644 tmake/lib/haiku-g++/app.t
create mode 100644 tmake/lib/haiku-g++/lib.t
create mode 100644 tmake/lib/haiku-g++/subdirs.t
create mode 100644 tmake/lib/haiku-g++/tmake.conf
diff --git a/PLATFORMS b/PLATFORMS
index c358a1d..18c4ed5 100644
--- a/PLATFORMS
+++ b/PLATFORMS
@@ -4,6 +4,7 @@ beos-g++
dgux-g++
freebsd-g++
gnu-g++
+haiku-g++
hpux-acc
hpux-cc
hpux-g++
diff --git a/configure b/configure
index 07b0ef0..a4625e2 100755
--- a/configure
+++ b/configure
@@ -180,6 +180,9 @@ if test -z "$f_platform"; then
f_insttool=/usr/bin/install
fi
;;
+ Haiku:*)
+ f_platform=haiku-g++
+ ;;
HP-UX:*)
f_platform=hpux-g++
if test "$f_insttool" = NO; then
diff --git a/qtools/qglobal.h b/qtools/qglobal.h
index 352d985..20601e3 100644
--- a/qtools/qglobal.h
+++ b/qtools/qglobal.h
@@ -1,5 +1,5 @@
/****************************************************************************
-**
+**
**
** Global type declarations and definitions
**
@@ -153,6 +153,8 @@
#define _OS_CYGWIN_
#elif defined(__BEOS__)
#define _OS_BEOS_
+#elif defined(__HAIKU__)
+#define _OS_HAIKU_
#elif defined(__MINT__)
#define _OS_MINT_
#else
@@ -295,7 +297,7 @@
#define _CC_V2002
#else
#define _CC_V1998
-#endif
+#endif
#endif
#ifndef Q_PACKED
diff --git a/qtools/qthread_unix.cpp b/qtools/qthread_unix.cpp
index 5a7b788..0d4fd6e 100644
--- a/qtools/qthread_unix.cpp
+++ b/qtools/qthread_unix.cpp
@@ -124,7 +124,7 @@ void QThread::start()
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_DETACHED);
- pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED);
+ //pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED);
if (d->stackSize>0)
{
#if defined(_POSIX_THREAD_ATTR_STACKSIZE) && (_POSIX_THREAD_ATTR_STACKSIZE-0>0)
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index b790410..117e639 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -9566,7 +9566,7 @@ void readConfiguration(int argc, char **argv)
{
if (optind+4<argc || QFileInfo("Doxyfile").exists())
{
- QCString df = optind+4<argc ? argv[optind+4] : QCString("Doxyfile");
+ QCString df = optind+4<argc ? (QCString)argv[optind+4] : QCString("Doxyfile");
if (!Config::instance()->parse(df))
{
err("error opening or reading configuration file %s!\n",argv[optind+4]);
diff --git a/src/doxygen.pro.in b/src/doxygen.pro.in
index afdf242..bb64792 100644
--- a/src/doxygen.pro.in
+++ b/src/doxygen.pro.in
@@ -4,8 +4,8 @@
# Copyright (C) 1997-2011 by Dimitri van Heesch.
#
# Permission to use, copy, modify, and distribute this software and its
-# documentation under the terms of the GNU General Public License is hereby
-# granted. No representations are made about the suitability of this software
+# documentation under the terms of the GNU General Public License is hereby
+# granted. No representations are made about the suitability of this software
# for any purpose. It is provided "as is" without express or implied warranty.
# See the GNU General Public License for more details.
#
@@ -16,9 +16,10 @@
TEMPLATE = app.t
CONFIG = console warn_on $extraopts
-HEADERS = doxygen.h
-SOURCES = main.cpp
-unix:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread
+HEADERS = doxygen.h
+SOURCES = main.cpp
+unix:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5
+haiku-g++:LIBS += -liconv
win32:INCLUDEPATH += .
win32-mingw:LIBS += -L../lib -ldoxygen -ldoxycfg -lqtools -lmd5 -lpthread
win32-msvc:LIBS += qtools.lib md5.lib doxygen.lib doxycfg.lib shell32.lib iconv.lib
diff --git a/tmake/lib/haiku-g++/app.t b/tmake/lib/haiku-g++/app.t
new file mode 100644
index 0000000..867725e
--- /dev/null
+++ b/tmake/lib/haiku-g++/app.t
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/app.t");
diff --git a/tmake/lib/haiku-g++/lib.t b/tmake/lib/haiku-g++/lib.t
new file mode 100644
index 0000000..2523b2f
--- /dev/null
+++ b/tmake/lib/haiku-g++/lib.t
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/lib.t");
diff --git a/tmake/lib/haiku-g++/subdirs.t b/tmake/lib/haiku-g++/subdirs.t
new file mode 100644
index 0000000..5e888af
--- /dev/null
+++ b/tmake/lib/haiku-g++/subdirs.t
@@ -0,0 +1,2 @@
+#! Use the common Unix template
+#$ IncludeTemplate("../unix/subdirs.t");
diff --git a/tmake/lib/haiku-g++/tmake.conf b/tmake/lib/haiku-g++/tmake.conf
new file mode 100644
index 0000000..3b8c103
--- /dev/null
+++ b/tmake/lib/haiku-g++/tmake.conf
@@ -0,0 +1,51 @@
+#
+#
+#
+# tmake configuration for haiku-g++
+#
+
+TEMPLATE = app
+CONFIG = qt warn_on release
+
+TMAKE_CC = gcc
+TMAKE_CFLAGS =
+TMAKE_CFLAGS_WARN_ON = -Wall -W
+TMAKE_CFLAGS_WARN_OFF =
+TMAKE_CFLAGS_RELEASE =
+TMAKE_CFLAGS_DEBUG = -g
+TMAKE_CFLAGS_SHLIB = -fPIC
+TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
+
+TMAKE_CXX = g++
+TMAKE_CXXFLAGS = $$TMAKE_CFLAGS
+TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON
+TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF
+TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE
+TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG
+TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB
+TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC
+
+TMAKE_INCDIR =
+TMAKE_LIBDIR =
+TMAKE_INCDIR_QT = $(QTDIR)/include
+TMAKE_LIBDIR_QT = $(QTDIR)/lib
+
+TMAKE_LINK = g++
+TMAKE_LINK_SHLIB = g++
+TMAKE_LFLAGS = -Wl,-rpath=/lib:$(QTDIR)/lib
+TMAKE_LFLAGS_RELEASE =
+TMAKE_LFLAGS_DEBUG =
+TMAKE_LFLAGS_SHLIB = -shared
+TMAKE_LFLAGS_SONAME = -Wl,-soname,
+
+TMAKE_LIBS =
+TMAKE_LIBS_QT = -lqt
+TMAKE_LIBS_QT_MT = -lqt-mt
+
+TMAKE_MOC = moc
+
+TMAKE_AR = ar cqs
+TMAKE_RANLIB =
+
+TMAKE_TAR = tar -cf
+TMAKE_GZIP = gzip -9f
--
1.8.3.4

View File

@@ -1,33 +0,0 @@
SUMMARY="Japanese input system"
DESCRIPTION="
Anthy is a Japanese input method working on X11 and Emacs. \
It converts hiragana text to mixed kana and kanji. It is implemented as \
a library and stores private information securely in ~/.anthy/. Thus, \
Anthy is simple and secure (information is protected from spoofing and snooping).
"
HOMEPAGE="http://anthy.sourceforge.jp/"
SRC_URI="http://sourceforge.jp/frs/redir.php?m=keihanna&f=%2Fanthy%2F37536%2Fanthy-9100h.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd anthy-9100h
libtoolize --force --copy --install
aclocal
autoconf
automake
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL()
{
cd anthy-9100h
make install
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2000-2007 TABATA Yusuke, UGAWA Tomoharu
2004-2006 YOSHIDA Yuichi
2000-2007 KMC(Kyoto University Micro Computer Club)
2001-2002 TAKAI Kosuke, Nobuoka Takahiro"

View File

@@ -0,0 +1,80 @@
SUMMARY="Japanese input system"
DESCRIPTION="
Anthy is a Japanese input method working on X11 and Emacs. \
It converts hiragana text to mixed kana and kanji. It is implemented as \
a library and stores private information securely in ~/.anthy/. Thus, \
Anthy is simple and secure (information is protected from spoofing and snooping).
"
HOMEPAGE="http://anthy.sourceforge.jp/"
SRC_URI="http://sourceforge.jp/frs/redir.php?f=%2Fanthy%2F37536%2Fanthy-9100h.tar.gz"
CHECKSUM_SHA256="d256f075f018b4a3cb0d165ed6151fda4ba7db1621727e0eb54569b6e2275547"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:sed
"
REQUIRES="
haiku
"
REQUIRES_devel="
haiku_devel
anthy == $portVersion base
"
PROVIDES="
anthy = $portVersion
cmd:anthy_agent = $portVersion
cmd:anthy_dic_tool = $portVersion
cmd:anthy_morphological_analyzer = $portVersion
lib:libanthy = 0.1.0 compat >= 0
lib:libanthydic = 0.1.0 compat >= 0
lib:libanthyinput = 0.0.0 compat >= 0
"
PROVIDES_devel="
anthy_devel = $portVersion
devel:libanthy = 0.1.0 compat >= 0
devel:libanthydic = 0.1.0 compat >= 0
devel:libanthyinput = 0.0.0 compat >= 0
"
GLOBAL_WRITABLE_FILES="
settings/anthy-conf auto-merge
"
PATCH()
{
sed -i 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.ac
}
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
automake
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs \
libanthy \
libanthydic \
libanthyinput
fixPkgconfig
packageEntries devel \
$developDir
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2000-2007 TABATA Yusuke, UGAWA Tomoharu
2004-2006 YOSHIDA Yuichi
2000-2007 KMC(Kyoto University Micro Computer Club)
2001-2002 TAKAI Kosuke, Nobuoka Takahiro"

View File

@@ -7,7 +7,7 @@ incorporates useful features from the Korn and C shells (ksh and csh).
HOMEPAGE="http://www.gnu.org/software/bash/"
SRC_URI="https://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz"
CHECKSUM_SHA256="afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4"
for i in {001..030}; do
for i in {001..033}; do
eval "SRC_URI_$i=\"https://ftp.gnu.org/gnu/bash/bash-4.3-patches/bash43-$i#noarchive\""
done
CHECKSUM_SHA256_001="ecb3dff2648667513e31554b3ad054ccd89fce38e33367c9459ac3a285153742"
@@ -40,6 +40,9 @@ CHECKSUM_SHA256_027="1eb76ad28561d27f7403ff3c76a36e932928a4b58a01b868d663c165f07
CHECKSUM_SHA256_028="e8b0dbed4724fa7b9bd8ff77d12c7f03da0fbfc5f8251ef5cb8511eb082b469d"
CHECKSUM_SHA256_029="4cc4a397fe6bc63ecb97d030a4e44258ef2d4e076d0e90c77782968cc43d6292"
CHECKSUM_SHA256_030="85434f8a2f379d0c49a3ff6d9ffa12c8b157188dd739e556d638217d2a58385b"
CHECKSUM_SHA256_031="cd529f59dd0f2fdd49d619fe34691da6f0affedf87cc37cd460a9f3fe812a61d"
CHECKSUM_SHA256_032="889357d29a6005b2c3308ca5b6286cb223b5e9c083219e5db3156282dd554f4a"
CHECKSUM_SHA256_033="fb2a7787a13fbe027a7335aca6eb3c21cdbd813e9edc221274b6a9d8692eaa16"
PATCHES="bash-kill_by_name.patch"
SOURCE_DIR="bash-4.3"
REVISION="1"
@@ -75,7 +78,7 @@ BUILD_PREREQUIRES="
PATCH()
{
for i in {001..030}; do
for i in {001..033}; do
patch -p0 < ../../sources-$i/bash43-$i
done
}

View File

@@ -0,0 +1,65 @@
SUMMARY="Tab-completion for the Bash shell"
DESCRIPTION="Since v2.04, bash has allowed you to intelligently program \
and extend its standard completion behavior to achieve complex command \
lines with just a few keystrokes. Imagine typing ssh [Tab] and being \
able to complete on hosts from your ~/.ssh/known_hosts files. Or typing \
man 3 str [Tab] and getting a list of all string handling functions in \
the UNIX manual. mount system: [Tab] would complete on all exported \
file-systems from the host called system, while make [Tab] would complete \
on all targets in Makefile. This project was conceived to produce \
programmable completion routines for the most common Linux/UNIX commands, \
reducing the amount of typing sysadmins and programmers need to do on \
a daily basis."
HOMEPAGE="http://bash-completion.alioth.debian.org/"
SRC_URI="http://bash-completion.alioth.debian.org/files/bash-completion-$portVersion.tar.bz2"
CHECKSUM_SHA256="2b606804a7d5f823380a882e0f7b6c8a37b0e768e72c3d4107c51fbe8a46ae4f"
SOURCE_DIR="bash-completion-$portVersion"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2006-2014 Debian Project"
ARCHITECTURES="any"
PROVIDES="
bash_completion = $portVersion
"
REQUIRES="
cmd:bash
"
BUILD_REQUIRES="
cmd:bash
"
BUILD_PREREQUIRES="
haiku
cmd:bash
cmd:awk
cmd:make
"
GLOBAL_WRITABLE_FILES="
settings/profile.d/bash_completion.sh auto-merge
"
USER_SETTINGS_FILES="
settings/profile.d/bash_completion.sh
"
PATCH()
{
cd completions
for file in *
do
chmod +x $file
done
}
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
chmod +x $settingsDir/profile.d/bash_completion.sh
chmod +x $dataDir/bash-completion/bash_completion
}

View File

@@ -1,26 +0,0 @@
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)."

View File

@@ -0,0 +1,50 @@
SUMMARY="Preprocessor-pretty-printer of OCaml"
DESCRIPTION="Camlp5 is a preprocessor-pretty-printer of OCaml.
It is compatible with OCaml versions from 1.07 to 4.02.0."
HOMEPAGE="http://camlp5.gforge.inria.fr/"
SRC_URI="http://camlp5.gforge.inria.fr/distrib/src/camlp5-6.12.tgz"
CHECKSUM_SHA256="b716c8b248289205bc76823000bc0b0988517cfcfd9c2eb1a3c43cc2cd7d5c02"
LICENSE="BSD (3-clause)"
COPYRIGHT="2007-2013 Institut National de Recherche en Informatique et en Automatique (INRIA)."
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SOURCE_DIR="camlp5-6.12"
PROVIDES="
camlp5
cmd:camlp5
cmd:camlp5o
cmd:camlp5o.opt
cmd:camlp5r
cmd:camlp5r.opt
cmd:camlp5sch
cmd:mkcamlp5
cmd:mkcamlp5.opt
cmd:ocpp5
"
REQUIRES="
haiku
cmd:ocaml
"
BUILD_PREREQUIRES="
haiku_devel
cmd:make
cmd:gcc
ocaml
"
BUILD()
{
./configure --strict --prefix $prefix \
--mandir $manDir
make world.opt
}
INSTALL()
{
make install PREFIX=$prefix \
MANDIR=$manDir
}

View File

@@ -0,0 +1,870 @@
From f7d6b2b6f44a8f9337c9103d298222747d547ebf Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Wed, 12 Mar 2014 21:17:06 +0000
Subject: initial Haiku patch
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index b9f1c6c..7be61d3 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -83,6 +83,35 @@ INSTALL_SCHEMES = {
'scripts': '$userbase/bin',
'data' : '$userbase',
},
+ 'haiku': {
+ 'purelib': '$base/non-packaged/lib/python$py_version_short/site-packages',
+ 'platlib': '$platbase/non-packaged/lib/python$py_version_short/site-packages',
+ 'headers': '$base/non-packaged/develop/headers/python$py_version_short/$dist_name',
+ 'scripts': '$base/non-packaged/bin',
+ 'data' : '$base/non-packaged',
+ },
+ 'haiku_vendor': {
+ 'purelib': '$base/lib/python$py_version_short/vendor-packages',
+ 'platlib': '$platbase/lib/python$py_version_short/vendor-packages',
+ 'headers': '$base/develop/headers/python$py_version_short/$dist_name',
+ 'scripts': '$base/bin',
+ 'data' : '$base',
+ },
+ 'haiku_home': {
+ 'purelib': '$base/lib/python',
+ 'platlib': '$base/lib/python',
+ 'headers': '$base/develop/headers/python/$dist_name',
+ 'scripts': '$base/bin',
+ 'data' : '$base',
+ },
+ 'haiku_user': {
+ 'purelib': '$usersite',
+ 'platlib': '$usersite',
+ 'headers': '$userbase/develop/headers/python$py_version_short/$dist_name',
+ 'scripts': '$userbase/bin',
+ 'data' : '$userbase',
+ },
+
}
# The keys to an installation scheme; if any new types of files are to be
@@ -416,10 +445,16 @@ class install (Command):
raise DistutilsPlatformError(
"User base directory is not specified")
self.install_base = self.install_platbase = self.install_userbase
- self.select_scheme("unix_user")
+ if sys.platform.startswith('haiku'):
+ self.select_scheme("haiku_user")
+ else:
+ self.select_scheme("unix_user")
elif self.home is not None:
self.install_base = self.install_platbase = self.home
- self.select_scheme("unix_home")
+ if sys.platform.startswith('haiku'):
+ self.select_scheme("haiku_home")
+ else:
+ self.select_scheme("unix_home")
else:
if self.prefix is None:
if self.exec_prefix is not None:
@@ -435,7 +470,13 @@ class install (Command):
self.install_base = self.prefix
self.install_platbase = self.exec_prefix
- self.select_scheme("unix_prefix")
+ if sys.platform.startswith('haiku'):
+ if os.environ.get('HAIKU_USE_VENDOR_DIRECTORIES') == '1':
+ self.select_scheme("haiku_vendor")
+ else:
+ self.select_scheme("haiku")
+ else:
+ self.select_scheme("unix_prefix")
# finalize_unix ()
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index 4aa9334..d06e5e8 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -90,7 +90,8 @@ def get_python_inc(plat_specific=0, prefix=None):
# Include is located in the srcdir
inc_dir = os.path.join(srcdir, "Include")
return inc_dir
- return os.path.join(prefix, "include", "python" + get_python_version())
+ inc_dir = "include" if sys.platform != "haiku1" else "develop/headers"
+ return os.path.join(prefix, inc_dir, "python" + get_python_version())
elif os.name == "nt":
return os.path.join(prefix, "include")
elif os.name == "os2":
@@ -119,12 +120,20 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
prefix = plat_specific and EXEC_PREFIX or PREFIX
if os.name == "posix":
- libpython = os.path.join(prefix,
- "lib", "python" + get_python_version())
- if standard_lib:
- return libpython
+ if sys.platform.startswith('haiku'):
+ if standard_lib:
+ return os.path.join(prefix,
+ "lib", "python" + get_python_version())
+ return os.path.join(prefix, "non-packaged",
+ "lib", "python" + get_python_version(),
+ "site-packages")
else:
- return os.path.join(libpython, "site-packages")
+ libpython = os.path.join(prefix,
+ "lib", "python" + get_python_version())
+ if standard_lib:
+ return libpython
+ else:
+ return os.path.join(libpython, "site-packages")
elif os.name == "nt":
if standard_lib:
diff --git a/Lib/plat-haiku1/IN.py b/Lib/plat-haiku1/IN.py
new file mode 100644
index 0000000..362cb41
--- /dev/null
+++ b/Lib/plat-haiku1/IN.py
@@ -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 --git a/Lib/plat-haiku1/regen b/Lib/plat-haiku1/regen
new file mode 100644
index 0000000..d9da80c
--- /dev/null
+++ b/Lib/plat-haiku1/regen
@@ -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 --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index b45d79b..d1f77f7 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -299,6 +299,7 @@ class OtherFileTests(unittest.TestCase):
self.assertEqual(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.assertEqual(f.seekable(), False)
diff --git a/Modules/resource.c b/Modules/resource.c
index 53a6c3e..6c5f52f 100644
--- a/Modules/resource.c
+++ b/Modules/resource.c
@@ -86,6 +86,7 @@ resource_getrusage(PyObject *self, PyObject *args)
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,6 +101,7 @@ resource_getrusage(PyObject *self, PyObject *args)
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);
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 880f311..54b66f7 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -4868,7 +4868,9 @@ init_socket(void)
#ifndef __BEOS__
/* 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 --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 8515499..4e33e4f 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -47,6 +47,10 @@ typedef int socklen_t;
# 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 --git a/Modules/spwdmodule.c b/Modules/spwdmodule.c
index 957de58..69be5bb 100644
--- a/Modules/spwdmodule.c
+++ b/Modules/spwdmodule.c
@@ -79,7 +79,9 @@ static PyObject *mkspent(struct spwd *p)
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 --git a/Modules/timemodule.c b/Modules/timemodule.c
index 12c43b0..206b325 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1006,11 +1006,11 @@ floatsleep(double secs)
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 --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index f052574..6a77f0d 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -19,7 +19,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 --git a/Tools/scripts/h2py.py b/Tools/scripts/h2py.py
index c64501e..7df3ad7 100755
--- a/Tools/scripts/h2py.py
+++ b/Tools/scripts/h2py.py
@@ -50,7 +50,7 @@ except KeyError:
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 --git a/configure.ac b/configure.ac
index 54f8c0f..1ea438a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -883,7 +883,7 @@ if test $enable_shared = "yes"; then
RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
- Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
+ Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|Haiku*)
LDLIBRARY='libpython$(VERSION).so'
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
@@ -891,6 +891,9 @@ if test $enable_shared = "yes"; then
FreeBSD*)
SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
;;
+ Haiku*)
+ RUNSHARED=LIBRARY_PATH=`pwd`:${LIBRARY_PATH}
+ ;;
esac
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
@@ -1006,7 +1009,7 @@ AC_PROG_MKDIR_P
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;;
@@ -2030,7 +2033,7 @@ then
BLDSHARED="$LDSHARED"
fi
;;
- Linux*|GNU*|QNX*)
+ Linux*|GNU*|QNX*|Haiku*)
LDSHARED='$(CC) -shared'
LDCXXSHARED='$(CXX) -shared';;
BSD/OS*/4*)
@@ -2102,7 +2105,7 @@ then
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*)
@@ -2134,7 +2137,7 @@ then
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,
@@ -2249,14 +2252,16 @@ case "$ac_sys_system" in
esac
# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
-# BeOS' sockets are stashed in libnet.
AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4
AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
+# BeOS' sockets are stashed in libnet.
+# Haiku's sockets are stashed in libnetwork.
case "$ac_sys_system" in
-BeOS*)
-AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS
-;;
+ BeOS*)
+ AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS);;
+ Haiku*)
+ AC_CHECK_LIB(network, socket, [LIBS="-lnetwork $LIBS"], [], $LIBS);;
esac
AC_MSG_CHECKING(for --with-libs)
@@ -3592,7 +3597,7 @@ fi],
AC_SUBST(LIBM)
case $ac_sys_system in
Darwin) ;;
-BeOS) ;;
+BeOS|Haiku) ;;
*) LIBM=-lm
esac
AC_MSG_CHECKING(for --with-libm=STRING)
diff --git a/setup.py b/setup.py
index a46bf35..9fe247f 100644
--- a/setup.py
+++ b/setup.py
@@ -523,6 +523,12 @@ class PyBuildExt(build_ext):
lib_dirs += os.getenv('LIBRARY_PATH', '').split(os.pathsep)
inc_dirs += ['/system/include', '/atheos/autolnk/include']
inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
+
+ # Haiku-specific include and library locations
+ if host_platform == 'haiku1':
+ inc_dirs += ['/boot/develop/headers/posix',
+ '/boot/system/develop/headers']
+ lib_dirs += ['/boot/system/develop/lib']
# OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
if host_platform in ['osf1', 'unixware7', 'openunix8']:
@@ -551,7 +557,7 @@ class PyBuildExt(build_ext):
# Check for MacOS X, which doesn't need libm.a at all
math_libs = ['m']
- if host_platform in ['darwin', 'beos']:
+ if host_platform in ['darwin', 'beos', 'haiku1']:
math_libs = []
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
@@ -790,15 +796,22 @@ class PyBuildExt(build_ext):
'/usr/local/ssl/include',
'/usr/contrib/ssl/include/'
]
- ssl_incs = find_file('openssl/ssl.h', inc_dirs,
+ ssl_incs = find_file('openssl/ssl.h', [],
+ inc_dirs + search_for_ssl_incs_in
+ )
+ ssl_incs_to_add = find_file('openssl/ssl.h', inc_dirs,
search_for_ssl_incs_in
)
if ssl_incs is not None:
krb5_h = find_file('krb5.h', inc_dirs,
['/usr/kerberos/include'])
if krb5_h:
- ssl_incs += krb5_h
- ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
+ ssl_incs_to_add += krb5_h
+ ssl_libs = find_library_file(self.compiler, 'ssl', [],
+ lib_dirs + ['/usr/local/ssl/lib',
+ '/usr/contrib/ssl/lib/'
+ ] )
+ ssl_libs_to_add = find_library_file(self.compiler, 'ssl', lib_dirs,
['/usr/local/ssl/lib',
'/usr/contrib/ssl/lib/'
] )
@@ -806,8 +819,8 @@ class PyBuildExt(build_ext):
if (ssl_incs is not None and
ssl_libs is not None):
exts.append( Extension('_ssl', ['_ssl.c'],
- include_dirs = ssl_incs,
- library_dirs = ssl_libs,
+ include_dirs = ssl_incs_to_add,
+ library_dirs = ssl_libs_to_add,
libraries = ['ssl', 'crypto'],
depends = ['socketmodule.h']), )
else:
@@ -845,8 +858,8 @@ class PyBuildExt(build_ext):
# The _hashlib module wraps optimized implementations
# of hash functions from the OpenSSL library.
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
- include_dirs = ssl_incs,
- library_dirs = ssl_libs,
+ include_dirs = ssl_incs_to_add,
+ library_dirs = ssl_libs_to_add,
libraries = ['ssl', 'crypto']) )
else:
print ("warning: openssl 0x%08x is too old for _hashlib" %
@@ -1325,7 +1338,7 @@ class PyBuildExt(build_ext):
missing.append('resource')
# Sun yellow pages. Some systems have the functions in libc.
- if (host_platform not in ['cygwin', 'atheos', 'qnx6'] and
+ if (host_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']
--
1.8.3.4
From 571ed69e1ab40fd11c4a1fdcb6198ff787c5129b Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 5 Apr 2014 21:16:40 +0000
Subject: fix pyconfig.h path
diff --git a/Makefile.pre.in b/Makefile.pre.in
index bcd83bf..f93c10a 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -105,7 +105,7 @@ BINDIR= @bindir@
LIBDIR= @libdir@
MANDIR= @mandir@
INCLUDEDIR= @includedir@
-CONFINCLUDEDIR= $(exec_prefix)/include
+CONFINCLUDEDIR= $(INCLUDEDIR)
SCRIPTDIR= $(prefix)/lib
# Detailed destination directories
--
1.8.3.4
From d49a8ee2494391b3a1c50bc652f0838ac036e046 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Wed, 18 Jun 2014 12:19:13 +0000
Subject: Import missed change from the 2.6.9 patches
This makes our site- and vendor- packages work properly again.
It's sill missing the changes to addusersitepackages. This method was apparently refactored, and I don't have enough Python knowledge to redo our changes in the new code. User packages will not workas
expected with
this version of Python.
diff --git a/Lib/site.py b/Lib/site.py
index d2e18f1..34d5aee 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -287,6 +287,13 @@ def getsitepackages():
if sys.platform in ('os2emx', 'riscos'):
sitepackages.append(os.path.join(prefix, "Lib", "site-packages"))
+ elif sys.platform.startswith('haiku'):
+ sitepackages.append(os.path.join(prefix, "non-packaged", "lib",
+ "python" + sys.version[:3],
+ "site-packages"))
+ sitepackages.append(os.path.join(prefix, "lib",
+ "python" + sys.version[:3],
+ "vendor-packages"))
elif os.sep == '/':
sitepackages.append(os.path.join(prefix, "lib",
"python" + sys.version[:3],
--
1.8.3.4
From a0b72ccfc2f385c3ec9148523d981c7d971e2636 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 21 Sep 2014 18:59:44 +0200
Subject: gcc2 fix.
diff --git a/Modules/_ctypes/libffi/include/ffi_common.h b/Modules/_ctypes/libffi/include/ffi_common.h
index 650ca69..02a1913 100644
--- a/Modules/_ctypes/libffi/include/ffi_common.h
+++ b/Modules/_ctypes/libffi/include/ffi_common.h
@@ -115,7 +115,7 @@ typedef signed int SINT64 __attribute__((__mode__(__DI__)));
typedef float FLOAT32;
-#ifndef __GNUC__
+#if !defined(__GNUC__) || __GNUC__ < 3
#define __builtin_expect(x, expected_value) (x)
#endif
#define LIKELY(x) __builtin_expect(!!(x),1)
--
1.8.3.4
From d50a28e47cbd54263d065f47b2650333d917c2b9 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Fri, 28 Nov 2014 16:26:28 +0000
Subject: tarfile: let link fail and catch exception.
diff --git a/Lib/tarfile.py b/Lib/tarfile.py
index 57ea877..bc3f82c 100644
--- a/Lib/tarfile.py
+++ b/Lib/tarfile.py
@@ -2242,7 +2242,7 @@ class TarFile(object):
(platform limitation), we try to make a copy of the referenced file
instead of a link.
"""
- if hasattr(os, "symlink") and hasattr(os, "link"):
+ try:
# For systems that support symbolic and hard links.
if tarinfo.issym():
if os.path.lexists(targetpath):
@@ -2256,7 +2256,7 @@ class TarFile(object):
os.link(tarinfo._link_target, targetpath)
else:
self._extract_member(self._find_link_target(tarinfo), targetpath)
- else:
+ except (os.error, AttributeError):
try:
self._extract_member(self._find_link_target(tarinfo), targetpath)
except KeyError:
--
1.8.3.4

View File

@@ -0,0 +1,110 @@
SUMMARY="An interpreted, interactive, object-oriented programming language"
DESCRIPTION="
Python is a programming language that lets you work more quickly and integrate \
your systems more effectively. You can learn to use Python and see almost \
immediate gains in productivity and lower maintenance costs.
Python runs on Windows, Linux/Unix, Mac OS X, and has been ported to the Java \
and .NET virtual machines.
Python is free to use, even for commercial products, because of its \
OSI-approved open source license.
"
HOMEPAGE="http://www.python.org"
LICENSE="Python"
COPYRIGHT="1990-2012, Python Software Foundation"
SRC_URI="https://www.python.org/ftp/python/$portVersion/Python-$portVersion.tar.xz"
CHECKSUM_SHA256="90d27e14ea7e03570026850e2e50ba71ad20b7eb31035aada1cf3def8f8d4916"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="python-$portVersion.patchset"
PROVIDES="
python = $portVersion compat >= 2.7
cmd:2to3 = $portVersion compat >= 2.7
cmd:idle = $portVersion compat >= 2.7
cmd:pydoc = $portVersion compat >= 2.7
cmd:python = $portVersion compat >= 2.7
cmd:python2 = $portVersion compat >= 2.7
cmd:python2_config = $portVersion compat >= 2.7
cmd:python2.7 = $portVersion compat >= 2.7
cmd:python2.7_config = $portVersion compat >= 2.7
cmd:python_config = $portVersion compat >= 2.7
cmd:smtpd.py = $portVersion compat >= 2.7
devel:libpython2.7 = 1.0
lib:libpython2.7 = 1.0
"
REQUIRES="
haiku >= $haikuVersion
lib:libbz2
lib:libncurses
lib:libssl
lib:libreadline
lib:libsqlite3
lib:libz
lib:libffi
"
BUILD_REQUIRES="
devel:libbz2
devel:libffi
devel:libncurses
devel:libssl
devel:libreadline
devel:libsqlite3
devel:libz
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:find
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:make
cmd:pkg_config
"
SOURCE_DIR="Python-$portVersion"
GLOBAL_WRITABLE_FILES="
non-packaged/lib/python2.7/site-packages directory keep-old
"
BUILD()
{
cd Modules/_ctypes/libffi
libtoolize --force --copy --install
cd ../../..
libtoolize --force --copy --install
aclocal
autoconf
runConfigure ./configure --with-system-ffi \
--enable-shared \
--enable-unicode=ucs4
# prevent make from rebuilding stuff that requires python
touch Parser/asdl* Python/Python-ast.c Include/Python-ast.h
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libpython2.7
fixPkgconfig
mkdir -p $prefix/lib/python2.7/vendor-packages
echo 'This directory contains packaged python modules.' \
>$prefix/lib/python2.7/vendor-packages/README
mkdir -p $prefix/non-packaged/lib/python2.7
mv $prefix/lib/python2.7/site-packages $prefix/non-packaged/lib/python2.7/
}
TEST()
{
make $jobArgs test
}

View File

@@ -57,7 +57,7 @@ BUILD_REQUIRES="
devel:libpng$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
boost_devel${secondaryArchSuffix}
boost${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="

View File

@@ -1,25 +0,0 @@
DESCRIPTION="libebml is a C++ library to parse EBML content (read/write)."
HOMEPAGE="http://www.matroska.org/"
SRC_URI="http://dl.matroska.org/downloads/libebml/libebml-1.0.0.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="6d438f03d8928d83a2d120ed02705f03"
BUILD()
{
cd libebml-1.0.0/make/linux
make
}
INSTALL()
{
cd libebml-1.0.0/make/linux
if [ -n ${DESTDIR} ];then
make install DESTDIR="${DESTDIR}"
else
make install
fi
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2005-2009 CoreCodec, Inc."

View File

@@ -1,64 +1,68 @@
SUMMARY="libebml is a C++ library to parse EBML content (read/write)."
DESCRIPTION="libebml is a C++ library to parse EBML content (read/write)."
HOMEPAGE="http://www.matroska.org/"
SRC_URI="http://dl.matroska.org/downloads/libebml/libebml-1.3.0.tar.bz2"
CHECKSUM_SHA256="83b074d6b62715aa0080406ea84d33df2e44b5d874096640233a4db49b8096de"
SRC_URI="http://dl.matroska.org/downloads/libebml/libebml-1.3.1.tar.bz2"
CHECKSUM_SHA256="195894b31aaca55657c9bc157d744f23b0c25597606b97cfa5a9039c4b684295"
REVISION="1"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2005-2013 CoreCodec, Inc."
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libebml$secondaryArchSuffix = $portVersion
lib:libebml$secondaryArchSuffix = 4
lib:libebml$secondaryArchSuffix = 4.0.0 compat >= 4
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libstdc++${secondaryArchSuffix}
"
if [ $effectiveTargetArchitecture = x86_gcc2 ]; then
PATCHES="
libebml-$portVersion.patchset
"
else
REQUIRES+="
lib:libgcc_s${secondaryArchSuffix}
"
fi
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:sed
"
PATCH()
{
sed -i 's/^ifeq (BeOS/ifeq (Haiku/g' make/linux/Makefile
sed -i "s,/boot/home/config,$prefix,g" make/linux/Makefile
sed -i "s,^\(libdir\)=\(.*\)$,\1=$libDir,g" make/linux/Makefile
sed -i "s,^\(includedir\)=\(.*\)$,\1=$includeDir/ebml,g" make/linux/Makefile
sed -i 's/-Wextra//g' make/linux/Makefile
sed -i 's/\(#elif defined(__BEOS__)\)/\1 || defined(__HAIKU__)/g' \
ebml/c/libebml_t.h
}
BUILD()
{
cd make/linux
autoreconf -f -i
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
cd make/linux
make install
prepareInstalledDevelLibs libebml
fixPkgconfig
packageEntries devel $developDir
}
PROVIDES_devel="
libebml${secondaryArchSuffix}_devel = $portVersion
devel:libebml$secondaryArchSuffix = 4
devel:libebml$secondaryArchSuffix = 4.0.0 compat >= 4
"
REQUIRES_devel="
libebml$secondaryArchSuffix == $portVersion base

View File

@@ -1,21 +0,0 @@
diff -urN libebml-0.7.8/ebml/c/libebml_t.h libebml-0.7.8-haiku/ebml/c/libebml_t.h
--- libebml-0.7.8/ebml/c/libebml_t.h 2009-03-01 02:10:48.000000000 +0000
+++ libebml-0.7.8-haiku/ebml/c/libebml_t.h 2009-03-01 02:06:42.000000000 +0000
@@ -72,7 +72,7 @@
typedef uint16_t uint16;
typedef uint8_t uint8;
# endif // __GNUC__
-#elif defined(__BEOS__)
+#elif defined(__BEOS__) || defined(__HAIKU__)
#include <SupportDefs.h>
#elif defined(DJGPP) /* SL : DJGPP doesn't support POSIX types ???? */
typedef signed long long int64;
@@ -98,7 +98,7 @@
typedef uint32_t uint32;
typedef uint16_t uint16;
typedef uint8_t uint8;
-#elif defined(__BEOS__)
+#elif defined(__BEOS__) || defined(__HAIKU__)
# include <support/SupportDefs.h>
#else // anything else (Linux, BSD, ...)
# include <sys/types.h>

View File

@@ -1,67 +0,0 @@
diff -urN libebml-1.0.0/ebml/c/libebml_t.h libebml-1.0.0-haiku/ebml/c/libebml_t.h
--- libebml-1.0.0/ebml/c/libebml_t.h 2010-03-23 11:58:36.007077888 +0000
+++ libebml-1.0.0-haiku/ebml/c/libebml_t.h 2010-06-30 15:54:51.796131328 +0000
@@ -72,7 +72,7 @@
typedef uint16_t uint16;
typedef uint8_t uint8;
# endif // __GNUC__
-#elif defined(__BEOS__)
+#elif defined(__BEOS__) || defined(__HAIKU__)
#include <SupportDefs.h>
#elif defined(DJGPP) /* SL : DJGPP doesn't support POSIX types ???? */
typedef signed long long int64;
@@ -98,7 +98,7 @@
typedef uint32_t uint32;
typedef uint16_t uint16;
typedef uint8_t uint8;
-#elif defined(__BEOS__)
+#elif defined(__BEOS__) || defined (__HAIKU__)
# include <support/SupportDefs.h>
#else // anything else (Linux, BSD, ...)
# include <inttypes.h>
diff -urN libebml-1.0.0/make/linux/Makefile libebml-1.0.0-destdir/make/linux/Makefile
--- libebml-1.0.0/make/linux/Makefile 2010-06-04 08:44:54.060817408 +0000
+++ libebml-1.0.0-destdir/make/linux/Makefile 2010-09-22 12:58:40.962854912 +0000
@@ -13,6 +13,9 @@
# BeOS wants the libs and headers in /boot/home/config
ifeq (BeOS,$(shell uname -s))
prefix=/boot/home/config
+# Haiku wants the libs and headers in /boot/common
+else ifeq (Haiku,$(shell uname -s))
+prefix=/boot/common
else
prefix=/usr/local
endif
@@ -122,23 +125,23 @@
endif
install_headers:
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)
for i in $(INCLUDE_DIR)/*.h; do \
- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir) ; \
+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir) ; \
done
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(includedir)/c
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(includedir)/c
for i in $(INCLUDE_DIR)/c/*.h; do \
- $(INSTALL) $(INSTALL_OPTS) $$i $(includedir)/c ; \
+ $(INSTALL) $(INSTALL_OPTS) $$i $(DESTDIR)$(includedir)/c ; \
done
install_staticlib: $(LIBRARY)
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(libdir)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
+ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY) $(DESTDIR)$(libdir)
install_sharedlib: $(LIBRARY_SO)
- $(INSTALL) $(INSTALL_DIR_OPTS) -d $(libdir)
- $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir)
- ln -fs $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO)
+ $(INSTALL) $(INSTALL_DIR_OPTS) -d $(DESTDIR)$(libdir)
+ $(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)
+ ln -fs $(LIBRARY_SO_VER) $(DESTDIR)$(libdir)/$(LIBRARY_SO)
ifneq ($(wildcard .depend),)

View File

@@ -0,0 +1,22 @@
From dfad87a8cda696eba7c4a96ab898705978a0cec0 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sun, 4 Jan 2015 21:37:55 +0000
Subject: gcc2 fix
diff --git a/Makefile.am b/Makefile.am
index 9b10ee8..3e11510 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@
ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = -I${top_srcdir}
-AM_CXXFLAGS = -Wall -Wextra -Wno-unknown-pragmas -Wshadow
+AM_CXXFLAGS = -Wall -Wno-unknown-pragmas -Wshadow
if ENABLE_DEBUG
AM_CPPFLAGS += -DDEBUG
AM_CXXFLAGS += -g
--
1.8.3.4

View File

@@ -0,0 +1,86 @@
SUMMARY="A library for solving packages and reading repositories"
DESCRIPTION="A Library for solving packages and reading repositories."
LICENSE="BSD (3-clause)"
COPYRIGHT="2007-2013, Novell Inc."
HOMEPAGE="http://github.com/openSUSE/libsolv"
srcGitRev="da2650933f85f5a30d8146bfb22af53d2620d0c7"
SRC_URI="https://github.com/weinhold/libsolv/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="79aa7772bfe403f003e8063480ddc3d4f491b3f5d7b8cace610605fba3318150"
SRC_FILENAME="$portVersionedName.tar.gz"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64 ppc arm"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libsolv$secondaryArchSuffix = $portVersion
lib:libsolv$secondaryArchSuffix = $portVersion
lib:libsolvext$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libexpat$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libexpat$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
SOURCE_DIR="libsolv-$srcGitRev"
PATCH()
{
sed -i 's,${CMAKE_INSTALL_PREFIX}/bin',$binDir, CMakeLists.txt
sed -i 's,${CMAKE_INSTALL_PREFIX}/include',$includeDir, \
src/CMakeLists.txt ext/CMakeLists.txt
}
BUILD()
{
rm -rf build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix -DLIB=$relativeLibDir ..
make $jobArgs
}
INSTALL()
{
cd build
make install
# set up the develop directory correctly
prepareInstalledDevelLibs libsolv libsolvext
# move cmake files
mkdir -p $dataDir
mv $prefix/share/cmake $dataDir
rmdir $prefix/share
# We don't want the executables.
rm -r $prefix/bin
# devel package
packageEntries devel \
$dataDir \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libsolv${secondaryArchSuffix}_devel = $portVersion
devel:libsolv${secondaryArchSuffix} = $portVersion
devel:libsolvext${secondaryArchSuffix} = $portVersion
"
REQUIRES_devel="
libsolv${secondaryArchSuffix} == $portVersion base
"

View File

@@ -0,0 +1,179 @@
SUMMARY="Mozilla's Network Security Services library that implements PKI support"
DESCRIPTION="
Network Security Services (NSS) is a set of libraries designed to support \
cross-platform development of security-enabled client and server \
applications. Applications built with NSS can support SSL v2 and v3, TLS, \
PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and \
other security standards.
"
LICENSE="
GNU GPL v2
GNU LGPL v2.1
MPL v2.0
"
COPYRIGHT="Mozilla Foundation"
HOMEPAGE="https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS"
NSS_VERSION=`echo $portVersion | sed 's/\./_/g'`
SRC_URI="https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_${NSS_VERSION}_RTM/src/nss-$portVersion.tar.gz"
CHECKSUM_SHA256="f4d5e9035a2f84f25f35c283de3b0ff60d72e918748de25eaf017ed201fa21d5"
REVISION="1"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
SOURCE_DIR="nss-$portVersion/nss"
PROVIDES="
nss$secondaryArchSuffix = $portVersion compat >= 3
cmd:addbuiltin$secondaryArchSuffix = $portVersion compat >= 3
cmd:atob$secondaryArchSuffix = $portVersion compat >= 3
cmd:baddbdir$secondaryArchSuffix = $portVersion compat >= 3
cmd:bltest$secondaryArchSuffix = $portVersion compat >= 3
cmd:btoa$secondaryArchSuffix = $portVersion compat >= 3
cmd:certcgi$secondaryArchSuffix = $portVersion compat >= 3
cmd:certutil$secondaryArchSuffix = $portVersion compat >= 3
cmd:checkcert$secondaryArchSuffix = $portVersion compat >= 3
cmd:chktest$secondaryArchSuffix = $portVersion compat >= 3
cmd:cmsutil$secondaryArchSuffix = $portVersion compat >= 3
cmd:conflict$secondaryArchSuffix = $portVersion compat >= 3
cmd:crlutil$secondaryArchSuffix = $portVersion compat >= 3
cmd:crmftest$secondaryArchSuffix = $portVersion compat >= 3
cmd:dbtest$secondaryArchSuffix = $portVersion compat >= 3
cmd:derdump$secondaryArchSuffix = $portVersion compat >= 3
cmd:dertimetest$secondaryArchSuffix = $portVersion compat >= 3
cmd:digest$secondaryArchSuffix = $portVersion compat >= 3
cmd:encodeinttest$secondaryArchSuffix = $portVersion compat >= 3
cmd:fipstest$secondaryArchSuffix = $portVersion compat >= 3
cmd:httpserv$secondaryArchSuffix = $portVersion compat >= 3
cmd:listsuites$secondaryArchSuffix = $portVersion compat >= 3
cmd:makepqg$secondaryArchSuffix = $portVersion compat >= 3
cmd:mangle$secondaryArchSuffix = $portVersion compat >= 3
cmd:modutil$secondaryArchSuffix = $portVersion compat >= 3
cmd:multinit$secondaryArchSuffix = $portVersion compat >= 3
cmd:nonspr10$secondaryArchSuffix = $portVersion compat >= 3
cmd:ocspclnt$secondaryArchSuffix = $portVersion compat >= 3
cmd:ocspresp$secondaryArchSuffix = $portVersion compat >= 3
cmd:oidcalc$secondaryArchSuffix = $portVersion compat >= 3
cmd:p7content$secondaryArchSuffix = $portVersion compat >= 3
cmd:p7env$secondaryArchSuffix = $portVersion compat >= 3
cmd:p7sign$secondaryArchSuffix = $portVersion compat >= 3
cmd:p7verify$secondaryArchSuffix = $portVersion compat >= 3
cmd:pk11gcmtest$secondaryArchSuffix = $portVersion compat >= 3
cmd:pk11mode$secondaryArchSuffix = $portVersion compat >= 3
cmd:pk12util$secondaryArchSuffix = $portVersion compat >= 3
cmd:pk1sign$secondaryArchSuffix = $portVersion compat >= 3
cmd:pkix_errcodes$secondaryArchSuffix = $portVersion compat >= 3
cmd:pp$secondaryArchSuffix = $portVersion compat >= 3
cmd:pwdecrypt$secondaryArchSuffix = $portVersion compat >= 3
cmd:remtest$secondaryArchSuffix = $portVersion compat >= 3
cmd:rsaperf$secondaryArchSuffix = $portVersion compat >= 3
cmd:sdrtest$secondaryArchSuffix = $portVersion compat >= 3
cmd:secmodtest$secondaryArchSuffix = $portVersion compat >= 3
cmd:selfserv$secondaryArchSuffix = $portVersion compat >= 3
cmd:shlibsign$secondaryArchSuffix = $portVersion compat >= 3
cmd:signtool$secondaryArchSuffix = $portVersion compat >= 3
cmd:signver$secondaryArchSuffix = $portVersion compat >= 3
cmd:ssltap$secondaryArchSuffix = $portVersion compat >= 3
cmd:strsclnt$secondaryArchSuffix = $portVersion compat >= 3
cmd:symkeyutil$secondaryArchSuffix = $portVersion compat >= 3
cmd:tstclnt$secondaryArchSuffix = $portVersion compat >= 3
cmd:vfychain$secondaryArchSuffix = $portVersion compat >= 3
cmd:vfyserv$secondaryArchSuffix = $portVersion compat >= 3
lib:libfreebl3${secondaryArchSuffix} = $portVersion compat >= 3
lib:libnss3${secondaryArchSuffix} = $portVersion compat >= 3
lib:libnssckbi${secondaryArchSuffix} = $portVersion compat >= 3
lib:libnssdbm3${secondaryArchSuffix} = $portVersion compat >= 3
lib:libnssutil3${secondaryArchSuffix} = $portVersion compat >= 3
lib:libsmime3${secondaryArchSuffix} = $portVersion compat >= 3
lib:libsoftokn3${secondaryArchSuffix} = $portVersion compat >= 3
lib:libssl3${secondaryArchSuffix} = $portVersion compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libnspr4${secondaryArchSuffix} >= 4
lib:libsqlite3$secondaryArchSuffix
lib:libz${secondaryArchSuffix}
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libnspr4${secondaryArchSuffix} >= 4
devel:libsqlite3$secondaryArchSuffix
devel:libz${secondaryArchSuffix}
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:awk
cmd:pkg_config$secondaryArchSuffix
"
PATCHES="nss-$portVersion.patchset"
BUILD()
{
# FIXME: $secondaryArchSuffix is wrong here (_arch). What should be used?
myCPPFLAGS="${CPPFLAGS} `pkg-config nspr --cflags`"
myLDFLAGS="${LDFLAGS} `pkg-config nspr --libs-only-L`"
export BUILD_OPT=1
export NSDISTMODE=copy
export FREEBL_NO_DEPEND=1
export ASFLAGS=""
if [ $effectiveTargetArchitecture == 'x86_64' ]; then
export USE_64=1
fi
for d in . lib/dbm ; do
CPPFLAGS="${myCPPFLAGS}"
LDFLAGS="${myLDFLAGS}"
make -j1 -C ${d}
done
}
INSTALL()
{
# files are in /sources/dist
mkdir -p $includeDir $binDir
mkdir -p $(dirname $libDir)
mv ../dist/*/bin/* $binDir
mv ../dist/*/lib $libDir
mv ../dist/public/nss $includeDir
# set up the develop directory correctly
prepareInstalledDevelLibs libnss3 libfreebl3 libnssckbi libnssdbm3 \
libnssutil3 libsmime3 libsoftokn3 libssl3
fixPkgconfig
# devel package
packageEntries devel \
$developDir
rm $libDir/*.a
}
TEST()
{
echo TODO
# TODO
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
nss${secondaryArchSuffix}_devel = $portVersion compat >= 3
devel:libfreebl3${secondaryArchSuffix} = $portVersion compat >= 3
devel:libnss3${secondaryArchSuffix} = $portVersion compat >= 3
devel:libnssckbi${secondaryArchSuffix} = $portVersion compat >= 3
devel:libnssdbm3${secondaryArchSuffix} = $portVersion compat >= 3
devel:libnssutil3${secondaryArchSuffix} = $portVersion compat >= 3
devel:libsmime3${secondaryArchSuffix} = $portVersion compat >= 3
devel:libsoftokn3${secondaryArchSuffix} = $portVersion compat >= 3
devel:libssl3${secondaryArchSuffix} = $portVersion compat >= 3
"
REQUIRES_devel="
nss${secondaryArchSuffix} == $portVersion base
"

View File

@@ -0,0 +1,141 @@
From be5d83aa3c8725caa18a940fcb5f72bc6ca20bcd Mon Sep 17 00:00:00 2001
From: Kacper Kasper <kacperkasper@gmail.com>
Date: Sat, 5 Jul 2014 02:12:23 +0200
Subject: Haiku support
diff --git a/coreconf/BeOS.mk b/coreconf/BeOS.mk
index 750696d..b53cfea 100644
--- a/coreconf/BeOS.mk
+++ b/coreconf/BeOS.mk
@@ -7,7 +7,7 @@ include $(CORE_DEPTH)/coreconf/UNIX.mk
XP_DEFINE := $(XP_DEFINE:-DXP_UNIX=-DXP_BEOS)
-USE_PTHREADS =
+USE_PTHREADS = 1
ifeq ($(USE_PTHREADS),1)
IMPL_STRATEGY = _PTH
@@ -27,7 +27,7 @@ else
CPU_ARCH = x86
endif
-MKSHLIB = $(CC) -nostart -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
+MKSHLIB = $(CC) -shared -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
ifdef BUILD_OPT
OPTIMIZER = -O2
endif
diff --git a/coreconf/arch.mk b/coreconf/arch.mk
index 782e6c0..669e52a 100644
--- a/coreconf/arch.mk
+++ b/coreconf/arch.mk
@@ -41,6 +41,14 @@ else
endif
#
+# Force the Haiku machines to use BeOS.
+#
+
+ifeq ($(OS_ARCH),Haiku)
+ OS_ARCH = BeOS
+endif
+
+#
# Force the IRIX64 machines to use IRIX.
#
diff --git a/lib/dbm/include/mcom_db.h b/lib/dbm/include/mcom_db.h
index f204484..5cb10ee 100644
--- a/lib/dbm/include/mcom_db.h
+++ b/lib/dbm/include/mcom_db.h
@@ -66,7 +66,7 @@ typedef PRUint32 uint32;
#include <sys/byteorder.h>
#endif
-#if defined(__linux) || defined(__BEOS__)
+#if defined(__linux) || defined(BEOS)
#include <endian.h>
#ifndef BYTE_ORDER
#define BYTE_ORDER __BYTE_ORDER
--
1.8.3.4
From a90f08ec358c67555eced1750db584e1dfcc9381 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 25 Sep 2014 13:09:35 +0000
Subject: define RTLD_NOLOAD
diff --git a/lib/freebl/stubs.c b/lib/freebl/stubs.c
index 1de9b49..08d7753 100644
--- a/lib/freebl/stubs.c
+++ b/lib/freebl/stubs.c
@@ -594,6 +594,10 @@ freebl_InitNSSUtil(void *lib)
return SECSuccess;
}
+#ifndef RTLD_NOLOAD
+ #define RTLD_NOLOAD 0
+#endif
+
/*
* fetch the library if it's loaded. For NSS it should already be loaded
*/
--
1.8.3.4
From 654a6b2ba7aabe42120b1477138bc357ddf9c98a Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 25 Sep 2014 13:40:13 +0000
Subject: skip optionally the signing part
diff --git a/cmd/shlibsign/Makefile b/cmd/shlibsign/Makefile
index 83f90fa..8934439 100644
--- a/cmd/shlibsign/Makefile
+++ b/cmd/shlibsign/Makefile
@@ -95,5 +95,7 @@ else
endif
endif
+ifndef SKIP_SHLIBSIGN
libs install :: $(CHECKLOC)
+endif
diff --git a/coreconf/BeOS.mk b/coreconf/BeOS.mk
index b53cfea..51fe162 100644
--- a/coreconf/BeOS.mk
+++ b/coreconf/BeOS.mk
@@ -45,3 +45,5 @@ ARCH = beos
DSO_CFLAGS = -fPIC
DSO_LDOPTS =
+
+SKIP_SHLIBSIGN=1
--
1.8.3.4
From 6ed942559c69cdfaa34a8dfe427b080e87512055 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Thu, 25 Sep 2014 14:14:26 +0000
Subject: use system libs
diff --git a/coreconf/BeOS.mk b/coreconf/BeOS.mk
index 51fe162..fe54580 100644
--- a/coreconf/BeOS.mk
+++ b/coreconf/BeOS.mk
@@ -47,3 +47,6 @@ DSO_CFLAGS = -fPIC
DSO_LDOPTS =
SKIP_SHLIBSIGN=1
+USE_SYSTEM_ZLIB = 1
+ZLIB_LIBS = -lz
+NSS_USE_SYSTEM_SQLITE=1
--
1.8.3.4

View File

@@ -15,7 +15,7 @@ conditions.
"
HOMEPAGE="http://www.openssl.org/"
SRC_URI="http://www.openssl.org/source/openssl-$portVersion.tar.gz"
CHECKSUM_SHA256="3895eb5b1c2ba079406d081340d9e1dc064f4fbf4d0f41d53cefd154adef2aa2"
CHECKSUM_SHA256="b745d11f19531620a2e7402167d54845d253f2da3e523c2d0950595aef104fc8"
LICENSE="OpenSSL"
COPYRIGHT="
1995-1998 Eric Young

View File

@@ -6,12 +6,15 @@ easily integrated into other programs.
HOMEPAGE="http://www.grinninglizard.com/tinyxml2/"
LICENSE="Zlib"
COPYRIGHT="2011-2013 Lee Thomason"
SRC_URI="git+https://github.com/leethomason/tinyxml2.git#343a5ff3bdd7336644db4080f001759e062c359e"
SRC_URI="https://github.com/leethomason/tinyxml2/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="f891224f32e7a06bf279290619cec80cc8ddc335c13696872195ffb87f5bce67"
REVISION="1"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
ARCHITECTURES="x86_gcc2 $ARCHITECTURES"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
tinyxml2$secondaryArchSuffix = $portVersion
lib:libtinyxml2$secondaryArchSuffix = $portVersion

View File

@@ -0,0 +1,49 @@
SUMMARY="a deployment and management system for Lua modules."
DESCRIPTION="
LuaRocks allows you to install modules as self-contained packages \
called rocks, which also contain version dependency information.
"
HOMEPAGE="http://luarocks.org"
SRC_URI="http://luarocks.org/releases/luarocks-2.2.0.tar.gz"
SOURCE_DIR=$portVersionedName
REVISION="2"
CHECKSUM_SHA256="9b1a4ec7b103e2fb90a7ba8589d7e0c8523a3d6d54ac469b0bbc144292b9279c"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
cmd:luarocks = $portVersion
cmd:luarocks_admin = $portVersion
"
REQUIRES="
haiku
lua
lib:liblua
"
BUILD_REQUIRES="
lua_devel
devel:liblua
"
BUILD_PREREQUIRES="
haiku_devel
cmd:lua
cmd:luac
cmd:gcc
cmd:ld
cmd:make
cmd:sed
cmd:wget
cmd:md5sum
"
BUILD()
{
./configure --prefix=$prefix --with-lua=$binDir --with-lua-include=$includeDir --with-lua-lib=$libDir
make build
}
INSTALL()
{
make install
}
LICENSE="MIT"
COPYRIGHT="2007-2014 Kepler Project"

View File

@@ -0,0 +1,41 @@
SUMMARY="Turn legacy BeOS application icons into PNGs"
DESCRIPTION="\
With app2png, you can extract attribute-based bitmap icons from BeOS apps and \
save them into PNG files. These PNG icons can then be used to recreate the \
icon as a vector, or for use on a website."
HOMEPAGE="https://github.com/HaikuArchives/app2png"
SRC_URI="git+https://github.com/HaikuArchives/app2png#17c36271a80a822ac0dfec66527e61f21230a412"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2015 Puck Meerburg"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
app2png = $portVersion
cmd:app2png = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:make
cmd:gcc
cmd:mkdepend
"
BUILD()
{
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $binDir
cp -a objects/app2png $binDir
}

View File

@@ -0,0 +1,42 @@
SUMMARY="Bam is a fast and flexible build system."
DESCRIPTION="Bam uses Lua to describe the build process. It's takes its \
inspiration for the script files from scons. While scons focuses on being \
100% correct when building, bam makes a few sacrifices to acquire fast. \
full and incremental build times."
HOMEPAGE="http://matricks.github.io/bam/"
SRC_URI="http://github.com/downloads/matricks/bam/bam-0.4.0.tar.gz"
CHECKSUM_SHA256="5e4e4920b4d265da582f66774e9b1ec8ddfbe75ddc028fba86c12f686ea18db3"
REVISION="1"
COPYRIGHT="2009 Magnus Auvinen"
LICENSE="Zlib"
ARCHITECTURES="x86_gcc2 x86"
PATCHES="bam-0.4.0.patch"
PROVIDES="
bam = $portVersion
cmd:bam$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
cmd:lua
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
"
BUILD()
{
sh make_beos.sh
}
INSTALL()
{
mkdir -p $binDir
cp bam $binDir
}

View File

@@ -0,0 +1,26 @@
Only in bam-0.4.0: bam
diff -ur bam-0.4.0-orig/make_beos.sh bam-0.4.0/make_beos.sh
--- bam-0.4.0-orig/make_beos.sh 2010-08-09 21:08:24.043778048 +0300
+++ bam-0.4.0/make_beos.sh 2014-12-15 21:08:44.414187520 +0200
@@ -1,4 +1,4 @@
#!/bin/sh
gcc -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_cl.lua > src/internal_base.h
-gcc -Wall -ansi -pedantic src/lua/*.c src/*.c -o bam -I src/lua -lpthread -O2 $*
+gcc -Wall -ansi -pedantic src/lua/*.c src/*.c -o bam -I src/lua -O2 $*
diff -ur bam-0.4.0-orig/src/support.c bam-0.4.0/src/support.c
--- bam-0.4.0-orig/src/support.c 2010-08-09 21:08:24.045875200 +0300
+++ bam-0.4.0/src/support.c 2014-12-15 23:47:55.438042624 +0200
@@ -140,7 +140,11 @@
#include <dlfcn.h>
#include <unistd.h>
#include <sys/types.h>
+#ifdef BAM_FAMILY_BEOS
+ #include <signal.h>
+#else
#include <sys/signal.h>
+#endif
#include <sys/stat.h>
#include <utime.h>
#include <pthread.h>
Binary files bam-0.4.0-orig/src/tools/txt2c and bam-0.4.0/src/tools/txt2c differ

View File

@@ -1,37 +0,0 @@
diff -Naur premake-4.3/build/gmake.unix/Premake4.make premake-4.3-haiku/build/gmake.unix/Premake4.make
--- premake-4.3/build/gmake.unix/Premake4.make 2010-11-16 11:29:14.028311552 +0000
+++ premake-4.3-haiku/build/gmake.unix/Premake4.make 2012-12-27 23:50:16.043253760 +0000
@@ -28,8 +28,8 @@
CPPFLAGS += -MMD -MP $(DEFINES) $(INCLUDES)
CFLAGS += $(CPPFLAGS) $(ARCH) -Wall -Os
CXXFLAGS += $(CFLAGS)
- LDFLAGS += -s -rdynamic
- LIBS += -lm -ldl
+ LDFLAGS += -s
+ LIBS +=
RESFLAGS += $(DEFINES) $(INCLUDES)
LDDEPS +=
LINKCMD = $(CC) -o $(TARGET) $(OBJECTS) $(LDFLAGS) $(RESOURCES) $(ARCH) $(LIBS)
diff -Naur premake-4.3/src/host/lua-5.1.4/src/luaconf.h premake-4.3-haiku/src/host/lua-5.1.4/src/luaconf.h
--- premake-4.3/src/host/lua-5.1.4/src/luaconf.h 2010-11-16 11:29:12.042991616 +0000
+++ premake-4.3-haiku/src/host/lua-5.1.4/src/luaconf.h 2012-12-27 23:50:16.050331648 +0000
@@ -55,7 +55,6 @@
#define LUA_USE_MKSTEMP
#define LUA_USE_ISATTY
#define LUA_USE_POPEN
-#define LUA_USE_ULONGJMP
#endif
diff -Naur premake-4.3/src/host/premake.h premake-4.3-haiku/src/host/premake.h
--- premake-4.3/src/host/premake.h 2010-11-16 11:29:12.047185920 +0000
+++ premake-4.3-haiku/src/host/premake.h 2012-12-27 23:50:16.052166656 +0000
@@ -12,7 +12,7 @@
/* Identify the current platform I'm not sure how to reliably detect
* Windows but since it is the most common I use it as the default */
-#if defined(__linux__)
+#if defined(__linux__) || defined(__HAIKU__)
#define PLATFORM_LINUX (1)
#define PLATFORM_STRING "linux"
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)

View File

@@ -1,23 +0,0 @@
DESCRIPTION="Powerfully simple build configuration"
HOMEPAGE="http://industriousone.com/premake"
SRC_URI="http://sourceforge.net/projects/premake/files/Premake/4.3/premake-4.3-src.zip/download"
CHECKSUM_MD5="8cfafee76f9665c93b2e9ad15b015eb7"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd premake-4.3/build/gmake.unix
make config=release
}
INSTALL()
{
cd premake-4.3/bin/release
mkdir -p $DESTDIR`finddir B_COMMON_BIN_DIRECTORY`
install -m 0755 premake4 $DESTDIR`finddir B_COMMON_BIN_DIRECTORY`
}
LICENSE="BSD (2-clause)"
COPYRIGHT="2012 Industrious One, LLC"

View File

@@ -0,0 +1,63 @@
SUMMARY="Powerfully simple build configuration"
DESCRIPTION="\
Describe your software project with a full-featured scripting language and \
let Premake write the build scripts for you. With one file your project can \
support both IDE-addicted Windows coders and Linux command-line junkies!
"
HOMEPAGE="http://industriousone.com/premake"
SRC_URI="http://sourceforge.net/projects/premake/files/Premake/4.4/premake-4.4-beta5-src.zip"
CHECKSUM_SHA256="0fa1ed02c5229d931e87995123cdb11d44fcc8bd99bba8e8bb1bbc0aaa798161"
REVISION="1"
LICENSE="BSD (2-clause)"
COPYRIGHT="2012 Industrious One, LLC"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
premake
premake4$secondaryArchSuffix = $portVersion
cmd:premake4$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
SOURCE_DIR="premake-4.4-beta5"
PATCH()
{
sed -i '/#define LUA_USE_ULONGJMP/d' src/host/lua-5.1.4/src/luaconf.h
sed -i '/-lm/d' build/gmake.unix/Premake4.make
sed -i 's/-rdynamic//g' build/gmake.unix/Premake4.make
}
BUILD()
{
cd build/gmake.unix
make config=release
}
INSTALL()
{
cd bin/release
mkdir -p $binDir
install -m 0755 premake4 $binDir
}

View File

@@ -0,0 +1,67 @@
SUMMARY="Revision Control System"
DESCRIPTION="The Revision Control System (RCS) manages multiple revisions \
of files. RCS automates the storing, retrieval, logging, identification, \
and merging of revisions. RCS is useful for text that is revised \
frequently, including source code, programs, documentation, graphics, \
papers, and form letters.
RCS is (mostly) deprecated now. Unless you have an existing RCS repository \
that you need to access, using Subversion or Git is preferred."
HOMEPAGE="http://www.gnu.org/software/rcs/"
COPYRIGHT="1986-2005 Free Software Foundation, Inc."
LICENSE="GNU GPL v1
GNU LGPL v2"
SRC_URI="https://ftp.gnu.org/gnu/rcs/rcs-5.9.3.tar.xz"
CHECKSUM_SHA256="68b0d1c1b8657766cd7dc78e10564ce4836220e64665fb35fbe74dbc1dff5b47"
REVISION="1"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
rcs = $portVersion compat >= 5.9
cmd:ci = $portVersion compat >= 5.9
cmd:co = $portVersion compat >= 5.9
cmd:ident = $portVersion compat >= 5.9
cmd:merge = $portVersion compat >= 5.9
cmd:rcs = $portVersion compat >= 5.9
cmd:rcsclean = $portVersion compat >= 5.9
cmd:rcsdiff = $portVersion compat >= 5.9
cmd:rcsmerge = $portVersion compat >= 5.9
cmd:rlog = $portVersion compat >= 5.9
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:ed
cmd:awk
cmd:diff
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:ed
cmd:awk
cmd:diff
"
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin
make $jobArgs
}
INSTALL()
{
make install
}

View File

@@ -10,7 +10,7 @@ HOMEPAGE="http://subversion.apache.org"
LICENSE="Apache-Subversion"
COPYRIGHT="2010-2014 The Apache Software Foundation"
SRC_URI="http://wwwftp.ciril.fr/pub/apache/subversion/subversion-$portVersion.tar.bz2"
CHECKSUM_SHA256="1cc900c8a7974337c3ed389dc6b5c59012ec48c7d4107ae31fd7c929ded47dcc"
CHECKSUM_SHA256="10b056420e1f194c12840368f6bf58842e6200f9cb8cc5ebbf9be2e89e56e4d9"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64"
@@ -81,7 +81,7 @@ USER_SETTINGS_FILES="
"
PATCHES="subversion-1.8.10.patchset"
PATCHES="subversion-$portVersion.patchset"
BUILD()
{

View File

@@ -0,0 +1,63 @@
SUMMARY="An action game similar to Tron and Nibbles."
DESCRIPTION="Heroes is similar to the Tron and Nibbles games of yore, but \
includes many graphical improvements and new game features. In it, you must \
maneuver a small vehicle around a world and collect powerups while avoiding \
obstacles, your opponents trails, and even your own trail."
HOMEPAGE="http://heroes.sourceforge.net/"
SRC_URI="http://prdownloads.sourceforge.net/heroes/heroes-0.21.tar.gz"
CHECKSUM_SHA256="1264981d37d0fa12905ca627e6329c22ae6db10a1abaf3ec9b9c7357d391b54f"
SRC_URI_2="http://prdownloads.sourceforge.net/heroes/heroes-data-1.5.tar.gz"
CHECKSUM_SHA256_2="af2af6b1fd83636db03d0d2aa77243d31dccd1cb14a20269ed765edb2bb4ff43"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2000-2002 Alexandre Duret-Lutz, \
Romual Genevois, \
Alexandre Liverneaux, \
Philippe Meisburger"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
heroes = portVersion
app:heroes = $portVersion
cmd:heroeslvl = $portVersion
"
REQUIRES="
haiku
lib:libintl
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel
devel:libintl
devel:libsdl
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:libtoolize
cmd:make
"
BUILD()
{
libtoolize -fci
./configure --prefix=$appsDir/Heroes
make $jobArgs
cd ../../sources-2/heroes-data-1.5
libtoolize -fci
./configure --prefix=$appsDir/Heroes
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/Heroes
make install
cd ../../sources-2/heroes-data-1.5
make install
}

View File

@@ -0,0 +1,33 @@
From 6a6c051e1f8e4d906d26e576c5af7f35ec9d81c9 Mon Sep 17 00:00:00 2001
From: Scott McCreary <scottmc2@gmail.com>
Date: Sun, 21 Dec 2014 00:24:59 -0800
Subject: applying patch sdl_bomber-1.0.4.patch
diff --git a/bomber.c b/bomber.c
index 6c66afe..78a6fb0 100644
--- a/bomber.c
+++ b/bomber.c
@@ -14,6 +14,9 @@
#include <fcntl.h>
#include <stdarg.h>
+#ifdef __HAIKU__
+#include <libgen.h>
+#endif
void domode(void);
int iterate(void);
@@ -1917,6 +1920,10 @@ int main(int argc,char **argv)
int i;
char *p;
+#ifdef __HAIKU__
+ chdir(dirname(argv[0]));
+#endif
+
mname=0;
for(i=1;i<argc;++i)
--
1.8.3.4

View File

@@ -0,0 +1,49 @@
SUMMARY="SDL Bomber."
DESCRIPTION="The same old bomber game. /
It's just that Mr.Bomberman looks meh."
HOMEPAGE="http://www.linuxmotors.com/SDL_bomber/"
SRC_URI="http://www.linuxmotors.com/SDL_bomber/downloads/SDL_bomber-1.0.4.tgz"
CHECKSUM_SHA256="b811e69b077b0f9bc97b1405dec8bb3e8020a178c1609b5ddad6b8cc07e5df07"
SOURCE_DIR="SDL_bomber-1.0.4"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1999-2008 Dave Ashley"
ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
SDL_Bomber= $portVersion
app:SDL_Bomber= $portVersion
"
REQUIRES="
haiku
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"
PATCHES="sdl_bomber-1.0.4.patch"
BUILD()
{
make DBG=-lnetwork $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/SDL_bomber
cp bomber matcher $appsDir/SDL_bomber
cp -r data $appsDir/SDL_bomber
addAppDeskbarSymlink $appsDir/SDL_bomber/bomber SDL_bomber
}

View File

@@ -0,0 +1,283 @@
diff -ur teeworlds-0.6.3-src-orig/bam.lua teeworlds-0.6.3-src/bam.lua
--- teeworlds-0.6.3-src-orig/bam.lua 2014-11-20 00:08:23.059768832 +0200
+++ teeworlds-0.6.3-src/bam.lua 2014-12-17 00:47:27.678428672 +0200
@@ -184,6 +184,12 @@
settings.link.libs:Add("ws2_32")
settings.link.libs:Add("ole32")
settings.link.libs:Add("shell32")
+ elseif family == "beos" and platform == "haiku" then
+ settings.link.libs:Add("be")
+ settings.link.libs:Add("root")
+ settings.link.libs:Add("network")
+ settings.link.libs:Add("GL");
+ settings.link.libs:Add("GLU");
end
-- compile zlib if needed
diff -ur teeworlds-0.6.3-src-orig/src/base/detect.h teeworlds-0.6.3-src/src/base/detect.h
--- teeworlds-0.6.3-src-orig/src/base/detect.h 2014-11-20 00:08:22.046137344 +0200
+++ teeworlds-0.6.3-src/src/base/detect.h 2014-12-16 21:31:00.576192512 +0200
@@ -68,7 +68,7 @@
#endif
/* beos family */
-#if defined(__BeOS) || defined(__BEOS__)
+#if defined(__BeOS) || defined(__BEOS__) || defined(__HAIKU__)
#define CONF_FAMILY_BEOS 1
#define CONF_FAMILY_STRING "beos"
#define CONF_PLATFORM_BEOS 1
diff -ur teeworlds-0.6.3-src-orig/src/base/system.c teeworlds-0.6.3-src/src/base/system.c
--- teeworlds-0.6.3-src-orig/src/base/system.c 2014-11-20 00:08:22.047448064 +0200
+++ teeworlds-0.6.3-src/src/base/system.c 2014-12-17 18:20:36.652738560 +0200
@@ -9,7 +9,7 @@
#include "system.h"
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
#include <sys/time.h>
#include <unistd.h>
@@ -372,7 +372,7 @@
void *thread_create(void (*threadfunc)(void *), void *u)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
pthread_t id;
pthread_create(&id, NULL, (void *(*)(void*))threadfunc, u);
return (void*)id;
@@ -385,7 +385,7 @@
void thread_wait(void *thread)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
pthread_join((pthread_t)thread, NULL);
#elif defined(CONF_FAMILY_WINDOWS)
WaitForSingleObject((HANDLE)thread, INFINITE);
@@ -396,7 +396,7 @@
void thread_destroy(void *thread)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
void *r = 0;
pthread_join((pthread_t)thread, &r);
#else
@@ -406,7 +406,7 @@
void thread_yield()
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
sched_yield();
#elif defined(CONF_FAMILY_WINDOWS)
Sleep(0);
@@ -417,7 +417,7 @@
void thread_sleep(int milliseconds)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
usleep(milliseconds*1000);
#elif defined(CONF_FAMILY_WINDOWS)
Sleep(milliseconds);
@@ -428,7 +428,7 @@
void thread_detach(void *thread)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
pthread_detach((pthread_t)(thread));
#elif defined(CONF_FAMILY_WINDOWS)
CloseHandle(thread);
@@ -440,7 +440,7 @@
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
typedef pthread_mutex_t LOCKINTERNAL;
#elif defined(CONF_FAMILY_WINDOWS)
typedef CRITICAL_SECTION LOCKINTERNAL;
@@ -452,7 +452,7 @@
{
LOCKINTERNAL *lock = (LOCKINTERNAL*)mem_alloc(sizeof(LOCKINTERNAL), 4);
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
pthread_mutex_init(lock, 0x0);
#elif defined(CONF_FAMILY_WINDOWS)
InitializeCriticalSection((LPCRITICAL_SECTION)lock);
@@ -464,7 +464,7 @@
void lock_destroy(LOCK lock)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
pthread_mutex_destroy((LOCKINTERNAL *)lock);
#elif defined(CONF_FAMILY_WINDOWS)
DeleteCriticalSection((LPCRITICAL_SECTION)lock);
@@ -476,7 +476,7 @@
int lock_try(LOCK lock)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
return pthread_mutex_trylock((LOCKINTERNAL *)lock);
#elif defined(CONF_FAMILY_WINDOWS)
return !TryEnterCriticalSection((LPCRITICAL_SECTION)lock);
@@ -487,7 +487,7 @@
void lock_wait(LOCK lock)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
pthread_mutex_lock((LOCKINTERNAL *)lock);
#elif defined(CONF_FAMILY_WINDOWS)
EnterCriticalSection((LPCRITICAL_SECTION)lock);
@@ -498,7 +498,7 @@
void lock_release(LOCK lock)
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
pthread_mutex_unlock((LOCKINTERNAL *)lock);
#elif defined(CONF_FAMILY_WINDOWS)
LeaveCriticalSection((LPCRITICAL_SECTION)lock);
@@ -508,7 +508,7 @@
}
#if !defined(CONF_PLATFORM_MACOSX)
- #if defined(CONF_FAMILY_UNIX)
+ #if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
void semaphore_init(SEMAPHORE *sem) { sem_init(sem, 0, 0); }
void semaphore_wait(SEMAPHORE *sem) { sem_wait(sem); }
void semaphore_signal(SEMAPHORE *sem) { sem_post(sem); }
@@ -527,7 +527,7 @@
/* ----- time ----- */
int64 time_get()
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
struct timeval val;
gettimeofday(&val, NULL);
return (int64)val.tv_sec*(int64)1000000+(int64)val.tv_usec;
@@ -546,7 +546,7 @@
int64 time_freq()
{
-#if defined(CONF_FAMILY_UNIX)
+#if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
return 1000000;
#elif defined(CONF_FAMILY_WINDOWS)
int64 t;
@@ -1354,6 +1354,16 @@
return -1;
_snprintf(path, max, "%s/%s", home, appname);
return 0;
+#elif defined(CONF_FAMILY_BEOS)
+ #include <FindDirectory.h>
+
+ dev_t device = (dev_t)-1;
+ char *datadir;
+
+ status_t status = find_directory(B_USER_DATA_DIRECTORY, device, false, datadir, max);
+ if (status < B_OK) return -1;
+ snprintf(path, max, "%s/%s", datadir, appname);
+ return 0;
#else
char *home = getenv("HOME");
#if !defined(CONF_PLATFORM_MACOSX)
@@ -1795,7 +1805,7 @@
&theItem);
RunStandardAlert(theItem, NULL, &itemIndex);
-#elif defined(CONF_FAMILY_UNIX)
+#elif defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
static char cmd[1024];
int err;
/* use xmessage which is available on nearly every X11 system */
diff -ur teeworlds-0.6.3-src-orig/src/base/system.h teeworlds-0.6.3-src/src/base/system.h
--- teeworlds-0.6.3-src-orig/src/base/system.h 2014-11-20 00:08:22.046137344 +0200
+++ teeworlds-0.6.3-src/src/base/system.h 2014-12-16 21:31:00.580124672 +0200
@@ -411,7 +411,7 @@
/* Group: Semaphores */
#if !defined(CONF_PLATFORM_MACOSX)
- #if defined(CONF_FAMILY_UNIX)
+ #if defined(CONF_FAMILY_UNIX) || defined(CONF_FAMILY_BEOS)
#include <semaphore.h>
typedef sem_t SEMAPHORE;
#elif defined(CONF_FAMILY_WINDOWS)
diff -ur teeworlds-0.6.3-src-orig/src/engine/client/backend_sdl.cpp teeworlds-0.6.3-src/src/engine/client/backend_sdl.cpp
--- teeworlds-0.6.3-src-orig/src/engine/client/backend_sdl.cpp 2014-11-20 00:08:22.004980736 +0200
+++ teeworlds-0.6.3-src/src/engine/client/backend_sdl.cpp 2014-12-16 23:45:27.095944704 +0200
@@ -1,6 +1,6 @@
-#include "SDL.h"
-#include "SDL_opengl.h"
+#include <SDL/SDL.h>
+#include <SDL/SDL_opengl.h>
#include <base/tl/threading.h>
diff -ur teeworlds-0.6.3-src-orig/src/engine/client/backend_sdl.h teeworlds-0.6.3-src/src/engine/client/backend_sdl.h
--- teeworlds-0.6.3-src-orig/src/engine/client/backend_sdl.h 2014-11-20 00:08:22.005767168 +0200
+++ teeworlds-0.6.3-src/src/engine/client/backend_sdl.h 2014-12-17 18:21:15.679215104 +0200
@@ -1,12 +1,12 @@
-#include "SDL.h"
-#include "SDL_opengl.h"
+#include <SDL/SDL.h>
+#include <SDL/SDL_opengl.h>
#include "graphics_threaded.h"
-// platform dependent implementations for transfering render context from the main thread to the graphics thread
+// platform dependent implementations for transfering render Context from the main thread to the graphics thread
// TODO: when SDL 1.3 comes, this can be removed
#if defined(CONF_FAMILY_WINDOWS)
struct SGLContext
@@ -49,7 +49,7 @@
{
SGLContext Context;
Class NSOpenGLContextClass = (Class) objc_getClass("NSOpenGLContext");
- SEL selector = sel_registerName("currentContext");
+ SEL selector = sel_reg0isterName("currentContext");
Context.m_Context = objc_msgSend((objc_object*) NSOpenGLContextClass, selector);
return Context;
}
@@ -117,6 +117,29 @@
static void GL_MakeCurrent(const SGLContext &Context) { glXMakeCurrent(Context.m_pDisplay, Context.m_Drawable, Context.m_Context); }
static void GL_ReleaseContext(const SGLContext &Context) { glXMakeCurrent(Context.m_pDisplay, None, 0x0); }
static void GL_SwapBuffers(const SGLContext &Context) { glXSwapBuffers(Context.m_pDisplay, Context.m_Drawable); }
+#elif defined(CONF_FAMILY_BEOS)
+
+ #include <Application.h>
+ #include <opengl/GLView.h>
+
+ struct SGLContext
+ {
+ BGLView* view;
+ };
+
+ static SGLContext GL_GetCurrentContext()
+ {
+ SGLContext Context;
+
+ BApplication *be_app = new BApplication("application/x-vnd.tw-teeworlds");
+
+ Context.view = ((BGLView*) be_app->WindowAt(0)->ChildAt(0));
+ return Context;
+ }
+
+ static void GL_MakeCurrent(const SGLContext &Context) { Context.view->LockGL(); }
+ static void GL_ReleaseContext(const SGLContext &Context) { Context.view->UnlockGL(); }
+ static void GL_SwapBuffers(const SGLContext &Context) { Context.view->SwapBuffers(); }
#else
#error missing implementation
#endif

View File

@@ -0,0 +1,59 @@
SUMMARY="Teeworlds is a retro multiplayer shooter"
DESCRIPTION="Teeworlds is a free online multiplayer game, available for \
all major operating systems. Battle with up to 16 players in a variety of \
game modes, including Team Deathmatch and Capture The Flag. You can even \
design your own maps!"
LICENSE="Zlib"
COPYRIGHT="2007-2012 Magnus Auvinen"
ARCHITECTURES="!x86" # Once it works, remove the bang
if [ $effectiveTargetArchitecture != "x86_gcc2" ]; then
ARCHITECTURES="!x86_gcc2 $ARCHITECTURES" # Once it works, remove the bang
else
ARCHITECTURES="!x86_gcc2 $ARCHITECTURES"
fi
SECONDARY_ARCHITECTURES="!x86_gcc2 !x86" # Once it works, remove the bang on x86
REVISION="1"
HOMEPAGE="https://www.teeworlds.com"
SRC_URI="https://downloads.teeworlds.com/teeworlds-0.6.3-src.tar.gz"
CHECKSUM_SHA256="490ee7c372898761c609af8d7b0c6bd55942c6c6fcd7f361eefa00abfc70077b"
SOURCE_DIR="teeworlds-0.6.3-src"
PROVIDES="
teeworlds$secondaryArchSuffix = $portVersion
cmd:teeworlds$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libGL$secondaryArchSuffix
lib:libGLU$secondaryArchSuffix
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libz$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libfreetype$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:bam$secondaryArchSuffix
cmd:python
"
PATCHES="teeworlds-0.6.3.patch"
BUILD()
{
bam release
}
INSTALL()
{
mkdir -p $binDir
cp teeworlds $binDir
}

View File

@@ -0,0 +1,74 @@
SUMMARY="Cyberdogs SDL."
DESCRIPTION="DOS third-person shooting game. \
In this game, you get guns to shoot zombies and cyborgs. \
For a DOS game, the graphics are pretty good. \
This also comes with a map editor."
HOMEPAGE="https://github.com/lmartinking/cdogs-sdl"
SRC_URI="https://codeload.github.com/lmartinking/cdogs-sdl/zip/master"
SRC_URI_2="https://codeload.github.com/lmartinking/cdogs-sdl-data/zip/master"
SRC_FILENAME="cdogs-sdl-master.zip"
SRC_FILENAME_2="cdogs-sdl-data-master.zip"
CHECKSUM_SHA256="9dca57eb6d73e6ff0bbb97867b2ef1797d1a6899722294951f4f74bcf2c2f1af"
CHECKSUM_SHA256_2="8c71bf2d964f1bc098463abcd795bcd400570bad367fb952206be9e83bcdcb11"
SOURCE_DIR="cdogs-sdl-master/src"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2008-2010 Lucas Martin-King"
ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
Cyberdogs_SDL= $portVersion
app:Cyberdogs_SDL= $portVersion
"
REQUIRES="
haiku
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"
PATCH()
{
sed -i "s|PREFIX := /usr/local|PREFIX := $appsDir/cdogs_sdl|" $sourceDir/Makefile
sed -i "s|:= no|:= yes|" $sourceDir/Makefile
sed -i "s|BINDIR := "'$(PREFIX)'"/games/bin|BINDIR := $appsDir/cdogs_sdl|" $sourceDir/Makefile
sed -i "s|DATADIR := "'$(PREFIX)'"/share/games/cdogs-sdl|DATADIR := $appsDir/cdogs_sdl/data|" $sourceDir/Makefile
sed -i "s|DOCDIR := "'$(PREFIX)'"/share/doc/cdogs-sdl|DOCDIR := $appsDir/cdogs_sdl/docs|" $sourceDir/Makefile
sed -i "s|DATA := ../data|DATA := $appsDir/cdogs_sdl/data|" $sourceDir/Makefile
}
BUILD()
{
mkdir -p $appsDir/cdogs_sdl/doc/
mkdir -p $appsDir/cdogs_sdl/data
mkdir -p $sourceDir/data
mkdir -p $settingsDir/cdogs
cd $sourceDir/data
cp -r $sourceDir2/cdogs-sdl-data-master/* $sourceDir/data
cd $sourceDir
chmod 777 ./install.sh
mkdir -p data
make $jobArgs cdogs-sdl USE_PKGCONFIG=no
make $jobArgs cdogs-sdl-editor USE_PKGCONFIG=no
}
INSTALL()
{
mkdir -p $appsDir/cdogs_sdl
cp cdogs-sdl $appsDir/cdogs_sdl
cp cdogs-sdl-editor $appsDir/cdogs_sdl
cp -r data/* $appsDir/cdogs_sdl/data
addAppDeskbarSymlink $appsDir/cdogs_sdl/cdogs-sdl Cyberdogs-sdl
}

View File

@@ -0,0 +1,60 @@
SUMMARY="Pachi el marciano is a cool 2D platforms game"
DESCRIPTION="Pachi el marciano is a cool 2D platforms game inspired in games like \
Manic Miner, Jet set Willy and more from the 80s."
HOMEPAGE="http://dragontech.sourceforge.net/index.php?lang=en&main=about"
LICENSE="GNU GPL v2"
COPYRIGHT="(c) 2004 Santiago Radeff, Nicolas Radeff, Peter Hajba"
SRC_URI="http://sourceforge.net/projects/dragontech/files/Pachi%20el%20marciano/Pachi%20el%20marciano%201.0/pachi_source.tgz"
CHECKSUM_SHA256="134a51773d5e441dc31aed4e57b3543afdefe2d8efedeaa05acb85cac0fa9c52"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PATCHES="pachi-$portVersion.patch"
SOURCE_DIR="Pachi"
PROVIDES="
pachi = $portVersion
app:pachi = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
lib:libsdl
lib:libsdl_image
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
devel:libsdl
devel:libsdl_image
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc
cmd:libtoolize
cmd:make
"
BUILD()
{
libtoolize -fci
aclocal -I m4
automake --add-missing --force-missing
./configure --prefix=$appsDir/Pachi
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/Pachi
make install
ln -s $appsDir/Pachi/bin/pachi $appsDir/Pachi/Pachi
addAppDeskbarSymlink $appsDir/Pachi/bin/pachi Pachi
}

View File

@@ -0,0 +1,43 @@
--- Pachi/Makefile.am.org 2014-12-13 14:43:32.076021760 +0100
+++ Pachi/Makefile.am 2014-12-13 14:41:07.499646464 +0100
@@ -1 +1,2 @@
SUBDIRS = src Tgfx data fonts music sounds docs
+ACLOCAL_AMFLAGS = -I m4
--- Pachi/data/Makefile.am.org 2002-12-08 14:30:17.000000000 +0100
+++ Pachi/data/Makefile.am 2014-12-13 14:46:22.102236160 +0100
@@ -14,9 +14,3 @@
scores.dat
EXTRA_DIST = $(dat_DATA) $(score_DATA)
-
-install-data-local:
- for file in $(score_DATA); do\
- chgrp $(group) $(scoredir)/$$file; \
- chmod $(perms) $(scoredir)/$$file; \
- done
--- Pachi/configure.in.org 2014-12-14 10:34:54.227278848 +0100
+++ Pachi/configure.in 2014-12-14 10:31:37.060555264 +0100
@@ -1,7 +1,7 @@
# Process this file with autoconf to produce a configure script.
AC_INIT(src/faes.cpp, 0.1, T-1000@Bigfoot.com)
AM_INIT_AUTOMAKE(pachi, 0.1)
-AM_CONFIG_HEADER(config.h)
+AC_CONFIG_HEADERS(config.h)
# Checks for programs.
AC_PROG_CC
@@ -44,7 +44,7 @@
SCOREDIR="."
else
DATADIR="$datadir/$PACKAGE"
- SCOREDIR="/var/lib/games/$PACKAGE"
+ SCOREDIR="$datadir /$PACKAGE"
fi
eval DATAPATH=`eval echo "$DATADIR"`
@@ -55,3 +55,5 @@
AC_SUBST(SCOREPATH)
AC_OUTPUT(Makefile src/Makefile Tgfx/Makefile data/Makefile fonts/Makefile music/Makefile sounds/Makefile docs/Makefile)
+
+AC_CONFIG_MACRO_DIR([m4])

View File

@@ -1,8 +1,12 @@
From 03033c51349e01d5d06ee74545a15a534525d785 Mon Sep 17 00:00:00 2001
From 33e29a8c2f19b290ed6e9056a60aac6fd27426c6 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 6 Apr 2014 14:54:36 +0200
Subject: Fix search paths for SDL2 header files.
Subject: [PATCH 1/4] Fix search paths for SDL2 header files.
---
bear/cmake-helper/FindSDL2.cmake | 2 +-
bear/cmake-helper/FindSDL2_mixer.cmake | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bear/cmake-helper/FindSDL2.cmake b/bear/cmake-helper/FindSDL2.cmake
index 7665a55..bcd3050 100644
@@ -33,12 +37,15 @@ index 59ed911..d795965 100644
--
1.8.3.4
From 4a4404ab5a5b9c67925ec6d910ddc5f47fb1b910 Mon Sep 17 00:00:00 2001
From 864a651724bec4acce7b92fd3e1bddaa00f17c19 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 6 Apr 2014 17:02:35 +0200
Subject: Link libintl on haiku.
Subject: [PATCH 2/4] Link libintl on haiku.
---
bear/bear-engine/running_bear/CMakeLists.txt | 2 +-
plee-the-bear/launcher/src/CMakeLists.txt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bear/bear-engine/running_bear/CMakeLists.txt b/bear/bear-engine/running_bear/CMakeLists.txt
index 8b04d89..4fffd94 100644
@@ -69,12 +76,16 @@ index 9ed5d32..ff88206 100644
--
1.8.3.4
From 415c83accad83bf6677dd3d578ab6712582910b9 Mon Sep 17 00:00:00 2001
From d04f6bda69bbf66b5aa9e3dd8e06c0b6f487bc0f Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 6 Apr 2014 19:41:58 +0200
Subject: Fix install directories.
Subject: [PATCH 3/4] Fix install directories.
---
bear/cmake-helper/bear-config.cmake | 2 +-
bear/cmake-module/CMakeLists.txt | 2 +-
plee-the-bear/CMakeLists.txt | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/bear/cmake-helper/bear-config.cmake b/bear/cmake-helper/bear-config.cmake
index e66d79e..b483445 100644
@@ -103,10 +114,10 @@ index e182689..24c2113 100644
set( BEAR_CMAKE_MODULES
diff --git a/plee-the-bear/CMakeLists.txt b/plee-the-bear/CMakeLists.txt
index 6a123d9..9bc8df3 100644
index 6a123d9..3d81af2 100644
--- a/plee-the-bear/CMakeLists.txt
+++ b/plee-the-bear/CMakeLists.txt
@@ -23,7 +23,7 @@ include( docbook-to-man )
@@ -23,12 +23,12 @@ include( docbook-to-man )
#-------------------------------------------------------------------------------
# where the game resources are installed
if( NOT PTB_INSTALL_DATA_DIR )
@@ -115,6 +126,21 @@ index 6a123d9..9bc8df3 100644
endif( NOT PTB_INSTALL_DATA_DIR )
# where the game executables are installed
if( NOT PTB_INSTALL_EXECUTABLE_DIR )
- set( PTB_INSTALL_EXECUTABLE_DIR bin )
+ set( PTB_INSTALL_EXECUTABLE_DIR bin${CMAKE_HAIKU_SECONDARY_ARCH_SUBDIR} )
endif( NOT PTB_INSTALL_EXECUTABLE_DIR )
# where the game libraries (the items) are installed
@@ -38,7 +38,7 @@ if( NOT PTB_INSTALL_CUSTOM_LIBRARY_DIR )
"${PTB_INSTALL_EXECUTABLE_DIR}"
)
else( WIN32 )
- set( PTB_INSTALL_CUSTOM_LIBRARY_DIR lib )
+ set( PTB_INSTALL_CUSTOM_LIBRARY_DIR lib${CMAKE_HAIKU_SECONDARY_ARCH_SUBDIR} )
endif( WIN32 )
endif( NOT PTB_INSTALL_CUSTOM_LIBRARY_DIR )
@@ -154,7 +154,7 @@ subdirs(
install(
@@ -127,3 +153,65 @@ index 6a123d9..9bc8df3 100644
--
1.8.3.4
From c842dde59df8ca44ecf4e318e8641bcc335e1ec5 Mon Sep 17 00:00:00 2001
From: Theodore Kokkoris <t.kokkoris@gmail.com>
Date: Wed, 24 Dec 2014 23:53:14 +0200
Subject: [PATCH 4/4] Change settings location on Haiku
---
.../bear-engine/core/src/engine/code/game_local_client.cpp | 14 ++++++++++++++
.../src/engine/system/code/default_game_filesystem.cpp | 6 +++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/bear/bear-engine/core/src/engine/code/game_local_client.cpp b/bear/bear-engine/core/src/engine/code/game_local_client.cpp
index 51c055b..83ab880 100644
--- a/bear/bear-engine/core/src/engine/code/game_local_client.cpp
+++ b/bear/bear-engine/core/src/engine/code/game_local_client.cpp
@@ -51,6 +51,11 @@
#include <claw/string_algorithm.hpp>
#include <sstream>
+#if defined(__HAIKU__)
+ #include <FindDirectory.h>
+ #include <Path.h>
+#endif
+
/*----------------------------------------------------------------------------*/
/**
* \brief Print the options of the program.
@@ -1107,6 +1112,15 @@ void bear::engine::game_local_client::init_game_filesystem()
m_game_filesystem =
freedesktop_game_filesystem( m_game_description.game_name() );
+#elif defined( __HAIKU__ )
+ BPath path;
+ status_t status = find_directory(B_USER_SETTINGS_DIRECTORY, &path);
+ if (status < B_OK)
+ // fall back to default
+ m_game_filesystem = default_game_filesystem( m_game_description.game_name() );
+ else
+ m_game_filesystem = default_game_filesystem( m_game_description.game_name(), path.Path());
+
#else
m_game_filesystem = default_game_filesystem( m_game_description.game_name() );
diff --git a/bear/bear-engine/core/src/engine/system/code/default_game_filesystem.cpp b/bear/bear-engine/core/src/engine/system/code/default_game_filesystem.cpp
index 99ea2f8..0435b5a 100644
--- a/bear/bear-engine/core/src/engine/system/code/default_game_filesystem.cpp
+++ b/bear/bear-engine/core/src/engine/system/code/default_game_filesystem.cpp
@@ -107,7 +107,11 @@ std::string bear::engine::default_game_filesystem::get_game_directory() const
boost::filesystem::path dir( m_root );
std::string result;
- std::string subdir = '.' + get_name_as_filename( m_game_name );
+ #if defined(__HAIKU__)
+ std::string subdir = get_name_as_filename( m_game_name );
+ #else
+ std::string subdir = '.' + get_name_as_filename( m_game_name );
+ #endif
dir /= boost::filesystem::path( subdir );
--
1.8.3.4

View File

@@ -6,18 +6,21 @@ SRC_URI="http://www.stuff-o-matic.com/plee-the-bear/download/file.php?platform=s
CHECKSUM_SHA256="41dfe864fe2d791d6f99ba7cd330e22c94fce19d82909054eeac594aa4f2924e"
SRC_FILENAME="plee-the-bear-0.7.0.tgz"
REVISION="1"
ARCHITECTURES="?x86"
REVISION="2"
ARCHITECTURES="x86"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
ARCHITECTURES="x86_gcc2 $ARCHITECTURES"
else
ARCHITECTURES="!x86_gcc2 $ARCHITECTURES"
fi
SECONDARY_ARCHITECTURES="x86"
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
PROVIDES="
plee_the_bear = $portVersion
cmd:plee_the_bear = $portVersion
cmd:plee_the_bear$secondaryArchSuffix = $portVersion
lib:libplee_the_bear$secondaryArchSuffix = $portVersion
lib:libbear_audio$secondaryArchSuffix
lib:libbear_communication$secondaryArchSuffix
lib:libbear_debug$secondaryArchSuffix
@@ -65,7 +68,7 @@ BUILD_REQUIRES="
devel:libpng$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
boost_devel${secondaryArchSuffix}
boost${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
@@ -79,7 +82,7 @@ SOURCE_DIR="plee-the-bear-0.7.0-light"
PATCHES="plee_the_bear-$portVersion.patchset"
BUILD()
{
cmake . -DBEAR_EDITORS_ENABLED=FALSE -DCMAKE_INSTALL_PREFIX=$prefix
cmake . -DBEAR_EDITORS_ENABLED=FALSE -DCMAKE_INSTALL_PREFIX=$prefix -DCMAKE_CXX_FLAGS="-DNDEBUG"
make $jobArgs
}
@@ -88,21 +91,19 @@ INSTALL()
make install
rm -r $prefix/share
addAppDeskbarSymlink $binDir/plee_the_bear "Plee the Bear"
addAppDeskbarSymlink $binDir/plee-the-bear "Plee the Bear"
}
# ----- DESCRIPTION -----------------------------------------------------------
DESCRIPTION="
Plee the Bear is a platform game in which you play an angry bear whose son has
been kidnapped by god. Here is a guy hard to brave! Jump in this amazing journey
to find and rescue your son. Because you want to rescue him, don't you? Or to
slap him? Maybe both….
DESCRIPTION="Plee the Bear is a platform game in which you play an angry bear whose son has \
been kidnapped by god. Here is a guy hard to brave! Jump in this amazing journey \
to find and rescue your son. Because you want to rescue him, don't you? Or to \
slap him? Maybe both…. \
With three levels of the storyline and four mini-games, Plee the Bear did
received very positive criticisms. The players loved the fun, the graphics and
the music; the community around the free software movement appreciated the
overall process and the quality of the resources, remarkable for a free game;
and the indie gaming community was pleasantly surprised by the technical skills
and the details of the game.
"
With three levels of the storyline and four mini-games, Plee the Bear \
received very positive criticisms. The players loved the fun, the graphics and \
the music; the community around the free software movement appreciated the \
overall process and the quality of the resources, remarkable for a free game; \
and the indie gaming community was pleasantly surprised by the technical skills \
and the details of the game."

View File

@@ -0,0 +1,73 @@
SUMMARY="Emulator of Atari 8-bit system"
DESCRIPTION="The Atari++ Emulator is a Unix based emulator of the Atari eight \
bit computers, namely the Atari 400 and 800, the Atari 400XL, 800XL and \
130XE, and the Atari 5200 game console. The emulator is auto-configurable and \
will compile on a variety of systems (Linux, Solaris, Irix). Its emulation \
features are stunning:
* Cycle precise emulation; this includes correct emulation of horizontal \
kernels and programs that modify chip registers within a horizontal line. \
In a less technical language, software making use of advanced displaying \
techniques will be emulated correctly.
* Emulation of an advanced 1050 disk drive including single, double and \
enhanced density. The emulator not only understands .atr and .xfd files, \
but comes with a mini-boot loader that allows you to boot from binary load \
files (.exe and .com)."
HOMEPAGE="http://xl-project.com/"
COPYRIGHT="2004 Thomas Richter"
SRC_URI="http://www.xl-project.com/download/atari++_1.73.tar.gz"
CHECKSUM_SHA256="b41095eeb6362806ddcfa9c59ca319b873fb9eed3bf7a78ad2f2848300e4b3f8"
SOURCE_DIR="atari++"
PATCHES="atari++-$portVersion.patch"
REVISION="1"
LICENSE="GNU GPL v1"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
atari++$secondaryArchSuffix = $portVersion
cmd:atari++ = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libsdl_1.2$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libsdl_1.2$secondaryArchSuffix >= 0.11.4
devel:libpng$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoreconf
cmd:autoheader
cmd:which
cmd:sdl_config$secondaryArchSuffix
cmd:awk
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
BUILD()
{
autoreconf
runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin
make $jobArgs
}
INSTALL()
{
make install
addAppDeskbarSymlink $prefix/bin/atari++ "Atari++"
}

View File

@@ -0,0 +1,25 @@
From 6c18d36b30e6eefe9a757ca9f6c3505d9218e5f3 Mon Sep 17 00:00:00 2001
From: Augustin Cavalier <waddlesplash@gmail.com>
Date: Thu, 18 Dec 2014 12:35:36 -0500
Subject: [PATCH] Fix autoconf script to include the proper header for timeval.
---
configure.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.in b/configure.in
index 76e160d..56c731f 100644
--- a/configure.in
+++ b/configure.in
@@ -159,7 +159,7 @@ AC_CHECK_FUNCS([gettimeofday isascii memchr memmove memset select strcasecmp str
AC_CHECK_FUNCS([time localtime snprintf vsnprintf usleep select getenv isatty chmod])
AC_CHECK_FUNCS([tcsetattr tcgetattr tcflush tcdrain cfmakeraw cfsetospeed cfsetispeed])
AC_CHECK_FUNCS([ioctl open creat close read write unlink fileno])
-AC_CHECK_TYPE([struct timeval],[AC_DEFINE(HAS_STRUCT_TIMEVAL,[1],[Define to 1 if struct timeval is available])])
+AC_CHECK_TYPE([struct timeval],[AC_DEFINE(HAS_STRUCT_TIMEVAL,[1],[Define to 1 if struct timeval is available])],[],[[#include <sys/time.h>]])
#
#
# Check for where X11 could be
--
1.8.3.4

View File

@@ -0,0 +1,60 @@
SUMMARY="SEGA Genesis/Mega Drive emulator"
DESCRIPTION="DGen is a free, open source and portable emulator for the Sega \
Genesis and Mega Drive systems. Features:
* Game Genie/Hex codes support
* PAL/NTSC, fullscreen modes
* Joypad/joystick support
* Mouse support
* Highly configurable controls
* Screenshots, demos recording and playback"
HOMEPAGE="http://dgen.sourceforge.net/"
COPYRIGHT="1998-2014 tamentis & zamaz"
SRC_URI="http://sourceforge.net/projects/dgen/files/dgen/$portVersion/dgen-sdl-$portVersion.tar.gz"
CHECKSUM_SHA256="99e2c06017c22873c77f88186ebcc09867244eb6e042c763bb094b02b8def61e"
SOURCE_DIR="dgen-sdl-$portVersion"
REVISION="1"
LICENSE="BSD (2-clause)"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
dgen$secondaryArchSuffix = $portVersion
cmd:dgen = $portVersion
cmd:dgen_tobin = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl_1.2$secondaryArchSuffix
gcc_syslibs$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl_1.2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:awk
cmd:nasm
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin
make $jobArgs
}
INSTALL()
{
make install
addAppDeskbarSymlink $prefix/bin/dgen "DGen"
}

View File

@@ -0,0 +1,62 @@
SUMMARY="NES/Famicom emulator"
DESCRIPTION="FCEUX is an emulator for the NES and Famicom, based on FCE Ultra \
which is based on FCE. It combines many different changes of FCE Ultra, like \
support for a lot of the different hardware of NES Cartridges, rerecording \
bult-in and a high level of portability."
HOMEPAGE="http://fceux.com/web/"
COPYRIGHT="1998-2014 tamentis & zamaz"
SRC_URI="http://sourceforge.net/projects/fceultra/files/Source%20Code/2.2.2%20src/fceux-2.2.2.src.tar.gz"
CHECKSUM_SHA256="804d11bdb4a195f3a580ce5d2d01be877582763378637e16186a22459f5fe5e1"
REVISION="1"
LICENSE="GNU GPL v2"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PATCHES="fceux-$portVersion.patch"
PROVIDES="
fceux$secondaryArchSuffix = $portVersion
cmd:fceux$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
glu$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl$secondaryArchSuffix
devel:libgl${secondaryArchSuffix}
glu${secondaryArchSuffix}_devel
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:scons
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
BUILD()
{
scons OPENGL=1 GTK=0 LUA=0 $jobArgs
}
INSTALL()
{
mkdir -p $binDir $manDir/man6
cp bin/fceux $binDir
cp documentation/fceux.6 $manDir/man6
}

View File

@@ -0,0 +1,143 @@
From d960b6ab8ec3d9e25916d6c09c22febe55a716e9 Mon Sep 17 00:00:00 2001
From: Puck Meerburg <puck@puckipedia.nl>
Date: Sun, 4 Jan 2015 19:33:38 +0100
Subject: Fix Haiku build
diff --git a/SConstruct b/SConstruct
index 4d5b446..a6fb618 100644
--- a/SConstruct
+++ b/SConstruct
@@ -33,7 +33,7 @@ opts.AddVariables(
AddOption('--prefix', dest='prefix', type='string', nargs=1, action='store', metavar='DIR', help='installation prefix')
prefix = GetOption('prefix')
-env = Environment(options = opts)
+env = Environment(options = opts, ENV=os.environ)
if env['RELEASE']:
env.Append(CPPDEFINES=["PUBLIC_RELEASE"])
@@ -46,23 +46,6 @@ if platform.system == "ppc":
# Default compiler flags:
env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare'])
-if os.environ.has_key('PLATFORM'):
- env.Replace(PLATFORM = os.environ['PLATFORM'])
-if os.environ.has_key('CC'):
- env.Replace(CC = os.environ['CC'])
-if os.environ.has_key('CXX'):
- env.Replace(CXX = os.environ['CXX'])
-if os.environ.has_key('WINDRES'):
- env.Replace(WINDRES = os.environ['WINDRES'])
-if os.environ.has_key('CFLAGS'):
- env.Append(CCFLAGS = os.environ['CFLAGS'].split())
-if os.environ.has_key('CXXFLAGS'):
- env.Append(CXXFLAGS = os.environ['CXXFLAGS'].split())
-if os.environ.has_key('CPPFLAGS'):
- env.Append(CPPFLAGS = os.environ['CPPFLAGS'].split())
-if os.environ.has_key('LDFLAGS'):
- env.Append(LINKFLAGS = os.environ['LDFLAGS'].split())
-
print "platform: ", env['PLATFORM']
# compile with clang
@@ -187,7 +170,6 @@ else:
Export('env')
fceux = SConscript('src/SConscript')
-env.Program(target="fceux-net-server", source=["fceux-server/server.cpp", "fceux-server/md5.cpp", "fceux-server/throttle.cpp"])
# Installation rules
if prefix == None:
@@ -200,9 +182,6 @@ if env['PLATFORM'] == 'win32':
fceux_src = 'src/fceux' + exe_suffix
fceux_dst = 'bin/fceux' + exe_suffix
-fceux_net_server_src = 'fceux-net-server' + exe_suffix
-fceux_net_server_dst = 'bin/fceux-net-server' + exe_suffix
-
auxlib_src = 'src/auxlib.lua'
auxlib_dst = 'bin/auxlib.lua'
auxlib_inst_dst = prefix + '/share/fceux/auxlib.lua'
@@ -212,13 +191,10 @@ fceux_h_dst = 'bin/fceux.chm'
env.Command(fceux_h_dst, fceux_h_src, [Copy(fceux_h_dst, fceux_h_src)])
env.Command(fceux_dst, fceux_src, [Copy(fceux_dst, fceux_src)])
-env.Command(fceux_net_server_dst, fceux_net_server_src, [Copy(fceux_net_server_dst, fceux_net_server_src)])
env.Command(auxlib_dst, auxlib_src, [Copy(auxlib_dst, auxlib_src)])
man_src = 'documentation/fceux.6'
-man_net_src = 'documentation/fceux-net-server.6'
man_dst = prefix + '/share/man/man6/fceux.6'
-man_net_dst = prefix + '/share/man/man6/fceux-net-server.6'
share_src = 'output/'
share_dst = prefix + '/share/fceux/'
@@ -230,12 +206,24 @@ desktop_src = 'fceux.desktop'
desktop_dst = prefix + '/share/applications/'
env.Install(prefix + "/bin/", fceux)
-env.Install(prefix + "/bin/", "fceux-net-server")
# TODO: Where to put auxlib on "scons install?"
env.Alias('install', env.Command(auxlib_inst_dst, auxlib_src, [Copy(auxlib_inst_dst, auxlib_src)]))
env.Alias('install', env.Command(share_dst, share_src, [Copy(share_dst, share_src)]))
env.Alias('install', env.Command(man_dst, man_src, [Copy(man_dst, man_src)]))
-env.Alias('install', env.Command(man_net_dst, man_net_src, [Copy(man_net_dst, man_net_src)]))
env.Alias('install', env.Command(image_dst, image_src, [Copy(image_dst, image_src)]))
env.Alias('install', env.Command(desktop_dst, desktop_src, [Copy(desktop_dst, desktop_src)]))
env.Alias('install', (prefix + "/bin/"))
+
+
+if env['PLATFORM'] != 'haiku':
+ env.Program(target="fceux-net-server", source=["fceux-server/server.cpp", "fceux-server/md5.cpp", "fceux-server/throttle.cpp"])
+
+ fceux_net_server_src = 'fceux-net-server' + exe_suffix
+ fceux_net_server_dst = 'bin/fceux-net-server' + exe_suffix
+ env.Command(fceux_net_server_dst, fceux_net_server_src, [Copy(fceux_net_server_dst, fceux_net_server_src)])
+
+ env.Install(prefix + "/bin/", "fceux-net-server")
+
+ man_net_src = 'documentation/fceux-net-server.6'
+ man_net_dst = prefix + '/share/man/man6/fceux-net-server.6'
+ env.Alias('install', env.Command(man_net_dst, man_net_src, [Copy(man_net_dst, man_net_src)]))
diff --git a/src/drivers/sdl/SConscript b/src/drivers/sdl/SConscript
index 7a53b07..8f62c40 100644
--- a/src/drivers/sdl/SConscript
+++ b/src/drivers/sdl/SConscript
@@ -4,7 +4,10 @@ Import('env')
config_string = 'pkg-config --cflags --libs x11'
if env['PLATFORM'] == 'darwin':
config_string = 'PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig/ ' + config_string
-env.ParseConfig(config_string)
+
+if env['PLATFORM'] != 'haiku':
+ env.ParseConfig(config_string)
+
Export('env')
source_list = Split(
@@ -26,5 +29,8 @@ if 'GL' in env['LIBS']:
if env['GTK'] or env['GTK3']:
source_list.append('gui.cpp')
+if env['PLATFORM'] == 'haiku':
+ env.Append(LIBS = ['network'])
+
source_list = ['drivers/sdl/' + source for source in source_list]
Return('source_list')
diff --git a/src/utils/ioapi.cpp b/src/utils/ioapi.cpp
index c2b536f..0363efd 100644
--- a/src/utils/ioapi.cpp
+++ b/src/utils/ioapi.cpp
@@ -14,7 +14,7 @@
#define _CRT_SECURE_NO_WARNINGS
#endif
-#if defined(__APPLE__) || defined(IOAPI_NO_64)
+#if defined(__APPLE__) || defined(__HAIKU__) || defined(IOAPI_NO_64)
// In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions
#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
#define FTELLO_FUNC(stream) ftello(stream)
--
1.8.3.4

View File

@@ -0,0 +1,51 @@
SUMMARY="A fully-featured Atari 2600 emulator"
DESCRIPTION="z26 is an Atari 2600 emulator which supports a lot of carts and a \
whole lot of peripherals, including mindlink, Trak-Ball, Light Gun and much more!\
It also supports multiload files, and a whole lot of other features."
HOMEPAGE="http://whimsey.com/z26/"
SRC_URI="http://whimsey.com/z26/z26v2.16.00s.zip"
CHECKSUM_SHA256="fe285597543a9f562b25f11e57804c604d8226d9a6dc6dc1b9e2a4cfc5f38276"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="1997-2004 John Saeger"
ARCHITECTURES="x86"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
z26$secondaryArchSuffix = $portVersion
app:z26$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl${secondaryArchSuffix}
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:nasm
cmd:ld$secondaryArchSuffix
"
SOURCE_DIR="src"
BUILD()
{
make beos
}
INSTALL()
{
mkdir -p $appsDir
cp z26 $appsDir/z26
addAppDeskbarSymlink $appsDir/z26 "z26"
}

View File

@@ -0,0 +1,87 @@
SUMMARY="A C++ 2D game engine designed for an easy cross-platform game development"
DESCRIPTION="
Entropia Engine++ is a C++ 2D game engine designed for an easy \
cross-platform game development.
"
HOMEPAGE="http://bitbucket.org/SpartanJ/eepp"
SRC_URI="hg+http://bitbucket.org/SpartanJ/eepp#7318464094366388344fe30e58f521c6b46781b6"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2011-2014 Martín Lucas Golini"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
eepp$secondaryArchSuffix = $portVersion
lib:libeepp$secondaryArchSuffix = $portVersion
lib:libeepp_debug$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libsdl2$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libsdl2$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libgl$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:premake4$secondaryArchSuffix
cmd:make
cmd:hg
"
SOURCE_DIR=""
BUILD()
{
cd src/eepp/helper
rm -rf SOIL2
hg clone http://bitbucket.org/SpartanJ/soil2 SOIL2 -r 5ebbd585ec79022bf94db977c0e56eae374e7156
sed -i '/targetname "soil2"/a \
\
configuration "haiku" \
buildoptions{ "-march=native" }' SOIL2/premake4.lua
cd ../../..
premake4 gmake --os=haiku
cd make/haiku
make
}
INSTALL()
{
mkdir -p $includeDir
mkdir -p $developLibDir
mkdir -p $libDir
cp -r include/* $includeDir/
cp libs/haiku/lib*.a $developLibDir/
cp libs/haiku/lib*.so $libDir/
prepareInstalledDevelLibs libeepp-debug
packageEntries devel $developDir
}
PROVIDES_devel="
eepp${secondaryArchSuffix}_devel = $portVersion
devel:libeepp$secondaryArchSuffix = $portVersion
devel:libeepp_debug$secondaryArchSuffix = $portVersion
devel:libeepp_main$secondaryArchSuffix = $portVersion
devel:libeepp_static_debug$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
eepp$secondaryArchSuffix == $portVersion
"

View File

@@ -0,0 +1,578 @@
OpenSceneGraph Public License, Version 0.0
==========================================
Copyright (C) 2002 Robert Osfield.
Everyone is permitted to copy and distribute verbatim copies
of this licence document, but changing it is not allowed.
OPENSCENEGRAPH PUBLIC LICENCE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
This library is free software; you can redistribute it and/or modify it
under the terms of the OpenSceneGraph Public License (OSGPL) version 0.0
or later.
Notes: the OSGPL is based on the LGPL, with the 4 exceptions laid
out in the wxWindows section below. The LGPL is contained in the
final section of this license.
-------------------------------------------------------------------------------
wxWindows Library Licence, Version 3
====================================
Copyright (C) 1998 Julian Smart, Robert Roebling [, ...]
Everyone is permitted to copy and distribute verbatim copies
of this licence document, but changing it is not allowed.
WXWINDOWS LIBRARY LICENCE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public Licence as published by
the Free Software Foundation; either version 2 of the Licence, or (at
your option) any later version.
This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
General Public Licence for more details.
You should have received a copy of the GNU Library General Public Licence
along with this software, usually in a file named COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA.
EXCEPTION NOTICE
1. As a special exception, the copyright holders of this library give
permission for additional uses of the text contained in this release of
the library as licenced under the wxWindows Library Licence, applying
either version 3 of the Licence, or (at your option) any later version of
the Licence as published by the copyright holders of version 3 of the
Licence document.
2. The exception is that you may use, copy, link, modify and distribute
under the user's own terms, binary object code versions of works based
on the Library.
3. If you copy code from files distributed under the terms of the GNU
General Public Licence or the GNU Library General Public Licence into a
copy of this library, as this licence permits, the exception does not
apply to the code that you add in this way. To avoid misleading anyone as
to the status of such modified files, you must delete this exception
notice from such code and/or adjust the licensing conditions notice
accordingly.
4. If you write modifications of your own for this library, it is your
choice whether to permit this exception to apply to your modifications.
If you do not wish that, you must delete the exception notice from such
code and/or adjust the licensing conditions notice accordingly.
------------------------------------------------------------------------------
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

View File

@@ -0,0 +1,144 @@
SUMMARY="An open source, real-time graphics middle-ware used by developers"
DESCRIPTION="
The OpenSceneGraph is an open source high performance 3D graphics toolkit, used \
by application developers in fields such as visual simulation, games, virtual \
reality, scientific visualization and modelling. Written entirely in Standard \
C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris \
, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well \
established as the world leading scene graph technology, used widely in the \
vis-sim, space, scientific, oil-gas, games and virtual reality industries."
HOMEPAGE="http://www.openscenegraph.org"
SRC_URI="http://www.openscenegraph.org/downloads/developer_releases/OpenSceneGraph-3.2.1.zip"
CHECKSUM_SHA256="d9ae72263d0191855b0f804d93c586d489f119aca0499292acc09bb0fa0b3e6d"
REVISION="1"
LICENSE="OSGPL"
COPYRIGHT="2002-2014 Robert Osfield and others"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
openscenegraph$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libOpenThreads$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosg$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgAnimation$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgDB$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgFX$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgGA$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgManipulator$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgParticle$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgPresentation$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgShadow$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgSim$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgTerrain$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgText$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgUtil$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgViewer$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgVolume$secondaryArchSuffix = 3.2.1 compat >= 3
lib:libosgWidget$secondaryArchSuffix = 3.2.1 compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix
mesa$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
mesa${secondaryArchSuffix}_devel
devel:libsdl$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:cmake
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
PATCHES="openscenegraph-3.2.1.patchset"
SOURCE_DIR="OpenSceneGraph-3.2.1"
BUILD()
{
cmake . -DCMAKE_INSTALL_PREFIX=$prefix -DOSG_USE_QT=OFF -DBUILD_OSG_APPLICATIONS=OFF -DOSG_WINDOWING_SYSTEM=None
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $includeDir
mv $prefix/include/* $includeDir/
rm -rf $prefix/include
mkdir -p $prefix/lib-temp
mv $prefix/lib/* $prefix/lib-temp/
mkdir -p $libDir
mv $prefix/lib-temp/* $libDir
rm -rf $prefix/lib-temp
prepareInstalledDevelLibs libOpenThreads \
libosg libosgAnimation libosgDB libosgFX \
libosgGA libosgManipulator libosgParticle \
libosgPresentation libosgShadow libosgSim \
libosgTerrain libosgText libosgUtil libosgViewer \
libosgVolume libosgWidget
fixPkgconfig
packageEntries devel $developDir
}
PROVIDES_devel="
openscenegraph${secondaryArchSuffix}_devel = 3.2.1 compat >= 3
devel:libOpenThreads$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosg$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgAnimation$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgDB$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgFX$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgGA$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgManipulator$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgParticle$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgPresentation$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgShadow$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgSim$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgTerrain$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgText$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgUtil$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgViewer$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgVolume$secondaryArchSuffix = 3.2.1 compat >= 3
devel:libosgWidget$secondaryArchSuffix = 3.2.1 compat >= 3
"
REQUIRES_devel="
openscenegraph$secondaryArchSuffix == $portVersion
"

View File

@@ -0,0 +1,145 @@
SUMMARY="An open source, real-time graphics middle-ware used by developers"
DESCRIPTION="
The OpenSceneGraph is an open source high performance 3D graphics toolkit, used \
by application developers in fields such as visual simulation, games, virtual \
reality, scientific visualization and modelling. Written entirely in Standard \
C++ and OpenGL it runs on all Windows platforms, OSX, GNU/Linux, IRIX, Solaris \
, HP-Ux, AIX and FreeBSD operating systems. The OpenSceneGraph is now well \
established as the world leading scene graph technology, used widely in the \
vis-sim, space, scientific, oil-gas, games and virtual reality industries."
HOMEPAGE="http://www.openscenegraph.org"
SRC_URI="git://github.com/openscenegraph/osg#77f09f9e649cfedd32608ed6ec67bf1de7cd53ac"
REVISION="1"
LICENSE="OSGPL"
COPYRIGHT="2002-2014 Robert Osfield and others"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
openscenegraph$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libOpenThreads$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosg$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgAnimation$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgDB$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgFX$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgGA$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgManipulator$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgParticle$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgPresentation$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgShadow$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgSim$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgTerrain$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgText$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgUtil$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgViewer$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgVolume$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgWidget$secondaryArchSuffix = 3.3.4 compat >= 3
lib:libosgUI$secondaryArchSuffix = 3.3.4 compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix
mesa$secondaryArchSuffix
lib:libgl$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libpng$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libcurl$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
mesa${secondaryArchSuffix}_devel
devel:libsdl$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix
devel:libjpeg$secondaryArchSuffix
devel:libcurl$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:cmake
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
PATCHES="openscenegraph-3.2.1.patchset"
SOURCE_DIR="OpenSceneGraph-3.2.1"
BUILD()
{
cmake . -DCMAKE_INSTALL_PREFIX=$prefix -DOSG_USE_QT=OFF -DBUILD_OSG_APPLICATIONS=OFF -DOSG_WINDOWING_SYSTEM=None
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $includeDir
mv $prefix/include/* $includeDir/
rm -rf $prefix/include
mkdir -p $prefix/lib-temp
mv $prefix/lib/* $prefix/lib-temp/
mkdir -p $libDir
mv $prefix/lib-temp/* $libDir
rm -rf $prefix/lib-temp
prepareInstalledDevelLibs libOpenThreads \
libosg libosgAnimation libosgDB libosgFX \
libosgGA libosgManipulator libosgParticle \
libosgPresentation libosgShadow libosgSim \
libosgTerrain libosgText libosgUtil libosgViewer \
libosgVolume libosgWidget libosgUI
fixPkgconfig
packageEntries devel $developDir
}
PROVIDES_devel="
openscenegraph${secondaryArchSuffix}_devel = 3.3.4 compat >= 3
devel:libOpenThreads$secondaryArchSuffix = 3.3.0 compat >= 3
devel:libosg$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgAnimation$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgDB$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgFX$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgGA$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgManipulator$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgParticle$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgPresentation$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgShadow$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgSim$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgTerrain$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgText$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgUtil$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgViewer$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgVolume$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgWidget$secondaryArchSuffix = 3.3.4 compat >= 3
devel:libosgUI$secondaryArchSuffix = 3.3.4 compat >= 3
"
REQUIRES_devel="
openscenegraph$secondaryArchSuffix == 3.3.4
"

View File

@@ -0,0 +1,36 @@
From 3e731d32a286903a4b75d445ec6fdf0b8359b5d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adri=C3=A1n=20Arroyo=20Calle?=
<adrian.arroyocalle@gmail.com>
Date: Wed, 24 Dec 2014 14:55:21 +0000
Subject: Add __HAIKU__ when needed
diff --git a/src/osgDB/FileUtils.cpp b/src/osgDB/FileUtils.cpp
index affd682..dcbb532 100644
--- a/src/osgDB/FileUtils.cpp
+++ b/src/osgDB/FileUtils.cpp
@@ -76,7 +76,7 @@ typedef char TCHAR;
#if (MAC_OS_X_VERSION_MAX_ALLOWED <= 1040)
#define stat64 stat
#endif
-#elif defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__DragonFly__) || \
+#elif defined(__CYGWIN__) || defined(__HAIKU__) || defined(__FreeBSD__) || defined(__DragonFly__) || \
(defined(__hpux) && !defined(_LARGEFILE64_SOURCE))
#define stat64 stat
#endif
diff --git a/src/osgPlugins/osc/osc/OscHostEndianness.h b/src/osgPlugins/osc/osc/OscHostEndianness.h
index 3720ea6..6f4c6bc 100644
--- a/src/osgPlugins/osc/osc/OscHostEndianness.h
+++ b/src/osgPlugins/osc/osc/OscHostEndianness.h
@@ -51,7 +51,7 @@
#else
- #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__)
+ #if defined(__GLIBC__) || defined(__ANDROID__) || defined(__CYGWIN__) || defined(__HAIKU__)
#include <endian.h>
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
#define __LITTLE_ENDIAN__
--
1.8.3.4

View File

@@ -0,0 +1,66 @@
SUMMARY="Abe's Amazing Adventure!!"
DESCRIPTION="This is a very simple platformer game for children. \
It's a worthwhile adventure, no doubt. Find treasures as you go! \
In addition, this game also comes with a Map Editor.
"
HOMEPAGE="http://abe.sourceforge.net/"
SRC_URI="http://superb-dca3.dl.sourceforge.net/project/abe/abe/abe-1.1/abe-1.1.tar.gz"
CHECKSUM_SHA256="dfc4ea74c04c92175abc5c9d65cfa6aad218209854d87d87758878e303b677f7"
SOURCE_DIR="abe-1.1"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2001-2013 Gabor Torok"
ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
Abe= $portVersion
app:Abe= $portVersion
"
REQUIRES="
haiku
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel
devel:libsdl
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:libtoolize
cmd:make
cmd:gcc
cmd:aclocal
cmd:automake
cmd:autoconf
"
PATCH()
{
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g' configure.in
}
BUILD()
{
libtoolize --force --copy --install
aclocal -I $sourceDir
autoconf
./autogen.sh
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $appsDir/Abe
cd src
cp abe $appsDir/Abe
cd $sourceDir
cp -r maps savegame sounds images devcpp dist $appsDir/Abe
addAppDeskbarSymlink $appsDir/Abe/abe
}

View File

@@ -0,0 +1,25 @@
resource app_signature "application/x-vnd.colorcode";
resource vector_icon array {
$"6E6369660505C60201040200FF5959FFFF06060201140200DAFFEA0200040200"
$"F9FF6EFFFFF95902010402FF6DD0FF0044ADFF060204402262221E222240221E"
$"2262405E1E5E625E5E405E625E1E0204C52128C7A828C2992842BAC542B83D42"
$"BD4CC5213FC2993FC7A83F59BAC559BD4C59B83D0204BA5F27BCE627B7D72727"
$"BA5F27B7D727BCE6BA5F3EB7D73EBCE63E3EBA5F3EBCE63EB7D70204BA5F42BC"
$"E642B7D74227C52127C29927C7A8BA5F59B7D759BCE6593EC5213EC7A83EC299"
$"0204C52142C7A842C2994242C52142C29942C7A8C52159C29959C7A85959C521"
$"59C7A859C2990A042222225E5E5E5E22050A000100000A040102000A03010100"
$"0A010103000A02010400"
};
resource app_version {
major = 0,
middle = 7,
minor = 2,
variety = B_APPV_FINAL,
internal = 0,
short_info = "ColorCode",
long_info = "ColorCode ©2009-2011 Dirk Laebisch"
};

View File

@@ -0,0 +1,66 @@
SUMMARY="A free advanced MasterMind clone."
DESCRIPTION="ColorCode is a free advanced MasterMind clone with lots of \
different game variants, from the very easy up to really challenging ones. \
You can combine any color count from 2-10 with any column count from 2-5 and \
allow or not pegs of the same color. Or you may select one of the 5 \
predefined levels of difficulty. ColorCode has also a rather intelligent \
built in MasterMind solver - so you can let the computer guess for you \
(nope, he's not cheating - really)."
HOMEPAGE="http://colorcode.laebisch.com/"
SRC_URI="http://colorcode.laebisch.com/download/ColorCode-0.7.2.tar.gz"
CHECKSUM_SHA256="d1c5bf4d65c81de16c4159c2c69c096fc7ff47cca587d7233985e078d63c79aa"
SOURCE_DIR="ColorCode-0.7.2"
REVISION="1"
LICENSE="GNU GPL v3"
COPYRIGHT="2009-2011 Dirk Laebisch"
ARCHITECTURES="x86 ?x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
colorcode = $portVersion
app:ColorCode = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libqtcore$secondaryArchSuffix < 5
lib:libqtgui$secondaryArchSuffix < 5
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libqtcore$secondaryArchSuffix < 5
devel:libqtgui$secondaryArchSuffix < 5
"
BUILD_PREREQUIRES="
cmd:qmake$secondaryArchSuffix
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:xres
"
BUILD()
{
qmake
make
}
INSTALL()
{
mkdir -p $appsDir
cp colorcode $appsDir/ColorCode
addResourcesToBinaries $portDir/additional-files/colorcode.rdef \
$appsDir/ColorCode
addAppDeskbarSymlink $appsDir/ColorCode ColorCode
}

View File

@@ -0,0 +1,35 @@
resource app_signature "application/x-vnd.lgames.lmarbles";
resource vector_icon array {
$"6E63696604020106023D1D3F341202B40EF83D18AC49111A48F914FF00008200"
$"0097FF020116023D20000000000000003D2000494000496000FF4700DD044A82"
$"05010402044030C34530BC3A30304030BC3A30C3454050BC3A50C34550504050"
$"C34550BC3A0204C35CBC8C4BBDE0C295BB37BEBEBC03C084BAFABCF7BD0CBCEF"
$"C04BBC29BEF7BDB6C1A0C18DC0D4BFC7C1DDC354BFCB06033E414F3B48414939"
$"4540463D454649060EEEBFFB0F304E224724512142253F2333203A2530302F28"
$"2D312B3A27342740274331432E43344038433F443AC08DC14E4046434B434745"
$"4A504F4C48C7E4C8D24C5C4D5B4B5D3E55BFD5CC153359110A020100023D6148"
$"2CE9C7B814483D76EE4A84FB4A8D970A020100023C8D1ABC8FEE3CA8493CA55A"
$"48DD5F4A66B20A03010330242001178400040A010100023E6000000000000000"
$"3E6000C380004850000A02010220141A0A030100123E60000000000000003E60"
$"0046A00049300001178300040A000100023E60000000000000003E600046A000"
$"4930000A0201022024200A030100123E60000000000000003E60004910004A08"
$"0001178300040A010100023E60000000000000003E60004910004A08000A0301"
$"00123E60000000000000003E6000C3800044400001178300040A000100023E60"
$"000000000000003E6000C380004440000A030100123E60000000000000003E60"
$"0046A00046E00001178300040A010100023E60000000000000003E600046A000"
$"46E0000A0201022023130A030100123E60000000000000003E600046A000C280"
$"0001178300040A000100023E60000000000000003E600046A000C28000"
};
resource app_version {
major = 1,
middle = 0,
minor = 8,
variety = B_APPV_FINAL,
internal = 0,
short_info = "LMarbles",
long_info = "LMarbles ©2000 Michael Speck"
};

View File

@@ -9,17 +9,16 @@ and not a time limit. This way you have as much time as you need to think."
HOMEPAGE="http://lgames.sourceforge.net/"
SRC_URI="http://sourceforge.net/projects/lgames/files/lmarbles/lmarbles-1.0.8.tar.gz"
CHECKSUM_SHA256="0e5a16a0116d325589b28f3555ced6a0b486f0fd7632cd3d98bee5cddf213e83"
REVISION="1"
REVISION="2"
LICENSE="GNU GPL v2"
COPYRIGHT="2000 Michael Speck"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PATCHES="lmarbles-1.0.8.patch"
GLOBAL_WRITABLE_FILES="var/lmarbles.prfs keep-old"
PATCHES="lmarbles-1.0.8.patchset"
PROVIDES="
lmarbles = $portVersion
cmd:lmarbles = $portVersion
app:LMarbles = $portVersion
"
REQUIRES="
@@ -39,6 +38,7 @@ BUILD_PREREQUIRES="
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:xres
"
BUILD()
@@ -46,10 +46,15 @@ BUILD()
libtoolize --force --copy --install
runConfigure ./configure
make $jobArgs
addResourcesToBinaries $portDir/additional-files/lmarbles.rdef src/lmarbles
}
INSTALL()
{
make install
addAppDeskbarSymlink $binDir/lmarbles LMarbles
mkdir -p $appsDir
mv $binDir/lmarbles $appsDir/LMarbles
addAppDeskbarSymlink $appsDir/LMarbles LMarbles
mimeset -f $appsDir/LMarbles
}

View File

@@ -1,20 +0,0 @@
--- lmarbles-1.0.8/configure.org 2009-10-26 20:56:13.000000000 +0100
+++ lmarbles-1.0.8/configure 2014-07-14 18:31:02.527958016 +0200
@@ -5154,7 +5154,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm $LIBS"
+LIBS="$LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5208,7 +5208,7 @@
#define HAVE_LIBM 1
_ACEOF
- LIBS="-lm $LIBS"
+ LIBS="$LIBS"
else
{ { echo "$as_me:$LINENO: error: lib math is needed" >&5

View File

@@ -0,0 +1,105 @@
From 6b5f57906db0f0fd8a15fc60da2a791d9ea2bc36 Mon Sep 17 00:00:00 2001
From: Puck Meerburg <puck@puckipedia.nl>
Date: Mon, 5 Jan 2015 17:41:59 +0100
Subject: Apply original lmarbles patch
diff --git a/configure b/configure
index 543fb95..b012313 100755
--- a/configure
+++ b/configure
@@ -5154,7 +5154,7 @@ if test "${ac_cv_lib_m_main+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm $LIBS"
+LIBS="$LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5208,7 +5208,7 @@ if test $ac_cv_lib_m_main = yes; then
#define HAVE_LIBM 1
_ACEOF
- LIBS="-lm $LIBS"
+ LIBS="$LIBS"
else
{ { echo "$as_me:$LINENO: error: lib math is needed" >&5
--
1.8.3.4
From f837403562b62f6aa17a967597fe61e54499a7bb Mon Sep 17 00:00:00 2001
From: Puck Meerburg <puck@puckipedia.nl>
Date: Mon, 5 Jan 2015 17:54:53 +0100
Subject: Have lmarbles use find_directory for config
diff --git a/src/cfg.c b/src/cfg.c
index 2831c1b..4d713f5 100644
--- a/src/cfg.c
+++ b/src/cfg.c
@@ -25,6 +25,10 @@
#include <sys/stat.h>
#include <dirent.h>
+#ifdef __HAIKU__
+#include <FindDirectory.h>
+#endif
+
#ifdef _WIN32
#define MKDIR(d, p) mkdir(d)
#else
@@ -40,14 +44,16 @@ Cfg cfg;
void C_StPth()
{
DIR *dir;
-#ifdef _WIN32
+#if defined(__HAIKU__)
+ find_directory(B_USER_SETTINGS_DIRECTORY, -1, false, c_pth, sizeof(c_pth) - 1);
+#elif defined(_WIN32)
snprintf( c_pth, sizeof(c_pth)-1, "%s/lgames", (getenv( "HOME" )?getenv( "HOME" ):".") );
#else
snprintf( c_pth, sizeof(c_pth)-1, "%s/.lgames", getenv( "HOME" ) );
#endif
/* create .lgames directory if not found */
if ( (dir = opendir( c_pth )) == 0 ) {
- fprintf( stderr, "Config directory ~/.lgames not found. Creating it.\n" );
+ fprintf( stderr, "Config directory %s not found. Creating it.\n", c_pth );
MKDIR( c_pth, S_IRWXU );
}
else
diff --git a/src/profile.c b/src/profile.c
index 218c856..9ebf47b 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -22,6 +22,10 @@
#include "cfg.h"
#include "file.h"
+#ifdef __HAIKU__
+#include <FindDirectory.h>
+#endif
+
// profiles //
DLst prfs;
// string list for the menu //
@@ -38,8 +42,13 @@ void Prf_Ini()
DL_Ini(&prfs);
prfs.flgs = DL_AUTODEL;
prfs.cb = Prf_Del;
-
+#ifdef __HAIKU__
+ find_directory(B_USER_SETTINGS_DIRECTORY, -1, false, prf_pth,
+ sizeof(prf_pth) - 1);
+ strcat(prf_pth, "/lmarbles.prfs");
+#else
sprintf(prf_pth, "%s/lmarbles.prfs", PRF_DIR);
+#endif
}
/* terminate profiles; must be saved first */
--
1.8.3.4

View File

@@ -5,7 +5,7 @@ Angband is a free, single-player dungeon exploration game. You play an \
adventurer: seeking riches, fighting monsters, and preparing for a final \
battle with Morgoth, the Lord of Darkness.
"
REVISION="1"
REVISION="2"
ARCHITECTURES="x86_gcc2"
LICENSE="GNU GPL v2"
COPYRIGHT="
@@ -102,6 +102,7 @@ BUILD_PREREQUIRES="
cmd:make
"
PATCHES="angband-${portVersion}.patchset"
BUILD()
{
autoconf

View File

@@ -1,5 +1,5 @@
SUMMARY="Single-player 2D action RPG."
DESCRIPTION="Flare is a a single-player 2D action RPG with fast-paced action \
DESCRIPTION="Flare is a single-player 2D action RPG with fast-paced action \
and a dark fantasy style."
HOMEPAGE="http://flarerpg.org"
SRC_URI="http://downloads.sourceforge.net/project/flare-game/Linux/flare.0.19.tar.gz"
@@ -12,8 +12,6 @@ COPYRIGHT="2010-2013 Clint Bellanger"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"

View File

@@ -0,0 +1,41 @@
SUMMARY="A Tracker add-on to encrypt files using AES cipher."
DESCRIPTION="AESAddOn is a Tracker add-on which adds the functionality of encrypting files \
with AES 128, 192, and 256 bit. It works only as a Tracker add-on."
HOMEPAGE="https://github.com/HaikuArchives/AESAddOn"
SRC_URI="git://github.com/HaikuArchives/AESAddOn#78dd4c50634a97bbe04bd68479cedc114a14cb4d"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2003 Jason Grenier"
ARCHITECTURES="!x86_gcc2 ?x86"
#Resulting Tracker add-on doesn't seem to be working.
PROVIDES="
aesaddon = $portVersion
app:AESAddOn = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:make
cmd:gcc
cmd:g++
"
BUILD()
{
cd src
make $jobArgs
}
INSTALL()
{
cd src
make install INSTALL_DIR=$addOnsDir/Tracker
}

View File

@@ -1,26 +0,0 @@
DESCRIPTION="
APlayer is a module player and can play a lot of different music file formats, \
from Amiga and elsewhere.
"
HOMEPAGE="http://pulkomandy.tk/projects/APlayer"
SRC_URI="svn://pulkomandy.tk/APlayer/trunk/"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
BUILD()
{
cd aplayer-4.0.1/Master
make
}
INSTALL()
{
mkdir -p ${DESTDIR}/`finddir B_APPS_DIRECTORY`/APlayer
cp -a APlayer ${DESTDIR}/`finddir B_APPS_DIRECTORY`/APlayer
}
LICENSE="Artistic Licence"
COPYRIGHT="1994-2002 Polycode
2011-2012 Adrien Destugues
"

View File

@@ -1,12 +1,13 @@
SUMMARY="A file manager for Haiku."
DESCRIPTION="
BAfx is a file manager for Haiku.
"
DESCRIPTION="BAfx is a file manager for BeOS/Haiku. It uses a single window \
with two panes for source and destination folder. \
The file manager is still in early stages of development. \
A built-in text and image viewer are planned for future releases."
HOMEPAGE="https://github.com/marbocub/BAfx"
SRC_URI="git+https://github.com/marbocub/BAfx#4b14a8ba4c"
SRC_URI="git+https://github.com/marbocub/BAfx#ebd3db8a22"
COPYRIGHT="2012 @marbocub"
LICENSE="MIT"
REVISION="2"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
PROVIDES="
@@ -25,8 +26,6 @@ BUILD_PREREQUIRES="
cmd:mkdepend
"
PATCHES="bafx-0.0.1.patchset"
BUILD()
{
make OBJ_DIR=objects \

View File

@@ -1,22 +0,0 @@
From 7c5605074b639c6daa54275d1ced9720555da3d1 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 2 Dec 2013 17:37:11 -0700
Subject: Fix makefile stdc++ libs
diff --git a/Makefile b/Makefile
index 6f14782..50893a9 100755
--- a/Makefile
+++ b/Makefile
@@ -56,7 +56,7 @@ RSRCS=
# naming scheme you need to specify the path to the library
# and it's name
# library: my_lib.a entry: my_lib.a or path/my_lib.a
-LIBS= be
+LIBS= be $(STDCPPLIBS)
# specify additional paths to directories following the standard
# libXXX.so or libXXX.a naming scheme. You can specify full paths
--
1.8.3.4

View File

@@ -1,7 +1,7 @@
SUMMARY="An e-mail client."
HOMEPAGE="http://beam.sourceforge.net"
SRC_URI="git://beam.git.sourceforge.net/gitroot/beam/beam"
REVISION="3"
SRC_URI="git://beam.git.sourceforge.net/gitroot/beam/beam#95dc769db2f9090a038bc5a2c46f009379b2d57b"
REVISION="5"
ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
beam = $portVersion
@@ -26,8 +26,6 @@ BUILD_PREREQUIRES="
cmd:flex
"
PATCHES="beam-1.2alpha.patchset"
BUILD()
{
jam -q $jobArgs

View File

@@ -1,22 +0,0 @@
From 6545d15dfc53594f4141047bf4c84d55cfccda6d Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Thu, 14 Nov 2013 02:12:56 -0700
Subject: Adjust search path for libbnetapi
diff --git a/build-jam/BuildSettings b/build-jam/BuildSettings
index d411b68..4874ac6 100644
--- a/build-jam/BuildSettings
+++ b/build-jam/BuildSettings
@@ -44,7 +44,7 @@ if $(OSPLAT) = X86 {
PLATFORM = zeta ;
}
# check for libbnetapi...
- local haveLibbnetapi = [ GLOB /boot/develop/lib/x86 : libbnetapi.so ] ;
+ local haveLibbnetapi = [ GLOB /boot/system/develop/lib : libbnetapi.so ] ;
if $(haveLibbnetapi) {
LIBNETAPI = bnetapi ;
}
--
1.8.3.4

View File

@@ -0,0 +1,43 @@
SUMMARY="LaTeX editor for Haiku."
DESCRIPTION="BeTeX is the premier TeX/LaTeX editor for BeOS/Haiku. With it you \
can create, compile and preview your latex documents all from within a single \
user-friendly interface."
HOMEPAGE="https://github.com/HaikuArchives/BeTeX/"
SRC_URI="git+https://github.com/HaikuArchives/BeTeX#ee4907"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2005 Tim de Jong, Brent Miszalski"
ARCHITECTURES="x86_gcc2"
PROVIDES="
betex = $portVersion
app:BeTeX = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
"
BUILD_PREREQUIRES="
makefile_engine
cmd:make
cmd:mkdepend
cmd:gcc
"
BUILD()
{
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp objects/BeTeX $appsDir/BeTeX
addAppDeskbarSymlink $appsDir/BeTeX
}

View File

@@ -5,7 +5,7 @@ quite enjoyable to reprogram my brain to learn to read it at a glance. It just \
takes a little getting used to.
"
HOMEPAGE="http://github.com/HaikuArchives/BinaryClock"
SRC_URI="git://github.com/HaikuArchives/BinaryClock#5d04da1137"
SRC_URI="git://github.com/HaikuArchives/BinaryClock#bfefbf7f93e7a07c841fdb1162e119b0364fee85"
REVISION="2"
LICENSE="GNU GPL v2"
COPYRIGHT="2000 David Enderson"
@@ -13,7 +13,7 @@ COPYRIGHT="2000 David Enderson"
ARCHITECTURES="x86_gcc2 !x86 !x86_64"
PROVIDES="
binary_clock = $portVersion
binaryclock = $portVersion
app:BinaryClock = $portVersion
"
@@ -26,26 +26,32 @@ BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
makefile_engine
cmd:make
cmd:gcc
cmd:ld
"
USER_SETTINGS_FILES="
settings/BinaryClock_2.xx
settings/BinaryClock
"
BUILD()
{
cd Application
g++ -o BinaryClock *.cpp -lbe -ltranslation
xres -o BinaryClock BinaryClock.rsrc
mimeset -f BinaryClock
make $jobArgs OBJ_DIR=objects
cd ../Screensaver
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp Application/BinaryClock $appsDir
mkdir -p $appsDir
mkdir -p $addOnsDir/Screen\ Savers/
cp Application/objects/BinaryClock $appsDir
addAppDeskbarSymlink $appsDir/BinaryClock "Binary Clock"
cp Screensaver/objects/BinaryClock $addOnsDir/Screen\ Savers
}

View File

@@ -0,0 +1,50 @@
SUMMARY="A tool to convert browser bookmarks"
DESCRIPTION="This tool converts bookmarks between QupZilla and WebPositive. \
It can also convert WebPositive bookmarks to HTML and Chrome as intermediate \
formats."
HOMEPAGE="http://github.com/HaikuArchives/BookmarkConverter"
gitRevision="9f80b05d0afd07fb732f352b92a3e831077d005a"
SRC_URI="https://github.com/HaikuArchives/BookmarkConverter/archive/$gitRevision.zip"
CHECKSUM_SHA256="fcd74f4f71f9f399b6c5bf824486a898ad99aeef237e674da7c0928d3cafce1e"
SOURCE_DIR="BookmarkConverter-$gitRevision"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="
2015 Markus Himmel
"
ARCHITECTURES="x86_gcc2 ?x86 ?ppc"
PROVIDES="
bookmarkconverter = $portVersion
cmd:bookmarkconverter = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
makefile_engine
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"
BUILD()
{
mkdir -p bin
make TARGET_DIR=bin
}
INSTALL()
{
mkdir -p $binDir
cp bin/bookmarkconverter $binDir/bookmarkconverter
}

View File

@@ -1,19 +1,19 @@
SUMMARY="An open source media compositing tool for the Haiku platform"
DESCRIPTION="Clockwerk is an Open Source media compositing tool for the
Haiku platform. It has been in development from Jan 2006 to July 2008
by Mindwork (www.mindwork.de) as one of the main in-house components of
an application suit to realize distributed multimedia playback on
SUMMARY="An open source media compositing tool"
DESCRIPTION="Clockwerk is an open source media compositing tool for the \
Haiku platform. It had been in development from January 2006 to July 2008 \
by Mindwork (www.mindwork.de) as one of the main in-house components of \
an application suite to realize distributed multimedia playback on \
Haiku client machines."
HOMEPAGE="https://github.com/stippi/Clockwerk"
SRC_URI="git+https://github.com/stippi/Clockwerk.git#8c3a33e"
SRC_URI="git+https://github.com/stippi/Clockwerk.git#6eab4202c857c7dc6f21b6e3262cff0b503acb0e"
REVISION="1"
REVISION="3"
LICENSE="GNU GPL v2"
COPYRIGHT="
2001-2009 Stephan Aßmus <superstippi@gmx.de>
2000-2006 Ingo Weinhold <ingo_weinhold@gmx.de>
2001-2009 Stephan Aßmus
2000-2006 Ingo Weinhold
"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
@@ -42,17 +42,17 @@ USER_SETTINGS_FILES="
BUILD()
{
jam -q
jam -q $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
mkdir -p $appsDir/Clockwerk
jam fulldistro
cp "Quick HowTo" $appsDir/Clockwerk
cd generated/distro-haiku-with-libs
cp Clockwerk $appsDir
cp Clockwerk $appsDir/Clockwerk
addAppDeskbarSymlink $appsDir/Clockwerk
addAppDeskbarSymlink $appsDir/Clockwerk/Clockwerk
}

View File

@@ -0,0 +1,47 @@
SUMMARY="A simple note replicant-capable program"
DESCRIPTION="
With DeskNotes, you can now leave little notes all over your desktop \
reminding you of things to do. The main difference between DeskNotes and \
other Note utilities for Haiku, is that DeskNotes is designed to be used \
as a replicant. This means that when you tear a note from the DeskNotes \
application onto your desktop, it stays there! You don't have to save it \
before rebooting, or fiddle with your bootscript.
"
HOMEPAGE="https://github.com/HaikuArchives/DeskNotes"
SRC_URI="git+https://github.com/HaikuArchives/DeskNotes#93f0654745e3dc317152bdfc49ae8b6d23bf443b"
REVISION="1"
LICENSE="BSD (3-clause)"
COPYRIGHT="2000 Colin Stewart"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PROVIDES="
desknotes = $portVersion
app:desknotes = $portVersion
"
REQUIRES="
haiku
lib:libstdc++
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:make
cmd:gcc
cmd:mkdepend
"
BUILD()
{
make $jobArgs OBJ_DIR=objects
}
INSTALL()
{
mkdir -p $appsDir
cp -a objects/DeskNotes $appsDir
addAppDeskbarSymlink $appsDir/DeskNotes
}

View File

@@ -5,11 +5,12 @@ may have shortcuts organized in \"tabs\", a tab of the running apps and some \
other general eyecandy.
"
HOMEPAGE="https://github.com/HaikuArchives/DockBert"
SRC_URI="git+https://github.com/HaikuArchives/DockBert#057c54674d"
SRC_URI="https://github.com/HaikuArchives/DockBert/archive/722161cf8646b18eee2d00208fa649a0ebfe8d00.zip"
CHECKSUM_SHA256="704a8cde914b41219e60ef8fc375ab7847cae580b1265f1b9b84cbe294334cce"
COPYRIGHT="2005 yellowTAB GmbH"
LICENSE="BSD (3-clause)"
REVISION="3"
REVISION="4"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
@@ -34,18 +35,16 @@ BUILD_PREREQUIRES="
cmd:mkdepend
"
PATCHES="dockbert-1.0.2b1.patchset"
BUILD()
{
cd trunk
cd source
make OBJ_DIR=objects \
BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}
INSTALL()
{
{
mkdir -p $appsDir
cp -a trunk/objects/Dock $appsDir/Dock
cp -a source/objects/Dock $appsDir/Dock
addAppDeskbarSymlink $appsDir/Dock
}

View File

@@ -1,99 +0,0 @@
From c7dd365b426c78ef62bfb1b1b8ba149e9b6a7afb Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Mon, 2 Dec 2013 18:12:54 -0700
Subject: Fix makefile stdc++ libs
diff --git a/trunk/Makefile b/trunk/Makefile
index fa6193c..748e5fd 100644
--- a/trunk/Makefile
+++ b/trunk/Makefile
@@ -60,7 +60,7 @@ RSRCS= dockbert.rsrc
# naming scheme you need to specify the path to the library
# and it's name
# library: my_lib.a entry: my_lib.a or path/my_lib.a
-LIBS= be tracker stdc++.r4 locale localestub
+LIBS= be tracker $(STDCPPLIBS) localestub
# specify additional paths to directories following the standard
# libXXX.so or libXXX.a naming scheme. You can specify full paths
--
1.8.3.4
From ba30e33f9dc36ff2a92ed950ccbdc30c0aa1d0f0 Mon Sep 17 00:00:00 2001
From: Sergei Reznikov <diver@gelios.net>
Date: Tue, 28 Oct 2014 23:36:58 +0300
Subject: [PATCH] Include strings.h
---
trunk/InnerPanel.cpp | 1 +
trunk/InnerPanelIcons.cpp | 1 +
trunk/PanelWindow.cpp | 1 +
trunk/PanelWindowView.cpp | 2 ++
trunk/TrackerMenus.cpp | 1 +
5 files changed, 6 insertions(+)
diff --git a/trunk/InnerPanel.cpp b/trunk/InnerPanel.cpp
index 01e56e5..aecc924 100644
--- a/trunk/InnerPanel.cpp
+++ b/trunk/InnerPanel.cpp
@@ -22,6 +22,7 @@
#include <malloc.h>
#include <stdio.h>
#include <string.h>
+#include <strings.h>
#include "PanelWindow.h"
#include "PanelWindowView.h"
diff --git a/trunk/InnerPanelIcons.cpp b/trunk/InnerPanelIcons.cpp
index e22d297..74c47b0 100644
--- a/trunk/InnerPanelIcons.cpp
+++ b/trunk/InnerPanelIcons.cpp
@@ -12,6 +12,7 @@
#include <MessageRunner.h>
#include <Region.h>
#include <malloc.h>
+#include <strings.h>
#include <locale/Locale.h>
#include "InnerPanelIcons.h"
diff --git a/trunk/PanelWindow.cpp b/trunk/PanelWindow.cpp
index 3905f87..2254d1a 100644
--- a/trunk/PanelWindow.cpp
+++ b/trunk/PanelWindow.cpp
@@ -25,6 +25,7 @@
#include "tracker_private.h"
#include <stdio.h>
+#include <strings.h>
#include <malloc.h>
#include <Debug.h>
diff --git a/trunk/PanelWindowView.cpp b/trunk/PanelWindowView.cpp
index e620164..5230538 100644
--- a/trunk/PanelWindowView.cpp
+++ b/trunk/PanelWindowView.cpp
@@ -15,6 +15,8 @@
#include <FindDirectory.h>
#include <Alert.h>
+#include <strings.h>
+
#include <Autolock.h>
//#define USE_WINDOW_SHAPING /* BeOS Dano code*/
diff --git a/trunk/TrackerMenus.cpp b/trunk/TrackerMenus.cpp
index ff603a4..80445ef 100644
--- a/trunk/TrackerMenus.cpp
+++ b/trunk/TrackerMenus.cpp
@@ -19,6 +19,7 @@
#include <stdio.h>
+#include <strings.h>
#include "FSUtils.h"
#include "Commands.h"
--
1.8.3.4

View File

@@ -1,13 +1,12 @@
SUMMARY="A small application to show your installed fonts in Haiku."
SUMMARY="A small application to show your installed fonts"
DESCRIPTION="
Fontboy is a small application to show your installed fonts in Haiku. You can \
get additional information of the selected font and a preview of the complete \
Unicode charset. Fontboy allows you to adjust the appearence to your desired \
needs and it's fast because Haiku is.
Unicode charset.
"
HOMEPAGE="https://github.com/HaikuArchives/FontBoy"
SRC_URI="git://github.com/HaikuArchives/FontBoy.git#2195924e69096a5e7a9774cfaec8fdc277045ecf"
REVISION="1"
SRC_URI="git://github.com/HaikuArchives/FontBoy.git#37177cb9f816f112954a04ddc6f99abd2d608326"
REVISION="2"
LICENSE="FontBoy"
COPYRIGHT="1999-2003 Oliver 'Madison' Kohl"

Some files were not shown because too many files have changed in this diff Show More