Merge all changes from trunk

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

View File

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

View File

@@ -12,9 +12,9 @@ BUILD {
INSTALL {
cd arc-5.21o
install arc /boot/common/bin
install marc /boot/common/bin
install arc.1 /boot/common/man/man1
install arc --prefix={$DESTDIR}`finddir B_COMMON_DIRECTORY`
install marc --prefix={$DESTDIR}`finddir B_COMMON_DIRECTORY`
install arc.1 {$DESTDIR}`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man/man1
}
LICENSE="GNU GPL v2"

View File

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

View File

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

View File

@@ -7,7 +7,11 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd cpio-2.10
./configure --prefix=/boot/common
sed -i 's/restrict//g' gnu/string.in.h
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale
make
}
@@ -15,5 +19,11 @@ INSTALL {
cd cpio-2.10
make install
}
TEST {
cd cpio-2.10
make check
}
LICENSE="GNU GPL v3"
COPYRIGHT="1988-2009 Free Software Foundation, Inc."

View File

@@ -0,0 +1,29 @@
DESCRIPTION="GNU cpio copies files into or out of a cpio or tar archive. The archive can be another file on the disk, a magnetic tape, or a pipe."
HOMEPAGE="http://www.gnu.org/software/cpio/cpio.html"
SRC_URI="http://ftp.gnu.org/gnu/cpio/cpio-2.11.tar.gz"
CHECKSUM_MD5="1112bb6c45863468b5496ba128792f6c"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
BUILD {
cd cpio-2.11
# sed -i 's/restrict//g' gnu/string.in.h
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale
make
}
INSTALL {
cd cpio-2.11
make install
}
TEST {
cd cpio-2.11
make check
}
LICENSE="GNU GPL v3"
COPYRIGHT="1988-2010 Free Software Foundation, Inc."

View File

@@ -35,15 +35,16 @@ diff -urN cpio-2.10/gnu/hash.c cpio-2.10-haiku/gnu/hash.c
char *dirpath; /* A copy we can scribble NULs on. */
struct stat stats;
int retval = 0;
+ char *slash = dirpath;
+ char *slash;
mode_t tmpmode;
mode_t invert_permissions;
int we_are_root = getuid () == 0;
@@ -68,7 +68,6 @@
@@ -68,7 +69,7 @@
tmpmode = MODE_RWX & ~ newdir_umask;
invert_permissions = we_are_root ? 0 : MODE_WXUSR & ~ tmpmode;
- char *slash = dirpath;
+ slash = dirpath;
while (*slash == '/')
slash++;
while ((slash = strchr (slash, '/')))

View File

@@ -0,0 +1,32 @@
diff -urN cpio-2.11/configure.ac cpio-2.11-haiku/configure.ac
--- cpio-2.11/configure.ac 2010-03-10 04:59:16.008126464 -0800
+++ cpio-2.11-haiku/configure.ac 2013-03-12 15:18:23.338165760 -0700
@@ -47,6 +47,8 @@
AC_HEADER_STDC
AC_HEADER_DIRENT
+AC_SEARCH_LIBS(gethostbyname, [socket, network])
+
AC_CHECK_FUNCS([fchmod fchown])
# This is needed for mingw build
AC_CHECK_FUNCS([setmode getpwuid getpwnam getgrgid getgrnam pipe fork getuid geteuid])
diff -urN cpio-2.11/src/makepath.c cpio-2.11-haiku/src/makepath.c
--- cpio-2.11/src/makepath.c 2010-02-12 02:19:23.043778048 -0800
+++ cpio-2.11-haiku/src/makepath.c 2013-03-12 15:18:30.096993280 -0700
@@ -56,6 +56,7 @@
char *dirpath; /* A copy we can scribble NULs on. */
struct stat stats;
int retval = 0;
+ char *slash;
mode_t tmpmode;
mode_t invert_permissions;
int we_are_root = getuid () == 0;
@@ -68,7 +69,7 @@
tmpmode = MODE_RWX & ~ newdir_umask;
invert_permissions = we_are_root ? 0 : MODE_WXUSR & ~ tmpmode;
- char *slash = dirpath;
+ slash = dirpath;
while (*slash == '/')
slash++;
while ((slash = strchr (slash, '/')))

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd fastjar-0.98
autoreconf -vfi
configure --prefix=/boot/common
configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="untested"
DEPEND=""
BUILD {
cd gzip-1.2.4a
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="untested"
DEPEND=""
BUILD {
cd gzip-1.3.12
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,21 @@
DESCRIPTION="GNU zip"
HOMEPAGE="http://www.gzip.org/"
SRC_URI="ftp://ftp.gnu.org/gnu/gzip/gzip-1.4.tar.gz"
CHECKSUM_MD5="e381b8506210c794278f5527cba0e765"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND=""
BUILD {
cd gzip-1.4
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd gzip-1.4
make install
}
LICENSE="GNU GPL v3"
COPYRIGHT="1999, 2001-2002, 2006-2007, 2009-2010 Free Software Foundation, Inc.
1992-1993 Jean-loup Gailly"

View File

@@ -0,0 +1,18 @@
--- ./gzip-1.4/inflate.c 2010-01-20 14:15:12.017039360 +0100
+++ ./gzip-1.4/inflate.c 2011-12-03 00:03:37.421003264 +0100
@@ -588,6 +588,7 @@
/* do the copy */
do {
n -= (e = (e = WSIZE - ((d &= WSIZE-1) > w ? d : w)) > n ? n : e);
+ {
#if !defined(NOMEMCPY) && !defined(DEBUG)
unsigned int delta = w > d ? w - d : d - w;
if (delta >= e)
@@ -602,6 +603,7 @@
slide[w++] = slide[d++];
Tracevv((stderr, "%c", slide[w-1]));
} while (--e);
+ }
if (w == WSIZE)
{
flush_output(w);

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd lha-1.14i-ac20050924p1
autoreconf -vfi
./configure --prefix=/boot/common/
./configure --prefix=`finddir B_COMMON_DIRECTORY`/
make
}

View File

@@ -0,0 +1,34 @@
DESCRIPTION="C library and command-line tools for reading and writing tar, cpio, zip, ISO, and other archive formats."
HOMEPAGE="http://libarchive.github.com/"
SRC_URI="https://github.com/downloads/libarchive/libarchive/libarchive-2.8.5.zip"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="58d1b202b4878e9da45cfe6d2a740881"
BUILD {
cd libarchive-2.8.5
libtoolize --force --copy --install
aclocal -I build/autoconf
autoconf
automake
chmod 755 configure
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_BIN=`finddir B_COMMON_BIN_DIRECTORY`
COMMON_DIR=`finddir B_COMMON_DIRECTORY`
./configure --prefix=$COMMON_DIR \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd libarchive-2.8.5
make install
}
TEST {
cd libarchive-2.8.5
make check
}
LICENSE="BSD (2-clause)"
COPYRIGHT="2003-2009 Tim Kientzle"

View File

@@ -0,0 +1,34 @@
DESCRIPTION="C library and command-line tools for reading and writing tar, cpio, zip, ISO, and other archive formats."
HOMEPAGE="http://libarchive.github.com/"
SRC_URI="https://github.com/downloads/libarchive/libarchive/libarchive-3.0.3.tar.gz"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
CHECKSUM_MD5="ca4090f0099432a9ac5a8b6618dc3892"
BUILD {
cd libarchive-3.0.3
libtoolize --force --copy --install
aclocal -I build/autoconf
autoconf
automake
chmod 755 configure
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_BIN=`finddir B_COMMON_BIN_DIRECTORY`
COMMON_DIR=`finddir B_COMMON_DIRECTORY`
./configure --prefix=$COMMON_DIR \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd libarchive-3.0.3
make install
}
TEST {
cd libarchive-3.0.3
make check
}
LICENSE="BSD (2-clause)"
COPYRIGHT="2003-2009 Tim Kientzle"

View File

@@ -1,5 +1,5 @@
DESCRIPTION="p7zip"
HOMEPAGE="http://p7zip.sourceforge.net"
DESCRIPTION="p7zip"
HOMEPAGE="http://p7zip.sourceforge.net"
SRC_URI="http://downloads.sourceforge.net/project/p7zip/p7zip/9.04/p7zip_9.04_src_all.tar.bz2?use_mirror=cdnetworks-us-2"
REVISION="1"
STATUS_HAIKU="stable"
@@ -13,7 +13,11 @@ BUILD {
INSTALL {
cd p7zip_9.04
make install DEST_DIR=${DESTDIR} DEST_HOME=`finddir B_COMMON_DIRECTORY` DEST_SHARE_DOC=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/p7zip DEST_MAN=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
make install DEST_DIR=${DESTDIR} \
DEST_HOME=`finddir B_COMMON_DIRECTORY` \
DEST_SHARE_DOC=$COMMON_DOCS/doc/p7zip \
DEST_MAN=$COMMON_DOCS/man
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1999-2009 7-Zip Igor Pavlov."

View File

@@ -1,5 +1,5 @@
DESCRIPTION="p7zip"
HOMEPAGE="http://p7zip.sourceforge.net"
DESCRIPTION="p7zip"
HOMEPAGE="http://p7zip.sourceforge.net"
SRC_URI="http://downloads.sourceforge.net/project/p7zip/p7zip/9.13/p7zip_9.13_src_all.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
@@ -13,9 +13,10 @@ BUILD {
INSTALL {
cd p7zip_9.13
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
make install DEST_DIR=${DESTDIR} DEST_HOME=`finddir B_COMMON_DIRECTORY` \
DEST_SHARE_DOC=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/p7zip \
DEST_MAN=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
DEST_SHARE_DOC=$COMMON_DOCS/doc/p7zip \
DEST_MAN=$COMMON_DOCS/man
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1999-2010 7-Zip Igor Pavlov."

View File

@@ -0,0 +1,22 @@
DESCRIPTION="p7zip"
HOMEPAGE="http://p7zip.sourceforge.net"
SRC_URI="http://downloads.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="bd6caaea567dc0d995c990c5cc883c89"
BUILD {
cd p7zip_9.20.1
cp makefile.haiku makefile.machine
make
}
INSTALL {
cd p7zip_9.20.1
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
make install DEST_DIR=${DESTDIR} DEST_HOME=`finddir B_COMMON_DIRECTORY` \
DEST_SHARE_DOC=$COMMON_DOCS/doc/p7zip \
DEST_MAN=$COMMON_DOCS/man
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1999-2011 7-Zip Igor Pavlov."

View File

@@ -0,0 +1,53 @@
diff -urN p7zip_9.20.1/CPP/myWindows/config.h p7zip_9.20.1-haiku/CPP/myWindows/config.h
--- p7zip_9.20.1/CPP/myWindows/config.h 2011-01-21 22:24:42.022806528 -0800
+++ p7zip_9.20.1-haiku/CPP/myWindows/config.h 2012-06-13 23:02:29.589824000 -0700
@@ -24,7 +24,7 @@
#endif /* !ENV_MACOSX && !ENV_BEOS */
- #if !defined(ENV_BEOS)
+ #if !defined(ENV_BEOS) && !defined(ENV_HAIKU)
#define ENV_HAVE_GETPASS
#if !defined(sun)
diff -urN p7zip_9.20.1/CPP/Windows/System.cpp p7zip_9.20.1-haiku/CPP/Windows/System.cpp
--- p7zip_9.20.1/CPP/Windows/System.cpp 2009-02-15 01:19:45.023330816 -0800
+++ p7zip_9.20.1-haiku/CPP/Windows/System.cpp 2012-06-13 23:06:28.000786432 -0700
@@ -15,7 +15,7 @@
#include <sys/sysinfo.h>
#endif
-#if defined(ENV_BEOS)
+#if defined(ENV_BEOS) || defined(ENV_HAIKU)
#include <be/kernel/OS.h>
#endif
@@ -79,7 +79,7 @@
if (nbcpu < 1) nbcpu = 1;
return nbcpu;
}
- #elif defined(ENV_BEOS)
+ #elif defined(ENV_BEOS) || defined(ENV_HAIKU)
UInt32 GetNumberOfProcessors() {
system_info info;
get_system_info(&info);
diff -urN p7zip_9.20.1/makefile.haiku p7zip_9.20.1-haiku/makefile.haiku
--- p7zip_9.20.1/makefile.haiku 1969-12-31 16:00:00.000000000 -0800
+++ p7zip_9.20.1-haiku/makefile.haiku 2012-06-13 23:09:01.245628928 -0700
@@ -0,0 +1,16 @@
+OPTFLAGS=-O
+
+ALLFLAGS=${OPTFLAGS} -s \
+ -DENV_HAIKU \
+ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
+ -DNDEBUG -D_REENTRANT -DENV_UNIX \
+ $(LOCAL_FLAGS)
+
+CXX=g++ $(ALLFLAGS)
+CC=gcc $(ALLFLAGS)
+LINK_SHARED=-nostart
+
+LOCAL_LIBS=
+LOCAL_LIBS_DLL=$(LOCAL_LIBS)
+
+OBJ_CRC32=$(OBJ_CRC32_C)

View File

@@ -1,5 +1,5 @@
DESCRIPTION="sharutils"
HOMEPAGE="http://www.gnu.org/software/sharutils/"
DESCRIPTION="sharutils"
HOMEPAGE="http://www.gnu.org/software/sharutils/"
SRC_URI="ftp://ftp.gnu.org/gnu/sharutils/sharutils-4.10.tar.gz"
CHECKSUM_MD5="c8bbfa89810ce9f5399b38392549207c"
REVISION="1"
@@ -8,9 +8,10 @@ DEPEND=""
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
cd sharutils-4.10
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--mandir=$MANDIR \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man \
--disable-nls
make
}

View File

@@ -0,0 +1,108 @@
diff -aur tar-1.26/src/common.h tar/src/common.h
--- tar-1.26/src/common.h 2011-02-11 12:56:13.006553600 +0100
+++ tar/src/common.h 2012-10-30 20:04:25.823132160 +0100
@@ -186,6 +186,8 @@
};
GLOBAL enum old_files old_files_option;
+GLOBAL bool simulate_hardlinks_option;
+
/* Specified file name for incremental list. */
GLOBAL const char *listed_incremental_option;
/* Incremental dump level */
diff -aur tar-1.26/src/extract.c tar/src/extract.c
--- tar-1.26/src/extract.c 2010-11-27 11:33:22.008912896 +0100
+++ tar/src/extract.c 2012-10-30 20:26:14.453246976 +0100
@@ -31,6 +31,8 @@
static mode_t newdir_umask; /* umask when creating new directories */
static mode_t current_umask; /* current umask (which is set to 0 if -p) */
+static int extract_symlink (char *, int);
+
#define ALL_MODE_BITS ((mode_t) ~ (mode_t) 0)
#if ! HAVE_FCHMOD && ! defined fchmod
@@ -1113,6 +1115,38 @@
char const *link_name;
int rc;
+ if (simulate_hardlinks_option)
+ {
+ /* symlinks have to be normalized */
+ const char* f = file_name;
+ const char* l = current_stat_info.link_name;
+ int sep_pos = 0;
+ int p_count = 0;
+ char *link_name = (char*) xmalloc(strlen(current_stat_info.link_name) * 2);
+
+ for (; *f && *l; f++, l++)
+ {
+ if (*f != *l)
+ break;
+ if (*f == DIRECTORY_SEPARATOR)
+ sep_pos = f - file_name;
+ }
+
+ for (p_count = 0; *f; f++)
+ if (*f == DIRECTORY_SEPARATOR)
+ p_count++;
+
+ link_name[0] = '\0';
+ while (p_count--)
+ strcat(link_name, "../");
+
+ strcat(link_name, &current_stat_info.link_name[sep_pos + 1]);
+ free(current_stat_info.link_name);
+ current_stat_info.link_name = link_name;
+
+ return extract_symlink(file_name, typeflag);
+ }
+
link_name = current_stat_info.link_name;
if (! absolute_names_option && contains_dot_dot (link_name))
@@ -1201,6 +1235,13 @@
#else
static int warned_once;
+ /* recursion is not welcomed here */
+ if (simulate_hardlinks_option && typeflag == LINKTYPE)
+ {
+ link_error (current_stat_info.link_name, file_name);
+ return -1;
+ }
+
if (!warned_once)
{
warned_once = 1;
diff -aur tar-1.26/src/tar.c tar/src/tar.c
--- tar-1.26/src/tar.c 2010-10-24 20:07:55.005767168 +0200
+++ tar/src/tar.c 2012-10-30 20:21:51.518520832 +0100
@@ -466,6 +466,8 @@
{"overwrite-dir", OVERWRITE_DIR_OPTION, 0, 0,
N_("overwrite metadata of existing directories when extracting (default)"),
GRID+1 },
+ {"replace-hardlinks", 'Q', 0, 0,
+ N_("replace hardlinks with corresponding symlink when extracting"), GRID+1 },
#undef GRID
#define GRID 40
@@ -1815,6 +1817,10 @@
set_archive_format (arg);
break;
+ case 'Q':
+ simulate_hardlinks_option = true;
+ break;
+
case INDEX_FILE_OPTION:
index_file_name = arg;
break;
@@ -2240,6 +2246,7 @@
unquote_option = true;
tar_sparse_major = 1;
tar_sparse_minor = 0;
+ simulate_hardlinks_option = false;
owner_option = -1;
group_option = -1;

View File

@@ -7,7 +7,9 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd tar-1.22
./configure --prefix=/boot/common --sbindir=/boot/common/bin --libexecdir=/boot/common/bin
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--sbindir=`finddir B_COMMON_BIN_DIRECTORY` \
--libexecdir=`finddir B_COMMON_BIN_DIRECTORY`
make
}

View File

@@ -7,7 +7,7 @@ STATUS_HAIKU="broken"
DEPEND=""
BUILD {
cd tar-1.23
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -1,5 +1,5 @@
DESCRIPTION="tar saves and restores files from a tape or disk archive."
HOMEPAGE="http://www.gnu.org/software/tar/"
DESCRIPTION="tar saves and restores files from a tape or disk archive."
HOMEPAGE="http://www.gnu.org/software/tar/"
SRC_URI="http://ftp.gnu.org/gnu/tar/tar-1.25.tar.bz2"
CHECKSUM_MD5="6e497f861c77bbba2f7da4e10270995b"
REVISION="1"
@@ -15,12 +15,15 @@ BUILD {
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/fseek* gnu/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/iswblank* gnu/
cp -a `haikuporter -t`/dev-libs/gnulib/work/gnulib-9999/lib/fcntl* gnu/
./configure --prefix=/boot/common \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
sed -i 's/@GNULIB_NONBLOCKING@/0/' gnu/fcntl*
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--infodir=$COMMON_DOCS/info \
--libexecdir=`finddir B_COMMON_LIB_DIRECTORY`/exec \
--sbindir=`finddir B_COMMON_SERVERS_DIRECTORY` \
--sbindir=`finddir B_COMMON_BIN_DIRECTORY` \
--disable-nls \
LDFLAGS="-lnetwork" \
FORCE_UNSAFE_CONFIGURE=1
FORCE_UNSAFE_CONFIGURE=1
make
}

26
app-arch/tar/tar-1.26.bep Normal file
View File

@@ -0,0 +1,26 @@
DESCRIPTION="tar saves and restores files from a tape or disk archive."
HOMEPAGE="http://www.gnu.org/software/tar/"
SRC_URI="http://ftp.gnu.org/gnu/tar/tar-1.26.tar.bz2"
CHECKSUM_MD5="2cee42a2ff4f1cd4f9298eeeb2264519"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd tar-1.26
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--infodir=$COMMON_DOCS/info \
--libexecdir=`finddir B_COMMON_LIB_DIRECTORY`/exec \
--sbindir=`finddir B_COMMON_BIN_DIRECTORY` \
--disable-nls \
LDFLAGS="-lnetwork" \
FORCE_UNSAFE_CONFIGURE=1
make
}
INSTALL {
cd tar-1.26
make install
}
LICENSE="GNU GPL v3"
COPYRIGHT="1990-2011 Free Software Foundation, Inc."

View File

@@ -0,0 +1,263 @@
diff -aur unrar/arcread.cpp unrar.4.2.4.haiku/arcread.cpp
--- unrar/arcread.cpp 2012-06-09 15:21:04.066584576 +0200
+++ unrar.4.2.4.haiku/arcread.cpp 2013-01-17 21:57:19.749207552 +0100
@@ -666,7 +666,7 @@
{
if (*s=='/' || *s=='\\')
*s=CPATHDIVIDER;
-#if defined(_APPLE) && !defined(UNICODE_SUPPORTED)
+#if (defined(_APPLE) || defined(_BEOS)) && !defined(UNICODE_SUPPORTED)
if ((byte)*s<32 || (byte)*s>127)
*s='_';
#endif
diff -aur unrar/consio.cpp unrar.4.2.4.haiku/consio.cpp
--- unrar/consio.cpp 2012-06-09 15:21:04.000524288 +0200
+++ unrar.4.2.4.haiku/consio.cpp 2013-01-21 22:23:37.662437888 +0100
@@ -141,7 +141,7 @@
SetConsoleMode(hConOut,ConOutMode);
#else
char StrA[MAXPASSWORD];
-#if defined(_EMX) || defined(_BEOS) || defined(__sparc) || defined(sparc) || defined (__VMS)
+#if defined(_EMX) || defined(__sparc) || defined(sparc) || defined (__VMS)
fgets(StrA,ASIZE(StrA)-1,stdin);
#else
strncpyz(StrA,getpass(""),ASIZE(StrA));
diff -aur unrar/extract.cpp unrar.4.2.4.haiku/extract.cpp
--- unrar/extract.cpp 2012-06-09 15:21:04.002097152 +0200
+++ unrar.4.2.4.haiku/extract.cpp 2013-01-17 21:42:21.914620416 +0100
@@ -311,7 +311,7 @@
bool WideName=false;
#endif
-#ifdef _APPLE
+#if defined(_APPLE) || defined(_BEOS)
if (WideName)
{
// Prepare UTF-8 name for OS X. Since we are sure that destination
diff -aur unrar/file.cpp unrar.4.2.4.haiku/file.cpp
--- unrar/file.cpp 2012-06-09 15:21:04.002621440 +0200
+++ unrar.4.2.4.haiku/file.cpp 2013-01-21 22:12:02.543162368 +0100
@@ -304,6 +304,8 @@
hFile=stderr;
#endif
break;
+ default:
+ break;
}
#endif
while (1)
diff -aur unrar/find.cpp unrar.4.2.4.haiku/find.cpp
--- unrar/find.cpp 2012-06-09 15:21:04.003145728 +0200
+++ unrar.4.2.4.haiku/find.cpp 2013-01-17 21:43:25.860618752 +0100
@@ -104,7 +104,7 @@
}
}
*fd->NameW=0;
-#ifdef _APPLE
+#if defined(_APPLE) || defined(_BEOS)
if (!LowAscii(fd->Name))
UtfToWide(fd->Name,fd->NameW,sizeof(fd->NameW));
#elif defined(UNICODE_SUPPORTED)
@@ -170,7 +170,7 @@
strcpy(fd->Name,FindMask);
*fd->NameW=0;
-#ifdef _APPLE
+#if defined(_APPLE) || defined(_BEOS)
if (!LowAscii(fd->Name))
UtfToWide(fd->Name,fd->NameW,sizeof(fd->NameW));
#elif defined(UNICODE_SUPPORTED)
diff -aur unrar/makefile.unix unrar.4.2.4.haiku/makefile.unix
--- unrar/makefile.unix 2012-05-15 07:31:03.004980736 +0200
+++ unrar.4.2.4.haiku/makefile.unix 2013-01-21 22:17:15.800325632 +0100
@@ -7,7 +7,11 @@
LIBFLAGS=-fPIC
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
STRIP=strip
-DESTDIR=/usr
+LDFLAGS=-lbsd
+RC=rc
+XRES=xres
+MIMESET=mimeset
+DESTDIR=$(shell finddir B_COMMON_DIRECTORY)
# Linux using LCC
#CXX=lcc
@@ -114,12 +118,14 @@
uninstall: uninstall-unrar
clean:
- @rm -f *.o *.bak *~
+ @rm -f *.o *.bak *~ *.rsrc
unrar: clean $(OBJECTS) $(UNRAR_OBJ)
@rm -f unrar
$(LINK) -o unrar $(LDFLAGS) $(OBJECTS) $(UNRAR_OBJ) $(LIBS)
- $(STRIP) unrar
+ $(RC) -o unrar.rsrc unrar.rdef
+ $(XRES) -o unrar unrar.rsrc
+ $(MIMESET) unrar
sfx: WHAT=SFX_MODULE
sfx: clean $(OBJECTS)
@@ -144,3 +150,29 @@
uninstall-lib:
rm -f $(DESTDIR)/lib/libunrar.so
+
+MACHINE=$(shell uname -m)
+ifeq ($(MACHINE), BePC)
+ MACHINE = x86-gcc$(word 1, $(subst -, , $(subst ., , $(shell $(CC) -dumpversion))))
+endif
+
+VERSION=4.2.4
+DATE := `date +%F`
+PACKAGE_NAME := unrar-$(VERSION)-$(MACHINE)-$(DATE)
+COMMENT = .OptionalPackageDescription
+DESCRIPTION = dist/$(COMMENT)
+
+haiku_package: unrar
+ -rm -rf dist/common
+ -mkdir -p dist/common/bin
+ -cp unrar dist/common/bin
+ -mkdir -p dist/common/data/licenses
+ -cp license.txt dist/common/data/licenses/UnRAR
+ echo "Package: UnRAR" > $(DESCRIPTION)
+ echo "Version: $(VERSION)-$(MACHINE)-$(DATE)" >> $(DESCRIPTION)
+ echo "Copyright: Alexander Roshal." >> $(DESCRIPTION)
+ echo "Description: Utility to list, test and expand RAR archives." >> $(DESCRIPTION)
+ echo "License: UnRAR" >> $(DESCRIPTION)
+ echo "URL: http://www.rarlab.com/" >> $(DESCRIPTION)
+ cd dist && zip -9 -r -z -y $(PACKAGE_NAME).zip common $(COMMENT) < $(COMMENT)
+
diff -aur unrar/os.hpp unrar.4.2.4.haiku/os.hpp
--- unrar/os.hpp 2012-06-09 15:21:04.005767168 +0200
+++ unrar.4.2.4.haiku/os.hpp 2013-01-21 22:25:04.170655744 +0100
@@ -134,8 +134,9 @@
#define NM 1024
#ifdef _BEOS
-#include <be/kernel/fs_info.h>
-#include <be/kernel/fs_attr.h>
+#include <endian.h>
+#include <fs_info.h>
+#include <fs_attr.h>
#endif
#include <unistd.h>
@@ -206,6 +207,16 @@
#endif
#endif
+#ifdef _BEOS
+#if LITTLE_ENDIAN
+ #undef BIG_ENDIAN
+#elif BIG_ENDIAN
+ #undef LITTLE_ENDIAN
+#else
+ #error "Byte order must be defined!"
+#endif
+#endif
+
#if defined(__sparc) || defined(sparc) || defined(__hpux)
#ifndef BIG_ENDIAN
#define BIG_ENDIAN
diff -aur unrar/raros.hpp unrar.4.2.4.haiku/raros.hpp
--- unrar/raros.hpp 2012-06-09 15:21:04.006553600 +0200
+++ unrar.4.2.4.haiku/raros.hpp 2013-01-16 19:50:06.066060288 +0100
@@ -29,7 +29,7 @@
#endif
#endif
-#ifdef __BEOS__
+#if defined(__BEOS__) || defined(__HAIKU__)
#define _UNIX
#define _BEOS
#endif
diff -aur unrar/rartypes.hpp unrar.4.2.4.haiku/rartypes.hpp
--- unrar/rartypes.hpp 2012-06-09 15:21:04.006815744 +0200
+++ unrar.4.2.4.haiku/rartypes.hpp 2013-01-19 23:12:46.715653120 +0100
@@ -7,6 +7,7 @@
#define PRESENT_INT32 // undefine if signed 32 bits is not available
+#ifndef _BEOS
typedef unsigned int uint32; // 32 bits exactly
typedef signed int int32; // signed 32 bits exactly
@@ -20,6 +21,7 @@
typedef unsigned long long uint64; // unsigned 64 bits
typedef signed long long int64; // signed 64 bits
#endif
+#endif // #ifndef _BEOS
#if defined(_WIN_ALL) || defined(__GNUC__) || defined(__sgi) || defined(_AIX) || defined(__sun) || defined(__hpux) || defined(_OSF_SOURCE)
diff -aur unrar/rarvm.cpp unrar.4.2.4.haiku/rarvm.cpp
--- unrar/rarvm.cpp 2012-06-09 15:21:04.007077888 +0200
+++ unrar.4.2.4.haiku/rarvm.cpp 2013-01-21 22:12:02.605814784 +0100
@@ -792,6 +792,8 @@
case VM_CMP:
Cmd->OpCode=Cmd->ByteMode ? VM_CMPB:VM_CMPD;
continue;
+ default:
+ break;
}
if ((VM_CmdFlags[Cmd->OpCode] & VMCF_CHFLAGS)==0)
continue;
@@ -835,6 +837,8 @@
case VM_NEG:
Cmd->OpCode=Cmd->ByteMode ? VM_NEGB:VM_NEGD;
continue;
+ default:
+ break;
}
}
}
@@ -1102,6 +1106,8 @@
SET_VALUE(false,&Mem[VM_GLOBALMEMADDR+0x20],DataSize);
}
break;
+ default:
+ break;
}
}
diff -aur unrar/unicode.cpp unrar.4.2.4.haiku/unicode.cpp
--- unrar/unicode.cpp 2012-06-09 15:21:04.010747904 +0200
+++ unrar.4.2.4.haiku/unicode.cpp 2013-01-17 21:41:15.856686592 +0100
@@ -13,7 +13,7 @@
if (WideCharToMultiByte(CP_ACP,0,Src,-1,Dest,(int)DestSize,NULL,NULL)==0)
RetCode=false;
-#elif defined(_APPLE)
+#elif defined(_APPLE) || defined(_BEOS)
WideToUtf(Src,Dest,DestSize);
#elif defined(MBFUNCTIONS)
@@ -73,7 +73,7 @@
if (MultiByteToWideChar(CP_ACP,0,Src,-1,Dest,(int)DestSize)==0)
RetCode=false;
-#elif defined(_APPLE)
+#elif defined(_APPLE) || defined(_BEOS)
UtfToWide(Src,Dest,DestSize);
#elif defined(MBFUNCTIONS)
diff -aur unrar/unrar.rdef unrar.4.2.4.haiku/unrar.rdef
--- unrar/unrar.rdef 1970-01-01 01:00:00.000000000 +0100
+++ unrar.4.2.4.haiku/unrar.rdef 2013-01-16 20:43:32.898629632 +0100
@@ -0,0 +1,13 @@
+
+resource app_signature "application/x-vnd.Roshal-UnRAR";
+resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP;
+
+resource app_version {
+ major = 4,
+ middle = 2,
+ minor = 4,
+ variety = 0,
+ internal = 0,
+ short_info = "4.2.4",
+ long_info = "4.2.4 Alexander Roshal"
+};

View File

@@ -0,0 +1,19 @@
DESCRIPTION="unrar"
HOMEPAGE="http://www.rarlab.com/"
SRC_URI="http://www.rarlab.com/rar/unrarsrc-4.2.4.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="8ea9d1b4139474b282d76e627a2de3e4"
BUILD {
cd unrar
make -f makefile.unix DESTDIR=`finddir B_COMMON_DIRECTORY`
}
INSTALL {
cd unrar
make -f makefile.unix DESTDIR=`finddir B_COMMON_DIRECTORY` install
}
LICENSE="UnRAR"
COPYRIGHT="Alexander Roshal"

View File

@@ -0,0 +1,28 @@
DESCRIPTION="unzip"
HOMEPAGE="http://www.info-zip.org/UnZip.html"
SRC_URI="http://downloads.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
CHECKSUM_MD5="62b490407489521db863b523a7f86375"
BUILD {
cd unzip60
make -f beos/Makefile \
PREFIX=`finddir B_COMMON_DIRECTORY` \
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
}
INSTALL {
cd unzip60
make -f beos/Makefile install
}
TEST {
cd unzip60
# make test
# make check
}
LICENSE="Info-ZIP"
#COPYRIGHT=""

View File

@@ -0,0 +1,24 @@
diff -Naur xar-1.5.2/lib/darwinattr.c xar-1.5.2-haiku/lib/darwinattr.c
--- xar-1.5.2/lib/darwinattr.c 2007-12-29 18:49:57.035651584 +0000
+++ xar-1.5.2-haiku/lib/darwinattr.c 2013-01-09 20:55:26.246415360 +0000
@@ -40,7 +40,7 @@
#include <unistd.h>
#include <string.h>
#include <libgen.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <sys/stat.h>
#include <arpa/inet.h>
#include "xar.h"
diff -Naur xar-1.5.2/lib/stat.c xar-1.5.2-haiku/lib/stat.c
--- xar-1.5.2/lib/stat.c 2007-12-29 18:49:57.033554432 +0000
+++ xar-1.5.2-haiku/lib/stat.c 2013-01-09 20:55:34.206307328 +0000
@@ -53,7 +53,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <time.h>
#include <pwd.h>
#include <grp.h>

View File

@@ -0,0 +1,25 @@
DESCRIPTION="Easily extensible archiver"
HOMEPAGE="http://code.google.com/p/xar/"
SRC_URI="http://xar.googlecode.com/files/xar-1.5.2.tar.gz"
CHECKSUM_MD5="8eabb055d3387b8edc30ecfb08d2e80d"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port builds only with gcc4. Use 'setgcc gcc4' before building."
DEPEND=""
BUILD {
cd xar-1.5.2
libtoolize --force --copy --install
aclocal
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd xar-1.5.2
make install
}
LICENSE="BSD (3-clause)"
COPYRIGHT="2005 Rob Braun"

View File

@@ -8,13 +8,13 @@ MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
DEPEND=""
BUILD {
cd xz-4.999.9beta
cp -f /boot/common/bin/libtool .
cp -f `finddir B_COMMON_BIN_DIRECTORY`/libtool .
libtoolize -c -f
aclocal -I m4
autoconf
autoheader
automake -acf --foreign
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,34 @@
DESCRIPTION="XZ Utils is data compression software for working with LZMA compressed files."
HOMEPAGE="http://tukaani.org/xz/"
SRC_URI="http://tukaani.org/xz/xz-5.0.1.tar.bz2"
CHECKSUM_MD5="cb6c7a58cec4d663a395c54d186ca0c6"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port only builds with gcc4."
DEPEND=""
BUILD {
cd xz-5.0.1
touch po/t-cs.gmo
libtoolize --force --copy --install
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--docdir=$COMMON_DOCS/doc/xz \
--mandir=$COMMON_DOCS/man \
--localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale
make
}
INSTALL {
cd xz-5.0.1
make install
}
TEST {
cd xz-5.0.1
make check
}
LICENSE="GNU LGPL v2.1
GNU GPL v2
GNU GPL v3"
COPYRIGHT="2005-2011 Lasse Collin"

View File

@@ -0,0 +1,34 @@
DESCRIPTION="XZ Utils is data compression software for working with LZMA compressed files."
HOMEPAGE="http://tukaani.org/xz/"
SRC_URI="http://tukaani.org/xz/xz-5.0.4.tar.bz2"
CHECKSUM_MD5="741cd3a5f64b23b7bac56ec5b2258715"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port only builds with gcc4."
DEPEND=""
BUILD {
cd xz-5.0.4
touch po/t-cs.gmo
libtoolize --force --copy --install
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--docdir=$COMMON_DOCS/doc/xz \
--mandir=$COMMON_DOCS/man \
--localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale
make
}
INSTALL {
cd xz-5.0.4
make install
}
TEST {
cd xz-5.0.4
make check
}
LICENSE="GNU LGPL v2.1
GNU GPL v2
GNU GPL v3"
COPYRIGHT="2005-2012 Lasse Collin"

27
app-arch/zip/zip-3.0.bep Normal file
View File

@@ -0,0 +1,27 @@
DESCRIPTION="zip"
HOMEPAGE="http://www.info-zip.org/Zip.html"
SRC_URI="http://downloads.sourceforge.net/project/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
CHECKSUM_MD5="7b74551e63f8ee6aab6fbc86676c0d37"
BUILD {
cd zip30
make -f beos/Makefile \
PREFIX=`finddir B_COMMON_DIRECTORY` \
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
}
INSTALL {
cd zip30
make -f beos/Makefile install
}
TEST {
cd zip30
# make test
# make check
}
#LICENSE="Info-Zip"
#COPYRIGHT=""

View File

@@ -7,10 +7,12 @@ DEPEND=""
CHECKSUM_MD5="750aa5b5051263a99c6c195888c74968"
BUILD {
cd bonnie++-1.03e
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_BIN=`finddir B_COMMON_BIN_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--bindir=`finddir B_COMMON_BIN_DIRECTORY` \
--sbindir=`finddir B_COMMON_BIN_DIRECTORY`
--mandir=$COMMON_DOCS/man \
--bindir=$COMMON_BIN \
--sbindir=$COMMON_BIN
make
}
INSTALL {

View File

@@ -0,0 +1,26 @@
DESCRIPTION="libmicro - portable microbenchmarks"
HOMEPAGE="http://hub.opensolaris.org/bin/view/Project+libmicro"
SRC_URI="http://hub.opensolaris.org/bin/download/Project+libmicro/Source+Archives/libmicro-0.4.1.tar.gz"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
CHECKSUM_MD5="2b6e1ff22164e4ae0c21c11e6c28f7ed"
BUILD {
cd libMicro-0.4.1
make
}
INSTALL {
cd libMicro-0.4.1
cd bin-BePC
ls
}
TEST {
cd libMicro-0.4.1
# make test
# make check
}
LICENSE="CDDL v1"
#COPYRIGHT=""

View File

@@ -0,0 +1,124 @@
diff -urN libMicro-0.4.1/bench.sh libMicro-0.4.1-haiku/bench.sh
--- libMicro-0.4.1/bench.sh 2011-05-11 00:58:23.061079552 +0000
+++ libMicro-0.4.1-haiku/bench.sh 2012-07-23 22:10:32.466616320 +0000
@@ -56,7 +56,7 @@
VDIR2=$VARROOT/1/2/3/4/5/6/7/8/9/0
-OPTS="-E -C 200 -L -S -W"
+OPTS="-l -E -C 200 -L -S -W"
dd if=/dev/zero of=$TFILE bs=1024k count=10 2>/dev/null
dd if=/dev/zero of=$VFILE bs=1024k count=10 2>/dev/null
@@ -65,7 +65,7 @@
touch $IFILE
-ARCH=`arch -k`
+ARCH=`uname -m`
# produce benchmark header for easier comparisons
diff -urN libMicro-0.4.1/cascade_flock.c libMicro-0.4.1-haiku/cascade_flock.c
--- libMicro-0.4.1/cascade_flock.c 2011-05-11 00:58:23.063176704 +0000
+++ libMicro-0.4.1-haiku/cascade_flock.c 2012-07-23 22:02:58.843579392 +0000
@@ -50,7 +50,7 @@
#include "libmicro.h"
#ifndef LOCK_EX
-#include "/usr/ucbinclude/sys/file.h"
+#include "sys/file.h"
extern int flock(int fd, int operation);
#endif
diff -urN libMicro-0.4.1/Makefile.benchmarks libMicro-0.4.1-haiku/Makefile.benchmarks
--- libMicro-0.4.1/Makefile.benchmarks 2011-05-11 00:58:23.066584576 +0000
+++ libMicro-0.4.1-haiku/Makefile.benchmarks 2012-07-23 22:09:00.531365888 +0000
@@ -50,7 +50,7 @@
fcntl_ndelay \
file_lock \
fork \
- getcontext \
+# getcontext \
getenv \
gettimeofday \
getpeername \
diff -urN libMicro-0.4.1/Makefile.com libMicro-0.4.1-haiku/Makefile.com
--- libMicro-0.4.1/Makefile.com 2011-05-11 00:58:23.057147392 +0000
+++ libMicro-0.4.1-haiku/Makefile.com 2012-07-23 22:08:55.440664064 +0000
@@ -54,10 +54,10 @@
$(EXTRA_CFILES:%.c=%.lint):
- $(LINT) ../$(@:%.lint=%.c) -I. -mu -lc libmicro.ln -lm
+ $(LINT) ../$(@:%.lint=%.c) -I. -mu -lc libmicro.ln
%.lint: ../%.c libmicro.ln
- $(LINT) -mu $(CPPFLAGS) $< libmicro.ln -lpthread -lsocket -lnsl -lm
+ $(LINT) -mu $(CPPFLAGS) $< libmicro.ln -lnetwork
%.o: ../%.c
$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
@@ -107,13 +107,13 @@
echo "char * compiler_version = \""`$(COMPILER_VERSION_CMD)`"\";" > tattle.h
echo "char * CC = \""$(CC)"\";" >> tattle.h
echo "char * extra_compiler_flags = \""$(extra_CFLAGS)"\";" >> tattle.h
- $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a -lrt -lm
+ $(CC) -o tattle $(CFLAGS) -I. ../tattle.c libmicro.a
$(ELIDED_BENCHMARKS): ../elided.c
$(CC) -o $(@) ../elided.c
%: libmicro.a %.o
- $(CC) -o $(@) $(@).o $($(@)_EXTRA_DEPS) $(CFLAGS) libmicro.a $($(@)_EXTRA_LIBS) $(EXTRA_LIBS) -lpthread -lm
+ $(CC) -o $(@) $(@).o $($(@)_EXTRA_DEPS) $(CFLAGS) libmicro.a $($(@)_EXTRA_LIBS) $(EXTRA_LIBS) -lnetwork
exec: exec_bin
diff -urN libMicro-0.4.1/Makefile.Haiku libMicro-0.4.1-haiku/Makefile.Haiku
--- libMicro-0.4.1/Makefile.Haiku 1970-01-01 00:00:00.000000000 +0000
+++ libMicro-0.4.1-haiku/Makefile.Haiku 2012-07-23 22:08:51.105381888 +0000
@@ -0,0 +1,43 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms
+# of the Common Development and Distribution License
+# (the "License"). You may not use this file except
+# in compliance with the License.
+#
+# You can obtain a copy of the license at
+# src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL
+# HEADER in each file and include the License file at
+# usr/src/OPENSOLARIS.LICENSE. If applicable,
+# add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your
+# own identifying information: Portions Copyright [yyyy]
+# [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+
+
+CC= gcc
+
+#CFLAGS= -O -DUSE_SEMOP
+CPPFLAGS= -DUSE_SEMOP -D_REENTRANT
+MATHLIB=
+
+ELIDED_BENCHMARKS= \
+ cachetocache \
+ atomic
+
+
+include ../Makefile.com

View File

@@ -0,0 +1,40 @@
diff -urN piozone-1.0/piozone.c piozone-1.0-haiku/piozone.c
--- piozone-1.0/piozone.c 2002-01-28 08:14:54.022282240 +0000
+++ piozone-1.0-haiku/piozone.c 2012-07-18 19:03:17.767295488 +0000
@@ -12,7 +12,9 @@
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
+#include <stdint.h>
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
@@ -73,7 +75,7 @@
int count = 0;
int nr = 0;
- llseek(fd, off, SEEK_SET);
+ lseek(fd, off, SEEK_SET);
signal(SIGALRM, sigalrm_handler);
stopf = 0;
printf("Testing... ");
@@ -121,7 +123,7 @@
printf("Testing... ");
alarm(ts);
while (!stopf &&
- llseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
+ lseek(fd, off+((rand()&area)*MiB), SEEK_SET) != -1 &&
(nr = read(fd, iobuf, len)) == len)
{
print_dial();
@@ -159,7 +161,7 @@
off = 0;
del = 64*GiB;
- while (del > 8*KiB && llseek(fd, off+del, SEEK_SET) != -1)
+ while (del > 8*KiB && lseek(fd, off+del, SEEK_SET) != -1)
{
if (read(fd, buf, 8*KiB) < 0)
del >>= 1;

View File

@@ -0,0 +1,20 @@
DESCRIPTION="Hard disk benchmarking program"
HOMEPAGE="http://www.lysator.se/~pen/piozone/"
SRC_URI="ftp://ftp.lysator.liu.se/pub/unix/piozone/piozone-1.0.tar.gz"
CHECKSUM_MD5="e48370a9aa80aed212b18e16c08b9056"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd piozone-1.0
make
}
INSTALL {
cd piozone-1.0
mkdir -p $DESTDIR/`finddir B_COMMON_BIN_DIRECTORY`
cp -a piozone $DESTDIR/`finddir B_COMMON_BIN_DIRECTORY`/piozone
}
LICENSE="GNU GPL v2"
COPYRIGHT="2002 Peter Eriksson"

View File

@@ -1,5 +1,5 @@
DESCRIPTION="binchunker converts a CD image in .bin/.cue format to a set of .iso and .cdr tracks."
HOMEPAGE="http://he.fi/bchunk/"
DESCRIPTION="binchunker converts a CD image in .bin/.cue format to a set of .iso and .cdr tracks."
HOMEPAGE="http://he.fi/bchunk/"
SRC_URI="http://he.fi/bchunk/bchunk-1.2.0.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
@@ -12,12 +12,14 @@ BUILD {
INSTALL {
cd bchunk-1.2.0
mkdir -p $(finddir B_COMMON_BIN_DIRECTORY)
mkdir -p $(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1
mkdir -p ${DESTDIR}$(finddir B_COMMON_BIN_DIRECTORY)
mkdir -p ${DESTDIR}$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1
install -m 755 -s bchunk ${DESTDIR}$(finddir B_COMMON_BIN_DIRECTORY)
install -m 644 bchunk.1 ${DESTDIR}$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
COMMON_BIN=`finddir B_COMMON_BIN_DIRECTORY`
mkdir -p $COMMON_BIN
mkdir -p $COMMON_DOCS/man/man1
mkdir -p ${DESTDIR}$COMMON_BIN
mkdir -p ${DESTDIR}$COMMON_DOCS/man/man1
install -m 755 -s bchunk ${DESTDIR}$COMMON_BIN
install -m 644 bchunk.1 ${DESTDIR}$COMMON_DOCS/man/man1
}
LICENSE="GNU GPL v2"
COPYRIGHT="1998-2004 Heikki Hannikainen"

View File

@@ -11,7 +11,7 @@ BUILD {
aclocal
autoconf
automake
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

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

View File

@@ -7,10 +7,21 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd cdrtools-3.01
sed -i 's/share\/doc\//documentation\/doc\//g' rscsi/Makefile.doc
sed -i 's/share\/doc\//documentation\/doc\//g' pkgdefs/CSW/CSWcdrtools/prototype
sed -i 's/share\/doc\//documentation\/doc\//g' mkisofs/readme.mk
sed -i 's/share\/doc\//documentation\/doc\//g' cdda2wav/M*
sed -i 's/share\/doc\//documentation\/doc\//g' cdrecord/R*
sed -i 's/share\/doc\//documentation\/doc\//g' mkisofs/R*
sed -i 's/share\/doc\//documentation\/doc\//g' libparanoia/R*
sed -i 's/share\/doc\//documentation\/doc\//g' cdda2wav/M*
sed -i 's/share\/doc\//documentation\/doc\//g' cdrecord/r*
sed -i 's/sbin\/rscsi/ bin\/rscsi/g' pkgdefs/CSW/CSWcdrtools/prototype
sed -i 's/sbin/bin/' rscsi/Makefile
make GMAKE_NOWARN=true
}
INSTALL {
cd cdrtools-3.01
make install
make GMAKE_NOWARN=true DEFMANBASE=documentation install
}

View File

@@ -0,0 +1,27 @@
DESCRIPTION="cdrtools - A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="http://cdrecord.berlios.de"
SRC_URI="ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-3.01a06.tar.bz2"
CHECKSUM_MD5="00b6c2128023186e712cf27e629ed246"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd cdrtools-3.01
sed -i 's/share\/doc\//documentation\/doc\//g' rscsi/Makefile.doc
sed -i 's/share\/doc\//documentation\/doc\//g' pkgdefs/CSW/CSWcdrtools/prototype
sed -i 's/share\/doc\//documentation\/doc\//g' mkisofs/readme.mk
sed -i 's/share\/doc\//documentation\/doc\//g' cdda2wav/M*
sed -i 's/share\/doc\//documentation\/doc\//g' cdrecord/R*
sed -i 's/share\/doc\//documentation\/doc\//g' mkisofs/R*
sed -i 's/share\/doc\//documentation\/doc\//g' libparanoia/R*
sed -i 's/share\/doc\//documentation\/doc\//g' cdda2wav/M*
sed -i 's/share\/doc\//documentation\/doc\//g' cdrecord/r*
sed -i 's/sbin\/rscsi/ bin\/rscsi/g' pkgdefs/CSW/CSWcdrtools/prototype
sed -i 's/sbin/bin/' rscsi/Makefile
make GMAKE_NOWARN=true
}
INSTALL {
cd cdrtools-3.01
make GMAKE_NOWARN=true DEFMANBASE=documentation install
}

View File

@@ -0,0 +1,27 @@
DESCRIPTION="cdrtools - A set of tools for CD/DVD reading and recording, including cdrecord"
HOMEPAGE="http://cdrecord.berlios.de"
SRC_URI="ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-3.01a07.tar.bz2"
CHECKSUM_MD5="266bae8db7d1e5473555b48c306aa216"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd cdrtools-3.01
sed -i 's/share\/doc\//documentation\/doc\//g' rscsi/Makefile.doc
sed -i 's/share\/doc\//documentation\/doc\//g' pkgdefs/CSW/CSWcdrtools/prototype
sed -i 's/share\/doc\//documentation\/doc\//g' mkisofs/readme.mk
sed -i 's/share\/doc\//documentation\/doc\//g' cdda2wav/M*
sed -i 's/share\/doc\//documentation\/doc\//g' cdrecord/R*
sed -i 's/share\/doc\//documentation\/doc\//g' mkisofs/R*
sed -i 's/share\/doc\//documentation\/doc\//g' libparanoia/R*
sed -i 's/share\/doc\//documentation\/doc\//g' cdda2wav/M*
sed -i 's/share\/doc\//documentation\/doc\//g' cdrecord/r*
sed -i 's/sbin\/rscsi/ bin\/rscsi/g' pkgdefs/CSW/CSWcdrtools/prototype
sed -i 's/sbin/bin/' rscsi/Makefile
make GMAKE_NOWARN=true
}
INSTALL {
cd cdrtools-3.01
make GMAKE_NOWARN=true DEFMANBASE=documentation install
}

View File

@@ -0,0 +1,23 @@
diff -urN cdrtools-3.01/DEFAULTS/Defaults.haiku cdrtools-3.01-haiku/DEFAULTS/Defaults.haiku
--- cdrtools-3.01/DEFAULTS/Defaults.haiku
+++ cdrtools-3.01-haiku/DEFAULTS/Defaults.haiku
@@ -29,16 +29,16 @@
CWARNOPTS=
DEFINCDIRS= $(SRCROOT)/include
-LDPATH= -L/opt/schily/lib
+LDPATH= -L$(shell finddir B_COMMON_LIB_DIRECTORY)
#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR)
-RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib
+RUNPATH= -R$(INS_BASE)/lib
###########################################################################
#
# Installation config stuff
#
###########################################################################
-INS_BASE= /boot/opt/schily
+INS_BASE= $(shell finddir B_COMMON_DIRECTORY)
INS_KBASE= /
INS_RBASE= /
#

View File

@@ -0,0 +1,23 @@
diff -urN cdrtools-3.01/DEFAULTS/Defaults.haiku cdrtools-3.01-haiku/DEFAULTS/Defaults.haiku
--- cdrtools-3.01/DEFAULTS/Defaults.haiku
+++ cdrtools-3.01-haiku/DEFAULTS/Defaults.haiku
@@ -29,16 +29,16 @@
CWARNOPTS=
DEFINCDIRS= $(SRCROOT)/include
-LDPATH= -L/opt/schily/lib
+LDPATH= -L$(shell finddir B_COMMON_LIB_DIRECTORY)
#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR)
-RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib
+RUNPATH= -R$(INS_BASE)/lib
###########################################################################
#
# Installation config stuff
#
###########################################################################
-INS_BASE= /boot/opt/schily
+INS_BASE= $(shell finddir B_COMMON_DIRECTORY)
INS_KBASE= /
INS_RBASE= /
#

View File

@@ -0,0 +1,139 @@
diff -urN cdrtools-3.01/DEFAULTS/Defaults.haiku cdrtools-3.01-haiku/DEFAULTS/Defaults.haiku
--- cdrtools-3.01/DEFAULTS/Defaults.haiku
+++ cdrtools-3.01-haiku/DEFAULTS/Defaults.haiku
@@ -29,16 +29,16 @@
CWARNOPTS=
DEFINCDIRS= $(SRCROOT)/include
-LDPATH= -L/opt/schily/lib
+LDPATH= -L$(shell finddir B_COMMON_LIB_DIRECTORY)
#RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib -R$(OLIBSDIR)
-RUNPATH= -R$(INS_BASE)/lib -R/opt/schily/lib
+RUNPATH= -R$(INS_BASE)/lib
###########################################################################
#
# Installation config stuff
#
###########################################################################
-INS_BASE= /boot/opt/schily
+INS_BASE= $(shell finddir B_COMMON_DIRECTORY)
INS_KBASE= /
INS_RBASE= /
#
diff -urN cdrtools-3.01/RULES/x86_64-haiku-cc.rul cdrtools-3.01-haiku/RULES/x86_64-haiku-cc.rul
--- cdrtools-3.01/RULES/x86_64-haiku-cc.rul 1970-01-01 00:00:00.000000000 +0000
+++ cdrtools-3.01-haiku/RULES/x86_64-haiku-cc.rul 2012-12-08 19:24:57.418643968 +0000
@@ -0,0 +1,54 @@
+#ident "@(#)bepc-haiku-cc.rul 1.3 09/02/05 "
+###########################################################################
+# Written 1996 by J. Schilling
+###########################################################################
+#
+# Platform dependent MACROS for Haiku, a BeOS like OS
+#
+###########################################################################
+# Copyright (c) J. Schilling
+###########################################################################
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License"). You may not use this file except in compliance
+# with the License.
+#
+# See the file CDDL.Schily.txt in this distribution for details.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file CDDL.Schily.txt from this distribution.
+###########################################################################
+include $(SRCROOT)/$(RULESDIR)/rules.prg
+###########################################################################
+include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul
+
+#
+# XXX Old BeOS needs libroot.so to get [efg]cvt()
+# XXX New BeOS seems to have this in libc and in addition we include
+# XXX strtod.c for floating point conversion on OS without such code.
+# XXX For this reason, -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS has been
+# XXX removed and printing floating numbers will work with old/new BeOS
+#
+#OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS
+OSDEFS +=
+
+KDEFINES= -DKERNEL -D_KERNEL
+
+#CONFFLAGS= i586
+
+LIB_PREFIX= lib
+LIB_SUFFIX= .a
+SHL_SUFFIX= .so
+
+#LIB_SOCKET= -lsocket -lbind
+LIB_SOCKET= -lnetwork
+LIB_MATH=
+LIB_KVM=
+
+#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
+LDOPTS= $(LIBS_PATH) $(LDPATH)
+
+LORDER= echo
+TSORT= cat
+
+LN= /bin/ln -s
diff -urN cdrtools-3.01/RULES/x86_64-haiku-gcc.rul cdrtools-3.01-haiku/RULES/x86_64-haiku-gcc.rul
--- cdrtools-3.01/RULES/x86_64-haiku-gcc.rul 1970-01-01 00:00:00.000000000 +0000
+++ cdrtools-3.01-haiku/RULES/x86_64-haiku-gcc.rul 2012-12-08 19:24:57.421265408 +0000
@@ -0,0 +1,54 @@
+#ident "@(#)bepc-haiku-gcc.rul 1.3 09/02/05 "
+###########################################################################
+# Written 1996 by J. Schilling
+###########################################################################
+#
+# Platform dependent MACROS for Haiku, a BeOS like OS
+#
+###########################################################################
+# Copyright (c) J. Schilling
+###########################################################################
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License, Version 1.0 only
+# (the "License"). You may not use this file except in compliance
+# with the License.
+#
+# See the file CDDL.Schily.txt in this distribution for details.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file CDDL.Schily.txt from this distribution.
+###########################################################################
+include $(SRCROOT)/$(RULESDIR)/rules.prg
+###########################################################################
+include $(SRCROOT)/$(RULESDIR)/cc-gcc.rul
+
+#
+# XXX Old BeOS needs libroot.so to get [efg]cvt()
+# XXX New BeOS seems to have this in libc and in addition we include
+# XXX strtod.c for floating point conversion on OS without such code.
+# XXX For this reason, -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS has been
+# XXX removed and printing floating numbers will work with old/new BeOS
+#
+#OSDEFS += -DNO_FLOATINGPOINT -DUSE_FLOATINGARGS
+OSDEFS +=
+
+KDEFINES= -DKERNEL -D_KERNEL
+
+#CONFFLAGS= i586
+
+LIB_PREFIX= lib
+LIB_SUFFIX= .a
+SHL_SUFFIX= .so
+
+#LIB_SOCKET= -lsocket -lbind
+LIB_SOCKET= -lnetwork
+LIB_MATH=
+LIB_KVM=
+
+#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
+LDOPTS= $(LIBS_PATH) $(LDPATH)
+
+LORDER= echo
+TSORT= cat
+
+LN= /bin/ln -s

View File

@@ -0,0 +1,20 @@
DESCRIPTION="DAA2ISO is an open source command-line/GUI tool for converting single and multipart DAA and GBI images to the original ISO format."
HOMEPAGE="http://aluigi.org/mytoolz.htm#daa2iso"
SRC_URI="http://aluigi.altervista.org/mytoolz/daa2iso.zip"
REVISION="1"
DEPEND=""
STATUS_HAIKU="stable"
CHECKSUM_MD5="6930ebcd8568e8ade0a175352d4a3481"
BUILD {
cd src
make CFLAGS="-DNOLFS -O2 -s"
}
INSTALL {
cd src
make install PREFIX=${DESTDIR}/$(finddir B_COMMON_DIRECTORY)
}
LICENSE="GNU GPL v2"
COPYRIGHT="Luigi Auriemma"

View File

@@ -0,0 +1,19 @@
DESCRIPTION="A command-line tool for converting single and multipart UIF images to the ISO format."
HOMEPAGE="http://aluigi.org/mytoolz.htm#uif2iso"
SRC_URI="http://aluigi.altervista.org/mytoolz/uif2iso.zip"
REVISION="1"
DEPEND=""
STATUS_HAIKU="stable"
CHECKSUM_MD5="2eb9797ec463c38253014d45591a7043"
BUILD {
cd src
make CFLAGS="-DNOLFS -O2 -s"
}
INSTALL {
cd src
make install prefix=$(finddir B_COMMON_DIRECTORY) DESTDIR="${DESTDIR}"
}
LICENSE="GNU GPL v2"
COPYRIGHT="2007-2009 Luigi Auriemma"

View File

@@ -9,7 +9,7 @@ BUILD {
cd gnupg-1.4.10
libtoolize --force --copy --install
autoconf
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -9,7 +9,7 @@ BUILD {
cd gnupg-1.4.11
libtoolize --force --copy --install
autoconf
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -7,7 +7,8 @@ STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd doxygen-1.6.3
./configure --prefix /boot/common
sed -i 's/MAN1DIR = man\/man1/MAN1DIR = documentation\/man\/man1/' Makefile.in
./configure --prefix `finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,20 @@
DESCRIPTION="Doxygen is a documentation system for C++, C, Java, Objective-C, Python, IDL (Corba and Microsoft flavors), Fortran, VHDL, PHP, C#, and to some extent D."
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,158 @@
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

@@ -1,14 +1,19 @@
DESCRIPTION="JOE is a full featured terminal-based screen editor which is distributed under the GNU General Public License (GPL)."
HOMEPAGE="http://joe-editor.sourceforge.net/"
SRC_URI="hg+http://joe-editor.hg.sourceforge.net:8000/hgroot/joe-editor/joe-editor"
REVISION="1"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
#CHECKSUM_MD5="66de1b073e869ba12abbfcde3885c577"
BUILD {
cd joe-3.8-hg
autojoe
./configure --prefix=/boot/common
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--docdir=$COMMON_DOCS/doc/joe \
--mandir=$COMMON_DOCS/man
make
}

View File

@@ -7,7 +7,7 @@ DEPEND="sys-libs/ncurses >= 5.6"
CHECKSUM_MD5="91918a484f54f94fedaebe00dc393a50"
BUILD {
cd nano-2.2.3
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -7,7 +7,7 @@ DEPEND="sys-libs/ncurses >= 5.6"
CHECKSUM_MD5="77a10a49589f975ce98350a4527a2ebf"
BUILD {
cd nano-2.2.5
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -1,5 +1,5 @@
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
HOMEPAGE="http://www.nano-editor.org/"
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
HOMEPAGE="http://www.nano-editor.org/"
SRC_URI="http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
@@ -8,10 +8,11 @@ DEPEND="sys-libs/ncurses >= 5.6
CHECKSUM_MD5="03233ae480689a008eb98feb1b599807"
BUILD {
cd nano-2.2.6
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DATA_DIRECTORY`/man
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}

View File

@@ -0,0 +1,25 @@
DESCRIPTION="GNU GPL'd Pico clone with more functionality"
HOMEPAGE="http://www.nano-editor.org/"
SRC_URI="http://ftpmirror.gnu.org/nano/nano-2.3.1.tar.gz"
CHECKSUM_MD5="af09f8828744b0ea0808d6c19a2b4bfd"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="sys-libs/ncurses >= 5.6
sys-apps/groff >= 1.20.1"
BUILD {
cd nano-2.3.1
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd nano-2.3.1
make install
}
LICENSE="GNU GPL v3"
COPYRIGHT="1999-2011 Free Software Foundation, Inc. "

19
app-editors/ne/ne-2.1.bep Normal file
View File

@@ -0,0 +1,19 @@
DESCRIPTION="ne, the nice editor"
HOMEPAGE="http://ne.dsi.unimi.it"
SRC_URI="http://ne.dsi.unimi.it/ne-2.1.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
CHECKSUM_MD5="9f76652f6349721cfe0e8dc2aec9c767"
BUILD {
cd ne-2.1
make PREFIX=`finddir B_COMMON_DIRECTORY` NE_ANSI=1 haiku
}
INSTALL {
cd ne-2.1
make PREFIX=`finddir B_COMMON_DIRECTORY` haiku
}
LICENSE="GNU GPL v2"
COPYRIGHT="1993-1998 Sebastiano Vigna
1999-2010 Todd M. Lewis and Sebastiano Vigna"

View File

@@ -0,0 +1,39 @@
diff -Naur ne-2.1/makefile ne-2.1-haiku/makefile
--- ne-2.1/makefile 2010-05-10 09:42:12.052953088 -0700
+++ ne-2.1-haiku/makefile 2011-07-29 16:03:27.170131456 -0700
@@ -42,6 +42,19 @@
make install PREFIX=/usr CMDSUFFIX=.exe
tar zcvf ne-cygwin-$(VERSION).tar.gz /usr/share/ne /usr/bin/ne.exe /usr/share/doc/ne /usr/share/info/ne.info.gz /usr/share/man/man1/ne.1
+haiku:
+ (cd src; make NE_GLOBAL_DIR=$(shell finddir B_COMMON_DATA_DIRECTORY)/ne)
+ mkdir -p $(DESTDIR)$(shell finddir B_COMMON_BIN_DIRECTORY)
+ mkdir -p $(DESTDIR)$(shell finddir B_COMMON_DATA_DIRECTORY)/ne/syntax
+ mkdir -p $(DESTDIR)$(shell finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1
+ mkdir -p $(DESTDIR)$(shell finddir B_COMMON_DATA_DIRECTORY)/doc/ne
+ mkdir -p $(DESTDIR)$(shell finddir B_COMMON_DATA_DIRECTORY)/info
+ cp -pf src/ne$(CMDSUFFIX) $(DESTDIR)$(shell finddir B_COMMON_BIN_DIRECTORY)
+ cp -p syntax/*.jsf $(DESTDIR)$(shell finddir B_COMMON_DATA_DIRECTORY)/ne/syntax
+ cp -p doc/ne.1 $(DESTDIR)$(shell finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1
+ cp -pr doc/ne.pdf doc/html doc/ne.txt doc/default.* README COPYING NEWS CHANGES $(DESTDIR)$(shell finddir B_COMMON_DATA_DIRECTORY)/doc/ne
+ cp -p doc/ne.info.gz $(DESTDIR)$(shell finddir B_COMMON_DATA_DIRECTORY)/info
+
install:
(cd src; make NE_GLOBAL_DIR=$(PREFIX)/share/ne)
mkdir -p $(DESTDIR)$(PREFIX)/bin
diff -Naur ne-2.1/src/makefile ne-2.1-haiku/src/makefile
--- ne-2.1/src/makefile 2010-04-28 06:47:06.005767168 +0000
+++ ne-2.1-haiku/src/makefile 2011-04-26 12:54:53.738721792 +0000
@@ -101,10 +101,10 @@
$(if $(NE_TERMCAP), -DTERMCAP,) \
$(if $(NE_ANSI), -DTERMCAP -DANSI,)
-LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses)
+LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lncurses)
ne: $(OBJS) $(if $(NE_TERMCAP)$(NE_ANSI),$(TERMCAPOBJS),)
- $(CC) -lm $(OPTS) $(LDFLAGS) $^ $(LIBS) -o $(PROGRAM)
+ $(CC) $(OPTS) $(LDFLAGS) $^ $(LIBS) -o $(PROGRAM)
clean:
rm -f *.o core

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,20 @@
DESCRIPTION="QEmacs (for Quick Emacs), a very small but powerful UNIX editor"
HOMEPAGE="http://bellard.org/qemacs/"
SRC_URI="cvs://:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemacs/qemacs"
#CHECKSUM_MD5=""
REVISION="1"
STATUS_HAIKU="broken"
DEPEND="app-text/texi2html >= 1.82"
BUILD {
cd qemacs-0.3.2dev-cvs
./configure
make
}
INSTALL {
cd qemacs-0.3.2dev-cvs
make install
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2000-2003 Fabrice Bellard"

View File

@@ -0,0 +1,20 @@
DESCRIPTION="QEmacs (for Quick Emacs), a very small but powerful UNIX editor"
HOMEPAGE="http://bellard.org/qemacs/"
SRC_URI="http://bellard.org/qemacs/qemacs-0.3.3.tar.gz"
CHECKSUM_MD5="42fe8cc431bb9cbbeb898a2c18335990"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND="app-text/texi2html >= 1.82"
BUILD {
cd qemacs-0.3.3
./configure
make
}
INSTALL {
cd qemacs-0.3.3
make install
}
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2000-2003 Fabrice Bellard"

24
app-editors/se/se-3.0.bep Normal file
View File

@@ -0,0 +1,24 @@
DESCRIPTION="Screen oriented version of ed"
HOMEPAGE="http://se-editor.org/"
SRC_URI="http://se-editor.org/dist/se-3.0.tar.gz"
CHECKSUM_MD5="b080a5377b95d989e14ad01b0d25e33a"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="sys-libs/ncurses >= 5.6"
BUILD {
cd se-3.0
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd se-3.0
make install
}
LICENSE="Public Domain"

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@ BUILD {
cd src
make autoconf
cd ../
./configure --prefix=/boot/common --with-features=big
./configure --prefix=`finddir B_COMMON_DIRECTORY` --with-features=big
make
}

View File

@@ -10,7 +10,7 @@ BUILD {
cd src
make autoconf
cd ../
./configure --prefix=/boot/common --with-features=big
./configure --prefix=`finddir B_COMMON_DIRECTORY` --with-features=big
make
}

View File

@@ -0,0 +1,23 @@
DESCRIPTION="ARAnyM (Atari Running on Any Machine) is a multiplatform virtual machine for running Atari ST/TT/Falcon operating systems and applications."
HOMEPAGE="http://aranym.org/"
SRC_URI="cvs://:pserver:anoncvs@cvs.aranym.org:/var/repos/aranym"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND="dev-libs/libcdio >= 0.82
media-libs/libsdl >= 1.2.10"
#CHECKSUM_MD5=""
BUILD {
cd aranym
./autogen.sh --help >/dev/null
./configure --prefix=/boot/apps/ARAnyM
make
}
INSTALL {
cd aranym
make install
}
COPYRIGHT="2001-2010 ARAnyM developer team"
LICENSE="GNU GPL v2"

View File

@@ -0,0 +1,28 @@
DESCRIPTION="LibDSK is a library for manipulating disk image files"
HOMEPAGE="http://www.seasip.demon.co.uk/Unix/LibDsk/"
SRC_URI="http://www.seasip.info/Unix/LibDsk/libdsk-1.3.3.tar.gz"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND=""
#CHECKSUM_MD5=""
BUILD {
cd libdsk-1.3.3
# Need to update the libtools in the package to build shared libraries
libtoolize
# We need a makefile to run make distclean...
./configure --prefix=/boot/common
# Make sure autotools know about the updated libtools...
make distclean
# ... and run configure again
./configure --prefix=/boot/common
make
}
INSTALL {
cd libdsk-1.3.3
make install
}
COPYRIGHT="2010 John Elliott"
LICENSE="GNU GPL v2"

View File

@@ -0,0 +1,29 @@
DESCRIPTION="A portable, utilizing OpenGL and SDL, argument(command-line)-driven multi-system emulator"
HOMEPAGE="http://mednafen.sourceforge.net/"
SRC_URI="http://sourceforge.net/projects/mednafen/files/Mednafen/0.9.26-WIP/mednafen-0.9.26-wip.tar.bz2/download"
CHECKSUM_MD5="cf4eadb057e91c59b181d07bc12245f0"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port builds only with gcc4. Use 'setgcc gcc4' before building."
DEPEND="media-libs/libsdl >= 1.2.15,
dev-libs/libcdio >= 0.82,
media-libs/libsndfile >= 1.0.21"
BUILD {
cd mednafen
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd mednafen
make install
}
TEST {
cd mednafen
make check
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2012 Mednafen Team"

View File

@@ -0,0 +1,13 @@
diff -Naur mednafen/mednafen/tremor/misc.h mednafen-haiku/mednafen/tremor/misc.h
--- mednafen/mednafen/tremor/misc.h 2012-03-29 20:58:54.021757952 +0000
+++ mednafen-haiku/mednafen/tremor/misc.h 2013-01-05 18:21:51.628883456 +0000
@@ -15,6 +15,9 @@
********************************************************************/
+//Haiku
+#include <endian.h>
+
#ifndef _V_RANDOM_H_
#define _V_RANDOM_H_
#include "ivorbiscodec.h"

View File

@@ -0,0 +1,20 @@
DESCRIPTION="Oricutron is an emulator for the Oric series of computers."
HOMEPAGE="http://code.google.com/p/oriculator/"
SRC_URI="svn://http://oriculator.googlecode.com/svn/trunk"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND="media-libs/libsdl >= 1.2.10"
#CHECKSUM_MD5=""
BUILD {
cd trunk
make
}
INSTALL {
cd trunk
make install
}
COPYRIGHT="2009-2012 Peter Gordon"
LICENSE="GNU GPL v2"

View File

@@ -0,0 +1,22 @@
DESCRIPTION="PearPC PowerPC Architecture Emulator."
HOMEPAGE="http://pearpc.sourceforge.net/"
SRC_URI="cvs://:pserver:anonymous@pearpc.cvs.sourceforge.net:/cvsroot/pearpc/pearpc"
REVISION="1"
STATUS_HAIKU="untested"
DEPEND=""
#CHECKSUM_MD5=""
BUILD {
cd pearpc-0.5.0-cvs
./autogen.sh >/dev/null
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd pearpc-0.5.0-cvs
make install
}
COPYRIGHT="2003-2011 Sebastian Biallas"
LICENSE="GNU GPL v2"

View File

@@ -8,7 +8,7 @@ CHECKSUM_MD5="93e6b134dff89b2799f57b7d9e0e0fc5"
BUILD {
cd qemu-0.12.4
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -10,7 +10,7 @@ BUILD {
aclocal
autoconf
automake
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,23 @@
DESCRIPTION="Colorizes output of diff"
HOMEPAGE="http://colordiff.sourceforge.net/"
SRC_URI="http://colordiff.sourceforge.net/colordiff-1.0.10.tar.gz"
CHECKSUM_MD5="e3e86e2837deb884e43eacdc96a67baa"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-lang/perl >= 5.10.1
sys-apps/diffutils >= 2.8.1"
BUILD {
# Nothing to see here
cd colordiff-1.0.10
}
INSTALL {
cd colordiff-1.0.10
make INSTALL_DIR="$(finddir B_COMMON_BIN_DIRECTORY)" \
MAN_DIR="$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man/man1" \
ETC_DIR="$(finddir B_USER_SETTINGS_DIRECTORY)" \
install
}
LICENSE="GNU GPL v2"
COPYRIGHT="2002-2012 Dave Ewart"

View File

@@ -0,0 +1,9 @@
diff -up colordiff-1.0.10/colordiff.pl.orig colordiff-1.0.10/colordiff.pl
--- colordiff-1.0.10/colordiff.pl.orig 2012-08-05 14:43:30.500432896 -0600
+++ colordiff-1.0.10/colordiff.pl 2012-08-05 14:43:41.898367488 -0600
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/boot/common/bin/perl -w
########################################################################
# #

View File

@@ -12,7 +12,7 @@ BUILD {
INSTALL {
cd getopt-1.1.4
make install prefix=/boot/common DESTDIR="${DESTDIR}"
make install prefix=`finddir B_COMMON_DIRECTORY` DESTDIR="${DESTDIR}"
}
LICENSE="GNU GPL v2"
COPYRIGHT="1997-2005 Frodo Looijaard"

View File

@@ -0,0 +1,40 @@
--- strigi-0.7.8-orig/strigidaemon/CMakeLists.txt 2013-01-25 17:49:35.005767168 +0000
+++ strigi-0.7.8/strigidaemon/CMakeLists.txt 2013-02-13 00:55:35.019660800 +0000
@@ -126,6 +126,6 @@
DESTINATION ${LIB_DESTINATION}/cmake/LibSearchClient)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "")
add_executable(strigidaemon dummy.cpp)
-target_link_libraries(strigidaemon libstrigidaemon)
+target_link_libraries(strigidaemon libstrigidaemon network)
install(TARGETS strigidaemon
RUNTIME DESTINATION bin)
--- strigi-0.7.8-orig/strigidaemon/bin/daemon/strigithread.cpp 2013-01-25 17:49:35.020971520 +0000
+++ strigi-0.7.8/strigidaemon/bin/daemon/strigithread.cpp 2013-02-13 00:52:47.447741952 +0000
@@ -30,7 +30,9 @@
#include <stdlib.h>
#include <unistd.h>
#include <sys/resource.h>
+#ifndef __HAIKU__
#include <sys/syscall.h>
+#endif
// define two enums and a constant for use of ioprio
enum {
@@ -108,6 +110,7 @@
StrigiThread* thread = static_cast<StrigiThread*>(d);
#ifndef __APPLE__
+#ifndef __HAIKU__
if (thread->getPriority() > 0) {
// renice the thread
int r = setpriority(PRIO_PROCESS, 0, thread->getPriority());
@@ -139,7 +142,7 @@
#endif
}
#endif
-
+#endif
// start the actual work
thread->run(0);
STRIGI_LOG_DEBUG(string("strigi.daemon.") + thread->name + ".threadstarter", "end of thread");

View File

@@ -0,0 +1,29 @@
DESCRIPTION="AbiWord"
HOMEPAGE="http://www.abisource.com"
SRC_URI="http://www.abisource.com/downloads/abiword/2.8.6/source/abiword-2.8.6.tar.gz"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND="media-libs/jpeg >= 6b
media-libs/libpng >= 1.2"
CHECKSUM_MD5="f883b0a7f26229a9c66fd6a1a94381aa"
BUILD {
cd abiword-2.8.6
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--with-haiku
make
}
INSTALL {
cd abiword-2.8.6
make install
}
TEST {
cd abiword-2.8.6
# make test
# make check
}
#LICENSE=""
#COPYRIGHT=""

View File

@@ -0,0 +1,84 @@
diff -urN abiword-2.8.6/configure.in abiword-2.8.6-haiku/configure.in
--- abiword-2.8.6/configure.in 2010-06-13 13:52:21.002883584 +0000
+++ abiword-2.8.6-haiku/configure.in 2011-04-14 13:24:55.000000000 +0000
@@ -84,6 +84,9 @@
${gsf_req}
${wv_req}
"
+haiku_pkgs="
+ ${fribidi_req}
+"
# optional deps
enchant_req='enchant >= 1.2.0'
@@ -119,6 +122,9 @@
# win32 deps
win_pkgs="$enchant_req"
+#haiku deps
+haiku_pkgs=""
+
#
# System tests
#
@@ -144,6 +150,10 @@
PLATFORM="win"
TOOLKIT="win"
;;
+ *haiku*)
+ PLATFORM="haiku"
+ TOOLKIT="haiku"
+ ;;
*)
PLATFORM="unix"
TOOLKIT="gtk"
@@ -408,6 +418,16 @@
fi
])
+AC_ARG_WITH([haiku],
+ [AS_HELP_STRING([--with-haiku], [(Haiku only) add `finddir B_COMMON_DIRECTORY' prefix to CPP/LDFLAGS])],
+[
+ if test "x$withval" != "xno"; then
+ CPPFLAGS="$CPPFLAGS -I`finddir B_COMMON_DIRECTORY`/include"
+ LDFLAGS="$LDFLAGS -L`finddir B_COMMON_DIRECTORY`/lib"
+ CC=$CXX
+ fi
+])
+
AC_ARG_WITH([fink],
[AS_HELP_STRING([--with-fink], [(Mac OSX only) add `/sw' prefix to CPP/LDFLAGS])],
[
@@ -514,11 +534,14 @@
deps_pkgs="$deps_pkgs $cocoa_pkgs"
SYSTEM_LIBS="-framework Cocoa"
AC_CHECK_PROG([CONVERT], [convert], convert, AC_MSG_ERROR(Cannot find ImageMagick convert))
+elif test "$TOOLKIT" = "haiku"; then
+ deps_pkgs="$haiku_pkgs"
+ SYSTEM_LIBS="-lbe -lroot -lnetwork"
else
deps_pkgs="$deps_pkgs $gtk_pkgs"
fi
-PKG_CHECK_MODULES(DEPS,[$deps_pkgs])
+#PKG_CHECK_MODULES(DEPS,[$deps_pkgs])
dnl specific gtk214 test.
if test "$TOOLKIT" = "gtk"; then
PKG_CHECK_MODULES(GTK214, gtk+-2.0 > 2.14, [abi_cv_gtk214=yes],
@@ -647,6 +670,7 @@
AM_CONDITIONAL([TOOLKIT_COCOA], test "$TOOLKIT" == "cocoa")
AM_CONDITIONAL([TOOLKIT_GTK], test "$TOOLKIT" == "gtk")
AM_CONDITIONAL([TOOLKIT_WIN], test "$TOOLKIT" == "win")
+AM_CONDITIONAL([TOOLKIT_HAIKU], test "$TOOLKIT" == "haiku")
if test "$enable_dynamic" == ""; then
enable_dynamic="no"
@@ -783,7 +807,7 @@
eval $(echo "enable_$plugin")="auto"
done
else
- default_plugins="opendocument"
+ default_plugins=""
if test "$abi_cv_disable_default_plugins" != "yes"; then
PLUGINS="$default_plugins"

View File

@@ -0,0 +1,29 @@
DESCRIPTION="The friendly interactive shell"
HOMEPAGE="http://ridiculousfish.com/shell/"
SRC_URI="git://git.gitorious.org/fish-shell/fish-shell.git"
#CHECKSUM_MD5=""
REVISION="1"
STATUS_HAIKU="untested"
DEPEND="app-doc/doxygen >= 1.7.4
sys-libs/ncurses >= 5.9"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
cd fish-1.23.1-git
libtoolize --force --copy --install
autoconf
./configure --without-xsel --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd fish-1.23.1-git
make install DESTDIR=${DESTDIR}
}
TEST {
cd fish-1.23.1-git
make test
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2009 Axel Liljencrantz"

View File

@@ -0,0 +1,152 @@
diff --git a/configure.ac fish-1.23.1-git/configure.ac
index 377ab5e..672d34b 100644
--- a/configure.ac
+++ fish-1.23.1-git/configure.ac
@@ -105,7 +105,7 @@ fi
# tree and doesn't update CFLAGS.
#
-for i in /usr/pkg /sw /opt /opt/local; do
+for i in /usr/pkg /sw /opt /opt/local /boot/common; do
AC_MSG_CHECKING([for $i/include include directory])
if test -d $i/include; then
@@ -119,7 +119,8 @@ for i in /usr/pkg /sw /opt /opt/local; do
AC_MSG_CHECKING([for $i/lib library directory])
if test -d $i/lib; then
AC_MSG_RESULT(yes)
- LDFLAGS="$LDFLAGS -L$i/lib/ -R$i/lib/"
+ LDFLAGS="$LDFLAGS -L$i/lib/"
+ #LDFLAGS="$LDFLAGS -R$i/lib/"
else
AC_MSG_RESULT(no)
fi
@@ -142,6 +143,12 @@ AC_CONFIG_HEADERS(config.h)
#
+# Ask autoconf to detect the platform type
+#
+AC_CANONICAL_TARGET
+
+
+#
# This adds markup to the code that results in a few extra compile
# time checks on recent GCC versions. It helps stop a few common bugs.
#
@@ -306,7 +313,13 @@ if test "$GCC" = yes; then
# bug has been verified to not exist on Linux using GCC 3.3.3.
#
- CFLAGS="$CFLAGS -fno-optimize-sibling-calls"
+ case $target_os in
+ beos*|haiku*)
+ ;;
+ *)
+ CFLAGS="$CFLAGS -fno-optimize-sibling-calls"
+ ;;
+ esac
#
@@ -319,7 +332,13 @@ if test "$GCC" = yes; then
# This is needed in order to get the really cool backtraces
#
- LDFLAGS_FISH="$LDFLAGS_FISH -rdynamic"
+ case $target_os in
+ beos*|haiku*)
+ ;;
+ *)
+ LDFLAGS_FISH="$LDFLAGS_FISH -rdynamic"
+ ;;
+ esac
fi
@@ -378,8 +397,6 @@ fi
# seems that tputs is never really needed.
#
-AC_CANONICAL_TARGET
-
if test $target_cpu = powerpc; then
AC_DEFINE([TPUTS_KLUDGE],[1],[Evil kludge to get Power based machines to work])
fi
@@ -510,7 +527,7 @@ AC_DEFINE(
# Check for os dependant libraries for all binaries.
LIBS_COMMON=$LIBS
LIBS=""
-AC_SEARCH_LIBS( connect, socket, , [AC_MSG_ERROR([Cannot find the socket library, needed to build this package.] )] )
+AC_SEARCH_LIBS( connect, network socket, , [AC_MSG_ERROR([Cannot find the socket library, needed to build this package.] )] )
AC_SEARCH_LIBS( nanosleep, rt, , [AC_MSG_ERROR([Cannot find the rt library, needed to build this package.] )] )
AC_SEARCH_LIBS( setupterm, [ncurses curses], , [AC_MSG_ERROR([Could not find a curses implementation, needed to build fish])] )
AC_SEARCH_LIBS( [nan], [m], [AC_DEFINE( [HAVE_NAN], [1], [Define to 1 if you have the nan function])] )
@@ -555,7 +572,7 @@ LIBS="$LIBS_SHARED"
if test x$local_gettext != xno; then
AC_SEARCH_LIBS( gettext, intl,,)
fi
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )
+AC_SEARCH_LIBS( iconv_open, iconv, , [AC_SEARCH_LIBS( libiconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )] )
LIBS_FISH_PAGER=$LIBS
LIBS=$LIBS_COMMON
@@ -568,7 +585,7 @@ LIBS="$LIBS_SHARED"
if test x$local_gettext != xno; then
AC_SEARCH_LIBS( gettext, intl,,)
fi
-AC_SEARCH_LIBS( iconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )
+AC_SEARCH_LIBS( iconv_open, iconv, , [AC_SEARCH_LIBS( libiconv_open, iconv, , [AC_MSG_ERROR([Could not find an iconv implementation, needed to build fish])] )] )
LIBS_FISHD=$LIBS
LIBS=$LIBS_COMMON
diff --git a/proc.c fish-1.23.1-git/proc.c
index edcc7c6..30dd96f 100644
--- a/proc.c
+++ fish-1.23.1-git/proc.c
@@ -482,8 +482,11 @@ static void handle_child_status( pid_t pid, int status )
return;
}
-
+#ifdef SA_SIGINFO
void job_handle_signal ( int signal, siginfo_t *info, void *con )
+#else
+void job_handle_signal ( int signal )
+#endif
{
int status;
diff --git a/proc.h fish-1.23.1-git/proc.h
index dd46bc0..3618956 100644
--- a/proc.h
+++ fish-1.23.1-git/proc.h
@@ -427,7 +427,9 @@ int job_reap( int interactive );
Signal handler for SIGCHLD. Mark any processes with relevant
information.
*/
+#ifdef SA_SIGINFO
void job_handle_signal( int signal, siginfo_t *info, void *con );
+#endif
/**
Send the specified signal to all processes in the specified job.
diff --git a/signal.c fish-1.23.1-git/signal.c
index 2ac38aa..3ff1d38 100644
--- a/signal.c
+++ fish-1.23.1-git/signal.c
@@ -29,6 +29,14 @@ The library for various signal related issues
#include "reader.h"
#include "proc.h"
+#ifdef __HAIKU__
+#ifndef SA_SIGINFO
+#define SA_SIGINFO 0
+typedef struct {
+} siginfo_t;
+#define sa_sigaction sa_handler
+#endif
+#endif
/**
Struct describing an entry for the lookup table used to convert

View File

@@ -0,0 +1,55 @@
diff -aur zsh-5.0.0.org/configure.ac zsh-5.0.0/configure.ac
--- zsh-5.0.0.org/configure.ac 2012-06-21 20:36:03.034865152 +0200
+++ zsh-5.0.0/configure.ac 2012-11-04 20:38:45.770703360 +0100
@@ -796,8 +796,8 @@
AC_CHECK_LIB(cap, cap_get_proc)
fi
-AC_CHECK_LIB(socket, socket)
-AC_SEARCH_LIBS(gethostbyname2, bind)
+AC_SEARCH_LIBS(socket, socket network)
+AC_SEARCH_LIBS(gethostbyname2, bind network)
case $LIBS in
*-lbind*)
diff -aur zsh-5.0.0.org/Functions/Newuser/zsh-newuser-install zsh-5.0.0/Functions/Newuser/zsh-newuser-install
--- zsh-5.0.0.org/Functions/Newuser/zsh-newuser-install 2010-08-12 21:09:05.037224448 +0200
+++ zsh-5.0.0/Functions/Newuser/zsh-newuser-install 2012-11-04 20:37:13.598736896 +0100
@@ -10,14 +10,17 @@
# How the function will be referred to.
local myname=zsh-newuser-install
-# Quick test not requiring any setting up.
-# Don't run if we're root. (These variables are provided by the shell.)
-if (( EUID == 0 || UID == 0 )); then
- if [[ $1 = -f ]]; then
- print -r "$myname: won't run as root. Read the manual." >&2
- fi
- return 1
-fi
+# Haiku OS specific: We want to perform newuser configuration for
+# zero UID too! ;-) So we have to disable it by patch.
+##
+## Quick test not requiring any setting up.
+## Don't run if we're root. (These variables are provided by the shell.)
+#if (( EUID == 0 || UID == 0 )); then
+# if [[ $1 = -f ]]; then
+# print -r "$myname: won't run as root. Read the manual." >&2
+# fi
+# return 1
+#fi
# clear is missing in some Cygwin configurations (lacking ncurses)
if ! ( clear >/dev/null 2>/dev/null ); then
diff -aur zsh-5.0.0.org/Src/prototypes.h zsh-5.0.0/Src/prototypes.h
--- zsh-5.0.0.org/Src/prototypes.h 2011-05-03 20:38:21.027000832 +0200
+++ zsh-5.0.0/Src/prototypes.h 2012-11-04 21:07:23.734789632 +0100
@@ -40,7 +40,7 @@
* TBD: we'd much prefer to get hold of the header where
* these are defined.
*/
-#ifdef _AIX
+#if defined(_AIX) || defined(__HAIKU__)
#define TC_CONST const
#else
#define TC_CONST

View File

@@ -8,7 +8,7 @@ DEPEND=""
BUILD {
cd zsh-4.3.10
autoconf
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,25 @@
DESCRIPTION="Zsh is a shell designed for interactive use, although it is also a powerful scripting language."
HOMEPAGE="http://www.zsh.org"
SRC_URI="http://sourceforge.net/projects/zsh/files/zsh/5.0.0/zsh-5.0.0.tar.bz2/download"
REVISION="1"
CHECKSUM_MD5="e8484468925cec8d9a84b8b04797e764"
STATUS_HAIKU="unstable"
DEPEND=""
BUILD {
cd zsh-5.0.0
autoconf
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--mandir=$COMMON_DOCS/man \
--infodir=$COMMON_DOCS/info \
LIBS="-lgnu"
make
}
INSTALL {
cd zsh-5.0.0
make install
}
LICENSE="ZSH"
COPYRIGHT="(c) 1992-2009 Paul Falstad, Richard Coleman, Zoltán Hidvégi, Andrew Main, Peter Stephenson, Sven Wishnowsky, and others."

View File

@@ -1,5 +1,5 @@
DESCRIPTION="antiword is a free MS Word reader."
HOMEPAGE="http://www.winfield.demon.nl"
DESCRIPTION="Converts MS Word files to text and ps"
HOMEPAGE="http://www.winfield.demon.nl/#Programmer"
SRC_URI="http://www.winfield.demon.nl/linux/antiword-0.37.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
@@ -7,15 +7,13 @@ DEPEND=""
CHECKSUM_MD5="f868e2a269edcbc06bf77e89a55898d1"
BUILD {
cd antiword-0.37
make
make --makefile Makefile.haiku
}
INSTALL {
cd antiword-0.37
make global_install DESTDIR=${DESTDIR} \
GLOBAL_INSTALL_DIR=`finddir B_COMMON_BIN_DIRECTORY` \
GLOBAL_RESOURCES_DIR=`finddir B_COMMON_DATA_DIRECTORY`/antiword
make --makefile Makefile.haiku global_install
}
LICENSE="GNU GPL v2"
COPYRIGHT="1998-2005 A.J. van Os"

View File

@@ -0,0 +1,116 @@
diff -Naur antiword-0.37/antiword.h antiword-0.37-haiku/antiword.h
--- antiword-0.37/antiword.h 2005-07-06 17:46:22.000000000 +0000
+++ antiword-0.37-haiku/antiword.h 2012-12-27 19:30:23.169607168 +0000
@@ -211,6 +211,10 @@
#define GLOBAL_ANTIWORD_DIR "/boot/home/config/apps/antiword"
#define ANTIWORD_DIR "antiword"
#define FONTNAMES_FILE "fontnames"
+#elif defined(__haiku)
+#define GLOBAL_ANTIWORD_DIR "/boot/common/data/antiword"
+#define ANTIWORD_DIR "antiword"
+#define FONTNAMES_FILE "fontnames"
#elif defined(__CYGMING__)
#define GLOBAL_ANTIWORD_DIR "C:\\antiword"
#define ANTIWORD_DIR "antiword"
diff -Naur antiword-0.37/Makefile.haiku antiword-0.37-haiku/Makefile.haiku
--- antiword-0.37/Makefile.haiku 1970-01-01 00:00:00.000000000 +0000
+++ antiword-0.37-haiku/Makefile.haiku 2012-12-27 19:14:41.153092096 +0000
@@ -0,0 +1,97 @@
+#
+# Makefile for antiword (Haiku version)
+#
+
+CC = gcc
+LD = gcc
+
+INSTALL = cp -f
+INSTALL_PROGRAM = $(INSTALL)
+INSTALL_DATA = $(INSTALL)
+
+# must be equal to DEBUG or NDEBUG
+DB = DEBUG
+# Optimization: -O<n> or debugging: -g
+OPT = -O2
+
+LDLIBS =
+
+CFLAGS = -Wall -pedantic $(OPT) -D$(DB) -D__haiku
+LDFLAGS =
+
+OBJS =\
+ main_u.o asc85enc.o blocklist.o chartrans.o datalist.o depot.o\
+ dib2eps.o doclist.o fail.o finddata.o findtext.o fmt_text.o fontlist.o\
+ fonts.o fonts_u.o hdrftrlist.o imgexam.o imgtrans.o jpeg2eps.o\
+ listlist.o misc.o notes.o options.o out2window.o output.o pdf.o\
+ pictlist.o png2eps.o postscript.o prop0.o prop2.o prop6.o prop8.o\
+ properties.o propmod.o rowlist.o sectlist.o stylelist.o stylesheet.o\
+ summary.o tabstop.o text.o unix.o utf8.o word2text.o worddos.o\
+ wordlib.o wordmac.o wordole.o wordwin.o xmalloc.o xml.o
+
+PROGS =\
+ antiword\
+ kantiword
+
+LOCAL_INSTALL_DIR = $(HOME)/bin
+LOCAL_RESOURCES_DIR = $(HOME)/.antiword
+
+GLOBAL_INSTALL_DIR = /boot/common/bin
+GLOBAL_RESOURCES_DIR = /boot/common/data/antiword
+
+all: $(PROGS)
+
+install: all
+ mkdir -p $(LOCAL_INSTALL_DIR)
+ cp -pf $(PROGS) $(LOCAL_INSTALL_DIR)
+ mkdir -p $(LOCAL_RESOURCES_DIR)
+# cp -pf Resources/* $(LOCAL_RESOURCES_DIR)
+
+# NOTE: you might have to be root to do this
+global_install: all
+# @[ `id -u` -eq 0 ] || (echo "You must be root to do this" && false)
+ mkdir -p $(DESTDIR)$(GLOBAL_INSTALL_DIR)
+ $(INSTALL_PROGRAM) $(PROGS) $(DESTDIR)$(GLOBAL_INSTALL_DIR)
+ cd $(DESTDIR)$(GLOBAL_INSTALL_DIR); chmod 755 $(PROGS)
+ mkdir -p $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
+ chmod 755 $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
+ $(INSTALL_DATA) Resources/*.txt $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
+ $(INSTALL_DATA) Resources/fontnames $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
+ cd $(DESTDIR)$(GLOBAL_RESOURCES_DIR); chmod 644 *.txt fontnames
+
+# NOTE: you might have to be root to do this
+global_uninstall:
+# @[ `id -u` -eq 0 ] || (echo "You must be root to do this" && false)
+ cd $(DESTDIR)$(GLOBAL_INSTALL_DIR); rm -f $(PROGS)
+ -rmdir $(DESTDIR)$(GLOBAL_INSTALL_DIR)
+ cd $(DESTDIR)$(GLOBAL_RESOURCES_DIR); rm -f *.txt fontnames
+ -rmdir $(DESTDIR)$(GLOBAL_RESOURCES_DIR)
+
+clean:
+ rm -f $(OBJS)
+ rm -f $(PROGS)
+
+antiword: $(OBJS)
+ @rm -f $@
+ $(LD) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
+ @chmod 750 $@
+
+kantiword: Unix-only/KDE3-only/kantiword.sh
+ @rm -f $@
+ echo "#!/bin/bash" > $@
+ cat $? >> $@
+ @chmod 750 $@
+
+.c.o:
+ $(CC) $(CFLAGS) -c $<
+
+main_u.o: version.h
+postscript.o: version.h
+pdf.o: version.h
+fonts_u.o: fontinfo.h
+
+fontinfo.h: Unix-only/fontinfo.h
+ cp -rp $? $@
+
+Unix-only/fontinfo.h: Unix-only/fontinfo.pl
+ Unix-only/fontinfo.pl > Unix-only/fontinfo.h

View File

@@ -11,7 +11,7 @@ BUILD {
aclocal -I m4
autoconf
automake
./configure --prefix=/boot/common
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}

View File

@@ -0,0 +1,29 @@
DESCRIPTION="converts filenames from one encoding to another"
HOMEPAGE="https://www.j3e.de/linux/convmv/"
SRC_URI="https://www.j3e.de/linux/convmv/convmv-1.15.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-lang/perl >= 5.8"
CHECKSUM_MD5="b1bb703c08c6355868d15890ff193f7d"
BUILD {
cd convmv-1.15
sed -i "s#/usr/bin/perl#`finddir B_COMMON_BIN_DIRECTORY`/perl#" convmv
make \
PREFIX=`finddir B_COMMON_DIRECTORY` \
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
}
INSTALL {
cd convmv-1.15
make install \
PREFIX=`finddir B_COMMON_DIRECTORY` \
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
}
TEST {
cd convmv-1.15
make test
}
LICENSE="GNU GPL v2"
COPYRIGHT="2003-2011 Bjoern JACKE"

View File

@@ -0,0 +1,19 @@
diff -ur convmv-1.15.org/Makefile convmv-1.15/Makefile
--- convmv-1.15.org/Makefile 2008-11-29 14:49:38.012845056 +0100
+++ convmv-1.15/Makefile 2012-04-21 02:00:10.777519104 +0200
@@ -6,6 +6,7 @@
SED=sed
all: manpage
+ sed -i "s#/usr/bin/perl#`which perl`#" convmv
install: all
mkdir -p $(DESTDIR)$(MANDIR)/man1/
@@ -22,6 +23,7 @@
test:
test -d suite || $(TAR) xf testsuite.tar
+ sed -i "s#/usr/bin/perl#`which perl`#" suite/parsable_tester.pl
cd suite ; ./dotests.sh
dist: clean

View File

@@ -0,0 +1,21 @@
DESCRIPTION="An implementation of John Gruber's Markdown text to html language written in C"
HOMEPAGE="http://www.pell.portland.or.us/~orc/Code/discount/"
SRC_URI="http://www.pell.portland.or.us/~orc/Code/discount/discount-2.1.3.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="a1a4eade44f8141e38f2be7f2ed56c98"
BUILD {
cd discount-2.1.3
./configure.sh --prefix=$(finddir B_COMMON_DIRECTORY) \
--mandir=$(finddir B_COMMON_DOCUMENTATION_DIRECTORY)/man \
--enable-all-features
make
}
INSTALL {
cd discount-2.1.3
make install.everything
}
LICENSE="BSD (4-clause)"
COPYRIGHT="2007-2012 David Loren Parsons"

View File

@@ -0,0 +1,23 @@
DESCRIPTION="Tools for accessing and converting various ebook file formats"
HOMEPAGE="http://sourceforge.net/projects/ebook-tools/"
SRC_URI="http://sourceforge.net/projects/ebook-tools/files/ebook-tools/0.2.1/ebook-tools-0.2.1.tar.gz"
CHECKSUM_MD5="cabbd2ef9148a61ca5f6e60ca63e6045"
REVISION="1"
STATUS_HAIKU="stable"
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
DEPEND="libzip >= 0.10"
BUILD {
cd ebook-tools-0.2.1
sed -i 's/-Wmissing-format-attribute//' CMakeLists.txt
cmake .
make
}
INSTALL {
cd ebook-tools-0.2.1
make install
}
LICENSE="MIT"
COPYRIGHT="2008 Ely Levy"

View File

@@ -0,0 +1,26 @@
DESCRIPTION="An OCR (Octical Character Recognition) reader"
HOMEPAGE="http://jocr.sofrceforge.net"
SRC_URI="http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-0.49.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="4e527bc4bdd97c2be15fdd818857507f"
BUILD {
cd gocr-0.49
libtoolize --force --copy --install
aclocal
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--libdir=`finddir B_COMMON_LIB_DIRECTORY` \
--bindir=`finddir B_COMMON_BIN_DIRECTORY`
make
}
INSTALL {
cd gocr-0.49
make install DESTDIR=${DESTDIR}
}
LICENSE="GNU GPL v2"
COPYRIGHT="2000-2010 Joerg Schulenburg"

View File

@@ -0,0 +1,58 @@
diff -urN gocr-0.49-orig/configure.in gocr-0.49/configure.in
--- gocr-0.49-orig/configure.in 2010-08-04 12:33:10.000000000 +0000
+++ gocr-0.49/configure.in 2011-06-03 13:04:26.985137152 +0000
@@ -41,8 +41,8 @@
# netpbm-9 : libpnm + pnm.h (+ p[bgp]m.h)
# pnm_readpaminit (netpbm-10)
# pnm_readpnminit (netpbm-9,10)
-# ToDo: how to check that -lm is needed?
-LDFLAGS="-lm $LDFLAGS"
+AC_CHECK_LIBM
+LDFLAGS="$LIBM $LDFLAGS"
AC_SEARCH_LIBS(pnm_readpnminit,[netpbm pnm],[check_netpbm_h="pam.h pnm.h"],
[ echo " * * * try option --with-netpbm=PATH"])
fi
diff -urN gocr-0.49-orig/src/barcode.c gocr-0.49/src/barcode.c
--- gocr-0.49-orig/src/barcode.c 2010-08-04 12:03:59.000000000 +0000
+++ gocr-0.49/src/barcode.c 2011-06-03 13:05:00.909115392 +0000
@@ -999,8 +999,10 @@
/* j is the num of bars found above, some inner bars are not counted */
/* ToDo: better iterative add next nearest bars from sorted list near bars? */
{
- int row, col;
+ int row, col, nc, nr, dm_d;
+ int cpos=0;
char *dm_bitmap=NULL;
+ char *code=0;
// store pattern without finder pattern into dm_bitmap
dm_bitmap=(char *)malloc(4*(bx1-regx)*(by1-regy));
@@ -1016,6 +1018,7 @@
/* transport the info to the gocr-output (development) */
if (JOB->cfg.verbose) {
+
fprintf(stderr,"\n# ");
for (col=0;col<2*bx1;col++)
if (col<=8) fprintf(stderr," %1d",col); else
@@ -1048,7 +1051,6 @@
}
}
- char *code=0; int cpos=0;
box2->c=PICTURE; /* BARCODE */
code=NULL;
code=(char *)malloc(6*4*bx1*by1/8+128); /* maxlen: &#%3d; = 6 */
@@ -1070,9 +1072,10 @@
/* ToDo: decode and print/store barcode bars=j */
x = +0; // col += 2
y = +4; // row -= 2
- int nc=2*(bx1-regx), nr=2*(by1-regy),
+ nc=2*(bx1-regx);
+ nr=2*(by1-regy);
// dm_mode=0, // ECC200-mode: 0=ASCII+digitpair, 230=C40
- dm_d=+1; // direction right/down
+ dm_d=+1; // direction right/down
for (j=0;j<(bx1-regx)*(by1-regy)/2;j++) { // each byte
int dm_byte=0;
const int *pp; /* pointer to (const int) */

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