forked from videolan/vlc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To support complex scripts (e.g. Thai) in libass, HarfBuzz support is required. Signed-off-by: Jean-Baptiste Kempf <[email protected]>
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6b3d313287e4b9baba864bcdd2e29d20b4c0573b4b538a2979d53996406bfbb819b13e7fd87b9d3918c055134377f6d9abd2fec7ce3b566869ecd56ca04c87b7 harfbuzz-0.9.2.tar.bz2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- harfbuzz-0.9.2/configure.ac.orig 2012-08-04 23:49:48.000000000 +0900 | ||
+++ harfbuzz-0.9.0/configure.ac 2012-08-05 00:46:52.000000000 +0900 | ||
@@ -197,7 +197,7 @@ | ||
AC_CHECK_HEADERS(ApplicationServices/ApplicationServices.h, have_coretext=true, have_coretext=false) | ||
if $have_coretext; then | ||
CORETEXT_CFLAGS= | ||
- CORETEXT_LIBS= | ||
+ CORETEXT_LIBS="-Wl,-framework,ApplicationServices" | ||
AC_SUBST(CORETEXT_CFLAGS) | ||
AC_SUBST(CORETEXT_LIBS) | ||
AC_DEFINE(HAVE_CORETEXT, 1, [Have Core Text backend]) | ||
--- harfbuzz-0.9.2/harfbuzz.pc.in.orig 2012-08-12 12:05:38.000000000 +0900 | ||
+++ harfbuzz-0.9.2/harfbuzz.pc.in 2012-08-12 12:15:08.000000000 +0900 | ||
@@ -7,5 +7,5 @@ | ||
Description: Text shaping library | ||
Version: @VERSION@ | ||
|
||
-Libs: -L${libdir} -lharfbuzz | ||
+Libs: -L${libdir} -Wl,-framework,ApplicationServices -lharfbuzz | ||
Cflags: -I${includedir}/harfbuzz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# HARFBUZZ | ||
|
||
HARFBUZZ_VERSION := 0.9.2 | ||
HARFBUZZ_URL := http://www.freedesktop.org/software/harfbuzz/snapshot/harfbuzz-$(HARFBUZZ_VERSION).tar.bz2 | ||
PKGS += harfbuzz | ||
ifeq ($(call need_pkg,"harfbuzz"),) | ||
PKGS_FOUND += harfbuzz | ||
endif | ||
|
||
$(TARBALLS)/harfbuzz-$(HARFBUZZ_VERSION).tar.bz2: | ||
$(call download,$(HARFBUZZ_URL)) | ||
|
||
.sum-harfbuzz: harfbuzz-$(HARFBUZZ_VERSION).tar.bz2 | ||
|
||
harfbuzz: harfbuzz-$(HARFBUZZ_VERSION).tar.bz2 .sum-harfbuzz | ||
$(UNPACK) | ||
ifdef HAVE_MACOSX | ||
$(APPLY) $(SRC)/harfbuzz/harfbuzz-osx.patch | ||
endif | ||
$(MOVE) | ||
|
||
DEPS_harfbuzz = freetype2 $(DEPS_freetype2) | ||
|
||
HARFBUZZ_CONF= | ||
|
||
.harfbuzz: harfbuzz | ||
ifdef HAVE_MACOSX | ||
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS)" ./autogen.sh $(HOSTCONF) $(HARFBUZZ_CONF) | ||
else | ||
cd $< && $(HOSTVARS) CFLAGS="$(CFLAGS)" ./configure $(HOSTCONF) $(HARFBUZZ_CONF) | ||
endif | ||
cd $< && $(MAKE) install | ||
touch $@ |