summaryrefslogtreecommitdiff
path: root/fonts
diff options
context:
space:
mode:
authoradam <adam>2012-10-08 19:20:33 +0000
committeradam <adam>2012-10-08 19:20:33 +0000
commit9df25eb54ce913c955d90d054af6bc878d022e98 (patch)
tree759328d44e90fe26dadb7fe7e46111ec7b2d50c1 /fonts
parent8289ab09d8f5168ffce13628d4005467f239f08a (diff)
downloadpkgsrc-9df25eb54ce913c955d90d054af6bc878d022e98.tar.gz
HarfBuzz is an OpenType text shaping engine.
Diffstat (limited to 'fonts')
-rw-r--r--fonts/harfbuzz/DESCR1
-rw-r--r--fonts/harfbuzz/Makefile24
-rw-r--r--fonts/harfbuzz/PLIST21
-rw-r--r--fonts/harfbuzz/PLIST.Darwin2
-rw-r--r--fonts/harfbuzz/buildlink3.mk16
-rw-r--r--fonts/harfbuzz/distinfo6
-rw-r--r--fonts/harfbuzz/patches/patch-util_options.cc26
7 files changed, 96 insertions, 0 deletions
diff --git a/fonts/harfbuzz/DESCR b/fonts/harfbuzz/DESCR
new file mode 100644
index 00000000000..f2e1fc5d97f
--- /dev/null
+++ b/fonts/harfbuzz/DESCR
@@ -0,0 +1 @@
+HarfBuzz is an OpenType text shaping engine.
diff --git a/fonts/harfbuzz/Makefile b/fonts/harfbuzz/Makefile
new file mode 100644
index 00000000000..376128a7dfc
--- /dev/null
+++ b/fonts/harfbuzz/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2012/10/08 19:20:33 adam Exp $
+
+DISTNAME= harfbuzz-0.9.4
+CATEGORIES= fonts
+MASTER_SITES= http://www.freedesktop.org/software/harfbuzz/release/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://harfbuzz.org/
+COMMENT= OpenType text shaping engine
+LICENSE= mit
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake pkg-config
+GNU_CONFIGURE= yes
+PKGCONFIG_OVERRIDE= harfbuzz.pc.in
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fonts/harfbuzz/PLIST b/fonts/harfbuzz/PLIST
new file mode 100644
index 00000000000..4fe0a44e731
--- /dev/null
+++ b/fonts/harfbuzz/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD: PLIST,v 1.1 2012/10/08 19:20:33 adam Exp $
+bin/hb-ot-shape-closure
+bin/hb-shape
+bin/hb-view
+include/harfbuzz/hb-blob.h
+include/harfbuzz/hb-buffer.h
+include/harfbuzz/hb-common.h
+include/harfbuzz/hb-font.h
+include/harfbuzz/hb-ft.h
+include/harfbuzz/hb-glib.h
+include/harfbuzz/hb-gobject.h
+include/harfbuzz/hb-ot-layout.h
+include/harfbuzz/hb-ot-tag.h
+include/harfbuzz/hb-ot.h
+include/harfbuzz/hb-set.h
+include/harfbuzz/hb-shape.h
+include/harfbuzz/hb-unicode.h
+include/harfbuzz/hb-version.h
+include/harfbuzz/hb.h
+lib/libharfbuzz.la
+lib/pkgconfig/harfbuzz.pc
diff --git a/fonts/harfbuzz/PLIST.Darwin b/fonts/harfbuzz/PLIST.Darwin
new file mode 100644
index 00000000000..ff20fb4d694
--- /dev/null
+++ b/fonts/harfbuzz/PLIST.Darwin
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST.Darwin,v 1.1 2012/10/08 19:20:33 adam Exp $
+include/harfbuzz/hb-coretext.h
diff --git a/fonts/harfbuzz/buildlink3.mk b/fonts/harfbuzz/buildlink3.mk
new file mode 100644
index 00000000000..71914cccb7c
--- /dev/null
+++ b/fonts/harfbuzz/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2012/10/08 19:20:33 adam Exp $
+
+BUILDLINK_TREE+= harfbuzz
+
+.if !defined(HARFBUZZ_BUILDLINK3_MK)
+HARFBUZZ_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.harfbuzz+= harfbuzz>=0.9.4
+BUILDLINK_PKGSRCDIR.harfbuzz?= ../../fonts/harfbuzz
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.endif # HARFBUZZ_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -harfbuzz
diff --git a/fonts/harfbuzz/distinfo b/fonts/harfbuzz/distinfo
new file mode 100644
index 00000000000..ba9e6e72440
--- /dev/null
+++ b/fonts/harfbuzz/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2012/10/08 19:20:33 adam Exp $
+
+SHA1 (harfbuzz-0.9.4.tar.bz2) = fcae002e8eb7d012dab7a4af881d8079ea13444d
+RMD160 (harfbuzz-0.9.4.tar.bz2) = 3a29834cb0f41883810c93a04dfd77c2275935de
+Size (harfbuzz-0.9.4.tar.bz2) = 736116 bytes
+SHA1 (patch-util_options.cc) = 4ee9ee39d1413ef4fad2023a0b62c4a8c00d91ad
diff --git a/fonts/harfbuzz/patches/patch-util_options.cc b/fonts/harfbuzz/patches/patch-util_options.cc
new file mode 100644
index 00000000000..27d558e492a
--- /dev/null
+++ b/fonts/harfbuzz/patches/patch-util_options.cc
@@ -0,0 +1,26 @@
+$NetBSD: patch-util_options.cc,v 1.1 2012/10/08 19:20:33 adam Exp $
+
+Avoid non-portable _setmode().
+
+--- util/options.cc.orig 2012-10-08 18:14:30.000000000 +0000
++++ util/options.cc
+@@ -525,9 +525,6 @@ font_options_t::get_font (void) const
+ /* read it */
+ GString *gs = g_string_new (NULL);
+ char buf[BUFSIZ];
+-#ifdef HAVE__SETMODE
+- _setmode (fileno (stdin), _O_BINARY);
+-#endif
+ while (!feof (stdin)) {
+ size_t ret = fread (buf, 1, sizeof (buf), stdin);
+ if (ferror (stdin))
+@@ -669,9 +666,6 @@ output_options_t::get_file_handle (void)
+ if (output_file)
+ fp = fopen (output_file, "wb");
+ else {
+-#ifdef HAVE__SETMODE
+- _setmode (fileno (stdout), _O_BINARY);
+-#endif
+ fp = stdout;
+ }
+ if (!fp)