[vlc-commits] Contribs: add fribidi
Jean-Baptiste Kempf
git at videolan.org
Mon Jul 4 02:27:36 CEST 2011
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jul 4 02:07:25 2011 +0200| [d975a3a17f38f81a21a6b5ff6723a491bc85c757] | committer: Jean-Baptiste Kempf
Contribs: add fribidi
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d975a3a17f38f81a21a6b5ff6723a491bc85c757
---
contrib/src/fribidi/SHA512SUMS | 1 +
contrib/src/fribidi/fribidi.patch | 102 +++++++++++++++++++++++++++++++++++++
contrib/src/fribidi/rules.mak | 22 ++++++++
3 files changed, 125 insertions(+), 0 deletions(-)
diff --git a/contrib/src/fribidi/SHA512SUMS b/contrib/src/fribidi/SHA512SUMS
new file mode 100644
index 0000000..3e43303
--- /dev/null
+++ b/contrib/src/fribidi/SHA512SUMS
@@ -0,0 +1 @@
+55b3886399ab45fed5849621bd97c24d7ab58f58ef8eb408e1f8cd23894897261239a04bfd0d7120424e38b36b18b6b0cd2e3ca515c6cc4b6b97f665fbb9d62e fribidi-0.19.2.tar.gz
diff --git a/contrib/src/fribidi/fribidi.patch b/contrib/src/fribidi/fribidi.patch
new file mode 100644
index 0000000..1300259
--- /dev/null
+++ b/contrib/src/fribidi/fribidi.patch
@@ -0,0 +1,102 @@
+diff -u fribidi.orig/Makefile.am fribidi/Makefile.am
+--- fribidi.orig/Makefile.am 2005-08-25 20:35:34.000000000 +0200
++++ fribidi/Makefile.am 2008-01-28 14:31:19.000000000 +0100
+@@ -9,7 +9,7 @@
+ ##############################################################################
+
+ ## The order of subdirs is important, don't change without a reason.
+-SUBDIRS = gen.tab charset lib bin doc test
++SUBDIRS = gen.tab charset lib #bin doc test
+
+ EXTRA_DIST = bootstrap ChangeLog.old
+
+diff -u fribidi.orig/configure.ac fribidi/configure.ac
+--- fribidi.orig/configure.ac 2008-01-16 00:15:46.000000000 +0100
++++ fribidi/configure.ac 2008-01-28 14:32:38.000000000 +0100
+@@ -165,38 +165,38 @@
+ AM_CONDITIONAL(FRIBIDI_CHARSETS, test x$FRIBIDI_CHARSETS = x1)
+
+ # --with[out]-glib
+-AC_ARG_WITH(glib,
+- AC_HELP_STRING([--with-glib=@<:@no/auto/yes@:>@],
+- [use Glib @<:@default=auto@:>@]))
+-GLIB_PACKAGE=glib-2.0
+-GLIB_MINVERSION=2.4
++#AC_ARG_WITH(glib,
++# AC_HELP_STRING([--with-glib=@<:@no/auto/yes@:>@],
++# [use Glib @<:@default=auto@:>@]))
++#GLIB_PACKAGE=glib-2.0
++#GLIB_MINVERSION=2.4
+ GLIB_LIBS=
+ GLIB_CFLAGS=
+-if test x$with_glib = xyes; then
+- PKG_CHECK_MODULES(GLIB,$GLIB_PACKAGE >= $GLIB_MINVERSION)
+- FRIBIDI_USE_GLIB=1
+-else
+-if test x$with_glib = xno; then
++#if test x$with_glib = xyes; then
++# PKG_CHECK_MODULES(GLIB,$GLIB_PACKAGE >= $GLIB_MINVERSION)
++# FRIBIDI_USE_GLIB=1
++#else
++#if test x$with_glib = xno; then
+ FRIBIDI_USE_GLIB=0
+-else
+- PKG_CHECK_MODULES(GLIB,$GLIB_PACKAGE >= $GLIB_MINVERSION,
+- FRIBIDI_USE_GLIB=1,
+- FRIBIDI_USE_GLIB=0)
+-fi
+-fi
+-if test x$FRIBIDI_USE_GLIB = x0; then
++#else
++# PKG_CHECK_MODULES(GLIB,$GLIB_PACKAGE >= $GLIB_MINVERSION,
++# FRIBIDI_USE_GLIB=1,
++# FRIBIDI_USE_GLIB=0)
++#fi
++#fi
++#if test x$FRIBIDI_USE_GLIB = x0; then
+ GLIB_PACKAGE=
+-fi
++#fi
+ AC_SUBST(FRIBIDI_USE_GLIB)
+ AM_CONDITIONAL(FRIBIDI_USE_GLIB, test x$FRIBIDI_USE_GLIB = x1)
+
+
+-MISC_CFLAGS="$GLIB_CFLAGS"
+-MISC_LIBS="$GLIB_LIBS"
+-MISC_PACKAGES="$GLIB_PACKAGE"
+-AC_SUBST(MISC_CFLAGS)
+-AC_SUBST(MISC_LIBS)
+-AC_SUBST(MISC_PACKAGES)
++#MISC_CFLAGS="$GLIB_CFLAGS"
++#MISC_LIBS="$GLIB_LIBS"
++#MISC_PACKAGES="$GLIB_PACKAGE"
++#AC_SUBST(MISC_CFLAGS)
++#AC_SUBST(MISC_LIBS)
++#AC_SUBST(MISC_PACKAGES)
+
+ # Generate output
+ AC_CONFIG_FILES([fribidi.pc
+--- fribidi.orig/fribidi.pc.in 2008-02-02 23:06:05.000000000 +0000
++++ fribidi/fribidi.pc.in 2008-02-02 23:06:39.000000000 +0000
+@@ -7,7 +7,6 @@
+
+ Name: @PACKAGE_NAME@
+ Description: Unicode Bidirectional Algorithm Library
+-Requires: @MISC_PACKAGES@
+ Version: @VERSION@
+ Libs: -L${libdir} -lfribidi
+ Cflags: -I${includedir}/@PACKAGE@
+--- fribidi.orig/lib/fribidi-common.h 2008-02-04 21:30:46.000000000 +0000
++++ fribidi/lib/fribidi-common.h 2008-02-04 21:32:25.000000000 +0000
+@@ -53,11 +53,7 @@
+
+ /* FRIBIDI_ENTRY is a macro used to declare library entry points. */
+ #ifndef FRIBIDI_ENTRY
+-# if (defined(WIN32)) || (defined(_WIN32_WCE))
+-# define FRIBIDI_ENTRY __declspec(dllimport)
+-# else /* !WIN32 */
+ # define FRIBIDI_ENTRY /* empty */
+-# endif /* !WIN32 */
+ #endif /* !FRIBIDI_ENTRY */
+
+ #if FRIBIDI_USE_GLIB+0
diff --git a/contrib/src/fribidi/rules.mak b/contrib/src/fribidi/rules.mak
new file mode 100644
index 0000000..a6e8fb8
--- /dev/null
+++ b/contrib/src/fribidi/rules.mak
@@ -0,0 +1,22 @@
+# FRIBIDI
+FRIBIDI_VERSION := 0.19.2
+FRIBIDI_URL := http://fribidi.org/download/fribidi-$(FRIBIDI_VERSION).tar.gz
+
+PKGS += fribidi
+
+$(TARBALLS)/fribidi-$(FRIBIDI_VERSION).tar.gz:
+ $(call download,$(FRIBIDI_URL))
+
+.sum-fribidi: fribidi-$(FRIBIDI_VERSION).tar.gz
+
+fribidi: fribidi-$(FRIBIDI_VERSION).tar.gz .sum-fribidi
+ $(UNPACK)
+ $(APPLY) $(SRC)/fribidi/fribidi.patch
+ $(MOVE)
+
+# fixme .iconv
+.fribidi: fribidi
+ cd $< && rm -f configure && ./bootstrap
+ cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+ cd $< && $(MAKE) install
+ touch $@
More information about the vlc-commits
mailing list