summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-09-26 11:30:42 +0000
committerjperkin <jperkin@pkgsrc.org>2016-09-26 11:30:42 +0000
commit404fc423a485b23bb78936393de75be6413d6f8e (patch)
treec71452bfe4197d50495cb03f3c578b11468f9b4d /fonts
parent50ea9ebefd75ab74ab8fb8dffc38990cdded323f (diff)
downloadpkgsrc-404fc423a485b23bb78936393de75be6413d6f8e.tar.gz
Fix build on older Darwin.
Diffstat (limited to 'fonts')
-rw-r--r--fonts/harfbuzz/distinfo3
-rw-r--r--fonts/harfbuzz/patches/patch-src_hb-coretext.cc16
2 files changed, 18 insertions, 1 deletions
diff --git a/fonts/harfbuzz/distinfo b/fonts/harfbuzz/distinfo
index a8a4b5eac9b..9a2e0eda12c 100644
--- a/fonts/harfbuzz/distinfo
+++ b/fonts/harfbuzz/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.57 2016/09/12 07:34:41 wiz Exp $
+$NetBSD: distinfo,v 1.58 2016/09/26 11:30:42 jperkin Exp $
SHA1 (harfbuzz-1.3.1.tar.bz2) = a90aea57f268b6b4a0ecb92b9ed0a987ebd0df9e
RMD160 (harfbuzz-1.3.1.tar.bz2) = 97ab46b367214cba41b66e18e52aa57142e4822a
SHA512 (harfbuzz-1.3.1.tar.bz2) = 7c2dbd1cc3c77646fd7627c4db9ac1a5781fb4babe8a92b276b2f2170f82d7075632253c7498c27735c5aa7331ee22d41e24c3a8cfa07adc2461ece1e36334b9
Size (harfbuzz-1.3.1.tar.bz2) = 1358437 bytes
+SHA1 (patch-src_hb-coretext.cc) = 29c95fbbb424a035f74294809ea8a3359e9d93ae
diff --git a/fonts/harfbuzz/patches/patch-src_hb-coretext.cc b/fonts/harfbuzz/patches/patch-src_hb-coretext.cc
new file mode 100644
index 00000000000..39b17d4a2cf
--- /dev/null
+++ b/fonts/harfbuzz/patches/patch-src_hb-coretext.cc
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_hb-coretext.cc,v 1.1 2016/09/26 11:30:42 jperkin Exp $
+
+Provide compatibility define for older SDKs.
+
+--- src/hb-coretext.cc.orig 2016-09-07 20:57:11.000000000 +0000
++++ src/hb-coretext.cc
+@@ -152,6 +152,9 @@ create_ct_font (CGFontRef cg_font, CGFlo
+ * operating system versions. Except for the emoji font, where _not_
+ * reconfiguring the cascade list causes CoreText crashes. For details, see
+ * crbug.com/549610 */
++#ifndef kCTVersionNumber10_10
++#define kCTVersionNumber10_10 0x00070000
++#endif
+ if (&CTGetCoreTextVersion != NULL && CTGetCoreTextVersion() < kCTVersionNumber10_10) {
+ CFStringRef fontName = CTFontCopyPostScriptName (ct_font);
+ bool isEmojiFont = CFStringCompare (fontName, CFSTR("AppleColorEmoji"), 0) == kCFCompareEqualTo;