Skip to content

Commit

Permalink
ASS bump to 0.10.0
Browse files Browse the repository at this point in the history
libass has a new dependency on fribidi.  So also add fribidi to
contribs.  I repackaged the libass distribution because the configure
script shipped with it is damaged beyond repair for darwin.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4304 b64f7644-9d1e-0410-96f1-a4d463321fa5
  • Loading branch information
jstebbins committed Oct 21, 2011
1 parent 68fe94b commit f28797d
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 88 deletions.
11 changes: 11 additions & 0 deletions contrib/fribidi/A00-disable-tests.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff -Naur fribidi-0.19.2.orig/bin/Makefile.am fribidi-0.19.2/bin/Makefile.am
--- fribidi-0.19.2.orig/bin/Makefile.am 2005-06-07 01:39:14.000000000 -0700
+++ fribidi-0.19.2/bin/Makefile.am 2011-10-20 10:19:14.380722654 -0700
@@ -1,6 +1,6 @@
bin_PROGRAMS = fribidi

-noinst_PROGRAMS = fribidi-benchmark fribidi-bidi-types fribidi-caprtl2utf8
+noinst_PROGRAMS = fribidi-bidi-types fribidi-caprtl2utf8

getopt_SOURCES = getopt.c getopt1.c getopt_int.h getopt.h gettext.h

11 changes: 11 additions & 0 deletions contrib/fribidi/P00-mingw-static-lib.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- fribidi-0.19.2.orig/lib/fribidi-common.h 2007-04-05 09:13:24.000000000 -0700
+++ fribidi-0.19.2/lib/fribidi-common.h 2011-10-20 11:00:21.874917516 -0700
@@ -54,7 +54,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)
+# define FRIBIDI_ENTRY
# else /* !WIN32 */
# define FRIBIDI_ENTRY /* empty */
# endif /* !WIN32 */
24 changes: 24 additions & 0 deletions contrib/fribidi/P01-darwin-no-glib.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff -Naur fribidi-0.19.2.orig/configure.ac fribidi-0.19.2/configure.ac
--- fribidi-0.19.2.orig/configure.ac 2009-03-26 15:37:29.000000000 -0700
+++ fribidi-0.19.2/configure.ac 2011-10-20 14:15:40.000000000 -0700
@@ -172,18 +172,8 @@
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
- FRIBIDI_USE_GLIB=0
-else
- PKG_CHECK_MODULES(GLIB,$GLIB_PACKAGE >= $GLIB_MINVERSION,
- FRIBIDI_USE_GLIB=1,
- FRIBIDI_USE_GLIB=0)
-fi
-fi
+FRIBIDI_USE_GLIB=0
+
if test x$FRIBIDI_USE_GLIB = x0; then
GLIB_PACKAGE=
fi
6 changes: 6 additions & 0 deletions contrib/fribidi/module.defs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$(eval $(call import.MODULE.defs,FRIBIDI,fribidi))
$(eval $(call import.CONTRIB.defs,FRIBIDI))

FRIBIDI.FETCH.url = http://download.handbrake.fr/handbrake/contrib/fribidi-0.19.2.tar.gz

FRIBIDI.CONFIGURE.bootstrap = ./bootstrap;
2 changes: 2 additions & 0 deletions contrib/fribidi/module.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
$(eval $(call import.MODULE.rules,FRIBIDI))
$(eval $(call import.CONTRIB.rules,FRIBIDI))
84 changes: 0 additions & 84 deletions contrib/libass/A00-configure.patch

This file was deleted.

9 changes: 5 additions & 4 deletions contrib/libass/module.defs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
__deps__ := FONTCONFIG FREETYPE
__deps__ := FONTCONFIG FREETYPE FRIBIDI
$(eval $(call import.MODULE.defs,LIBASS,libass,$(__deps__)))
$(eval $(call import.CONTRIB.defs,LIBASS))

LIBASS.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libass-0.9.9.tar.bz2
LIBASS.EXTRACT.tarbase = libass-0.9.9
LIBASS.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libass-0.10.0-1.tar.gz

# Disable as many external dependencies as I can get away with
# and tell configure where to find our version of freetype
Expand All @@ -12,4 +11,6 @@ LIBASS.CONFIGURE.extra = \
FREETYPE_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfreetype" \
FREETYPE_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include/freetype2" \
FONTCONFIG_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfontconfig" \
FONTCONFIG_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include"
FONTCONFIG_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include" \
FRIBIDI_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfribidi" \
FRIBIDI_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include/fribidi"
6 changes: 6 additions & 0 deletions libhb/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ else
LIBHB.GCC.l += iconv
endif

ifeq (1,$(FRIBIDI.enabled))
LIBHB.dll.libs += $(CONTRIB.build/)lib/libfribidi.a
else
LIBHB.GCC.l += fribidi
endif

ifneq ($(HAS.pthread),1)
LIBHB.dll.libs += $(CONTRIB.build/)lib/libpthreadGC2.a
else
Expand Down
20 changes: 20 additions & 0 deletions macosx/HandBrake.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -784,6 +785,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -854,6 +856,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -895,6 +898,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -986,6 +990,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1027,6 +1032,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1118,6 +1124,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1159,6 +1166,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1250,6 +1258,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1291,6 +1300,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1385,6 +1395,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1426,6 +1437,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1520,6 +1532,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1561,6 +1574,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1655,6 +1669,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1696,6 +1711,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1790,6 +1806,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1831,6 +1848,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1933,6 +1951,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down Expand Up @@ -1978,6 +1997,7 @@
"$(EXTERNAL_BUILD)/contrib/lib/libfaac.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfontconfig.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfreetype.a",
"$(EXTERNAL_BUILD)/contrib/lib/libfribidi.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmkv.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp3lame.a",
"$(EXTERNAL_BUILD)/contrib/lib/libmp4v2.a",
Expand Down
5 changes: 5 additions & 0 deletions make/include/main.defs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ ifneq ($(HAS.bz2),1)
endif
endif

ifneq (,$(filter $(BUILD.system),darwin cygwin mingw))
MODULES += contrib/fribidi
endif


MODULES += contrib/faac
MODULES += contrib/ffmpeg
MODULES += contrib/fontconfig
Expand Down
5 changes: 5 additions & 0 deletions test/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ ifeq (1,$(ZLIB.enabled))
else
TEST.GCC.l += z
endif
ifeq (1,$(FRIBIDI.enabled))
TEST.libs += $(CONTRIB.build/)lib/libfribidi.a
else
TEST.GCC.l += fribidi
endif

###############################################################################

Expand Down

0 comments on commit f28797d

Please sign in to comment.