From 19669611884c06f71e7f4adbce2249a42d3dd8c5 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 3 Oct 2009 22:59:20 +0200 Subject: [PATCH] new package: - add fribidi for upcoming enna --- packages/other/fribidi/build | 21 ++++++++++++++++++ .../other/fribidi/patches/10_chunk-size.diff | 22 +++++++++++++++++++ packages/other/fribidi/scripts/fribidi-config | 9 ++++++++ packages/other/fribidi/url | 1 + 4 files changed, 53 insertions(+) create mode 100644 packages/other/fribidi/build create mode 100644 packages/other/fribidi/patches/10_chunk-size.diff create mode 100644 packages/other/fribidi/scripts/fribidi-config create mode 100644 packages/other/fribidi/url diff --git a/packages/other/fribidi/build b/packages/other/fribidi/build new file mode 100644 index 0000000000..cd334fe204 --- /dev/null +++ b/packages/other/fribidi/build @@ -0,0 +1,21 @@ +#!/bin/sh + +. config/options + +$SCRIPTS/build toolchain + +PKG_DIR=`find $PACKAGES -type d -name $1` + +cd $PKG_BUILD +./configure --host=$TARGET_NAME \ + --build=$HOST_NAME \ + --prefix=/usr \ + --disable-debug \ + --enable-malloc \ + --with-glib=no \ + --disable-shared + +make + +$MAKEINSTALL +cp -f $ROOT/$PKG_DIR/scripts/$1-config $ROOT/$TOOLCHAIN/bin/$1-config diff --git a/packages/other/fribidi/patches/10_chunk-size.diff b/packages/other/fribidi/patches/10_chunk-size.diff new file mode 100644 index 0000000000..e7256dabf5 --- /dev/null +++ b/packages/other/fribidi/patches/10_chunk-size.diff @@ -0,0 +1,22 @@ +Define FRIBIDI_CHUNK_SIZE only if using allocation pools + +diff -Nur fribidi2-cvs-20061020.orig/lib/common.h fribidi2-cvs-20061020/lib/common.h +--- fribidi2-cvs-20061020.orig/lib/common.h Tue Jan 31 05:23:12 2006 ++++ fribidi2-cvs-20061020/lib/common.h Sat Oct 21 16:42:41 2006 +@@ -131,6 +131,8 @@ + + /* FRIBIDI_CHUNK_SIZE is the number of bytes in each chunk of memory being + * allocated for data structure pools. */ ++#if USE_SIMPLE_MALLOC+0 ++#else + #ifndef FRIBIDI_CHUNK_SIZE + # if HAVE_ASM_PAGE_H + # ifndef __FRIBIDI_DOC +@@ -145,6 +147,7 @@ + # error FRIBIDI_CHUNK_SIZE now should define the size of a chunk in bytes. + # endif /* FRIBIDI_CHUNK_SIZE < 256 */ + #endif /* FRIBIDI_CHUNK_SIZE */ ++#endif /* USE_SIMPLE_MALLOC */ + + /* FRIBIDI_BEGIN_STMT should be used at the beginning of your macro + * definitions that are to behave like simple statements. Use diff --git a/packages/other/fribidi/scripts/fribidi-config b/packages/other/fribidi/scripts/fribidi-config new file mode 100644 index 0000000000..aa7d9776bd --- /dev/null +++ b/packages/other/fribidi/scripts/fribidi-config @@ -0,0 +1,9 @@ +#!/bin/sh +while test $# -gt 0; do + case $1 in + --libs) + echo "-lfribidi" + ;; + esac + shift +done diff --git a/packages/other/fribidi/url b/packages/other/fribidi/url new file mode 100644 index 0000000000..4e2af438b2 --- /dev/null +++ b/packages/other/fribidi/url @@ -0,0 +1 @@ +http://fribidi.org/download/fribidi-0.19.2.tar.gz \ No newline at end of file