diff options
author | nia <nia@pkgsrc.org> | 2020-11-06 15:06:49 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2020-11-06 15:06:49 +0000 |
commit | 12cd8eee701e1850702520f8e21c718ec4d8248e (patch) | |
tree | 3841f33c6e8dd6c4a0d4faf7dbc55e78c58a6a17 /fonts | |
parent | fec8f6e3bc6f0b9c17f920e1eaeae90d5cd2b0cd (diff) | |
download | pkgsrc-12cd8eee701e1850702520f8e21c718ec4d8248e.tar.gz |
Split out ICU integration library from the harfbuzz package.
Only a few pieces of software are using the ICU integration library,
these aren't the big harfbuzz users (i.e. gtk). this is intended to lessen
the impact of icu's frequent ABI breaks.
Diffstat (limited to 'fonts')
-rw-r--r-- | fonts/Makefile | 3 | ||||
-rw-r--r-- | fonts/harfbuzz-icu/DESCR | 1 | ||||
-rw-r--r-- | fonts/harfbuzz-icu/Makefile | 36 | ||||
-rw-r--r-- | fonts/harfbuzz-icu/PLIST | 6 | ||||
-rw-r--r-- | fonts/harfbuzz-icu/buildlink3.mk | 14 | ||||
-rw-r--r-- | fonts/harfbuzz/Makefile | 81 | ||||
-rw-r--r-- | fonts/harfbuzz/Makefile.common | 86 | ||||
-rw-r--r-- | fonts/harfbuzz/PLIST | 7 | ||||
-rw-r--r-- | fonts/harfbuzz/options.mk | 16 |
9 files changed, 155 insertions, 95 deletions
diff --git a/fonts/Makefile b/fonts/Makefile index 94f8308ee67..075f07b53c2 100644 --- a/fonts/Makefile +++ b/fonts/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.343 2020/08/06 11:08:20 pin Exp $ +# $NetBSD: Makefile,v 1.344 2020/11/06 15:06:49 nia Exp $ # COMMENT= Fonts @@ -119,6 +119,7 @@ SUBDIR+= go-ttf SUBDIR+= gsftopkk SUBDIR+= gucharmap SUBDIR+= harfbuzz +SUBDIR+= harfbuzz-icu SUBDIR+= ibm-plex-otf SUBDIR+= ibm-plex-ttf SUBDIR+= inconsolata-g diff --git a/fonts/harfbuzz-icu/DESCR b/fonts/harfbuzz-icu/DESCR new file mode 100644 index 00000000000..59bdb9530ec --- /dev/null +++ b/fonts/harfbuzz-icu/DESCR @@ -0,0 +1 @@ +International Components for Unicode integration for HarfBuzz diff --git a/fonts/harfbuzz-icu/Makefile b/fonts/harfbuzz-icu/Makefile new file mode 100644 index 00000000000..d34df0ac499 --- /dev/null +++ b/fonts/harfbuzz-icu/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2020/11/06 15:06:49 nia Exp $ + +# XXX: hack to override meson installation +INSTALL_DIRS= + +.include "../../fonts/harfbuzz/Makefile.common" + +PKGNAME= ${DISTNAME:S/^harfbuzz-/harfbuzz-icu-/1} + +COMMENT= OpenType text shaping engine (ICU integration) + +MESON_ARGS+= -Dicu=enabled + +INSTALLATION_DIRS+= include/harfbuzz +INSTALLATION_DIRS+= lib +INSTALLATION_DIRS+= lib/pkgconfig + +HARFBUZZ_ICU_LIBNAME= libharfbuzz-icu.so.0.20702.0 + +.PHONY: harfbuzz-icu-install + +harfbuzz-icu-install: + ${INSTALL_DATA} ${WRKSRC}/src/hb-icu.h \ + ${DESTDIR}${PREFIX}/include/harfbuzz/hb-icu.h + ${INSTALL_DATA} ${WRKSRC}/output/meson-private/harfbuzz-icu.pc \ + ${DESTDIR}${PREFIX}/lib/pkgconfig/harfbuzz-icu.pc + ${INSTALL_LIB} ${WRKSRC}/output/src/${HARFBUZZ_ICU_LIBNAME} \ + ${DESTDIR}${PREFIX}/lib + cd ${DESTDIR}${PREFIX}/lib && ${LN} -s ${HARFBUZZ_ICU_LIBNAME} libharfbuzz-icu.so.0 + cd ${DESTDIR}${PREFIX}/lib && ${LN} -s ${HARFBUZZ_ICU_LIBNAME} libharfbuzz-icu.so + +do-install: harfbuzz-icu-install + +.include "../../fonts/harfbuzz/buildlink3.mk" +.include "../../textproc/icu/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/fonts/harfbuzz-icu/PLIST b/fonts/harfbuzz-icu/PLIST new file mode 100644 index 00000000000..bd634588be9 --- /dev/null +++ b/fonts/harfbuzz-icu/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1 2020/11/06 15:06:49 nia Exp $ +include/harfbuzz/hb-icu.h +lib/libharfbuzz-icu.so +lib/libharfbuzz-icu.so.0 +lib/libharfbuzz-icu.so.0.20702.0 +lib/pkgconfig/harfbuzz-icu.pc diff --git a/fonts/harfbuzz-icu/buildlink3.mk b/fonts/harfbuzz-icu/buildlink3.mk new file mode 100644 index 00000000000..2f6cb9a0ef8 --- /dev/null +++ b/fonts/harfbuzz-icu/buildlink3.mk @@ -0,0 +1,14 @@ +# $NetBSD: buildlink3.mk,v 1.1 2020/11/06 15:06:49 nia Exp $ + +BUILDLINK_TREE+= harfbuzz-icu + +.if !defined(HARFBUZZ_ICU_BUILDLINK3_MK) +HARFBUZZ_ICU_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.harfbuzz-icu+= harfbuzz-icu>=2.1.1 +BUILDLINK_ABI_DEPENDS.harfbuzz-icu+= harfbuzz-icu>=2.6.4nb2 + +.include "../../fonts/harfbuzz/buildlink3.mk" +.endif # HARFBUZZ_ICU_BUILDLINK3_MK + +BUILDLINK_TREE+= -harfbuzz-icu diff --git a/fonts/harfbuzz/Makefile b/fonts/harfbuzz/Makefile index 48b0529035c..58f3c72f421 100644 --- a/fonts/harfbuzz/Makefile +++ b/fonts/harfbuzz/Makefile @@ -1,83 +1,12 @@ -# $NetBSD: Makefile,v 1.136 2020/11/05 09:08:06 ryoon Exp $ +# $NetBSD: Makefile,v 1.137 2020/11/06 15:06:49 nia Exp $ -DISTNAME= harfbuzz-2.7.2 PKGREVISION= 1 -CATEGORIES= fonts -MASTER_SITES= ${MASTER_SITE_GITHUB:=harfbuzz/} -GITHUB_TAG= ${PKGVERSION_NOREV} -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= https://harfbuzz.github.io/ -COMMENT= OpenType text shaping engine -LICENSE= mit - -# C++11 -GCC_REQD+= 4.9 - -.include "../../mk/bsd.prefs.mk" -.include "../../graphics/librsvg/available.mk" - -USE_LANGUAGES= c c++ -USE_TOOLS+= pkg-config - -# cairo/fontconfig are only needed for command line utilities -MESON_ARGS+= -Dcairo=disabled -MESON_ARGS+= -Dfontconfig=disabled - -MESON_ARGS+= -Dintrospection=disabled -MESON_ARGS+= -Dbenchmark=disabled - -PLIST_VARS+= graphite2 -.if ${LIBRSVG_TYPE} == "rust" -MESON_ARGS+= -Dgraphite=enabled -PLIST.graphite2= yes -.else -MESON_ARGS+= -Dgraphite=disabled -.endif - -PKGCONFIG_OVERRIDE+= output/meson-private/*.pc +.include "Makefile.common" -PKGCONFIG_OVERRIDE_STAGE= pre-install - -LDFLAGS.OpenBSD+= -lz - -.include "options.mk" - -# gcc too old -BUILDLINK_TRANSFORM.MirBSD+= rm:-fvisibility-inlines-hidden - -PLIST_VARS+= coretext - -.if ${OPSYS} == "Darwin" -. if !empty(OS_VERSION:M[0-8].*) -# MacOS X < 10.5 does not have CoreText. -MESON_ARGS+= -Dcoretext=disabled - -. elif !empty(OS_VERSION:M9.*) -# MacOS X 10.5 has CoreText but it's -# buggy. CTLineCreateWithAttributedString() seemingly fails when -# trying to use a font which isn't installed into the system standard -# path. -# See http://forum.libcinder.org/topic/text-not-working-in-leopard-osx-10-5 -MESON_ARGS+= -Dcoretext=disabled - -. else -MESON_ARGS+= -Dcoretext=enabled -PLIST.coretext= yes -. endif -.endif +COMMENT= OpenType text shaping engine -PYTHON_FOR_BUILD_ONLY= tool -REPLACE_PYTHON+= src/*.py +# Use external icu support. +MESON_ARGS+= -Dicu=disabled -.include "../../devel/meson/build.mk" -.include "../../devel/glib2/buildlink3.mk" -.include "../../devel/zlib/buildlink3.mk" -#BUILDLINK_API_DEPENDS.cairo+= cairo>=1.8.0 -#.include "../../graphics/cairo/buildlink3.mk" -.include "../../graphics/freetype2/buildlink3.mk" -.if ${LIBRSVG_TYPE} == "rust" -# graphite2 support breaks graphics/librsvg-c -.include "../../graphics/graphite2/buildlink3.mk" -.endif .include "../../mk/bsd.pkg.mk" diff --git a/fonts/harfbuzz/Makefile.common b/fonts/harfbuzz/Makefile.common new file mode 100644 index 00000000000..9792cf56311 --- /dev/null +++ b/fonts/harfbuzz/Makefile.common @@ -0,0 +1,86 @@ +# $NetBSD: Makefile.common,v 1.1 2020/11/06 15:06:49 nia Exp $ +# used by fonts/harfbuzz-icu/Makefile + +DISTNAME= harfbuzz-2.7.2 +CATEGORIES= fonts +MASTER_SITES= ${MASTER_SITE_GITHUB:=harfbuzz/} +GITHUB_TAG= ${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://harfbuzz.github.io/ +LICENSE= mit + +WRKSRC= ${WRKDIR}/${DISTNAME} + +DISTINFO_FILE= ${.CURDIR}/../../fonts/harfbuzz/distinfo +#PATCHDIR= ${.CURDIR}/../../fonts/harfbuzz/patches + +# C++11 +GCC_REQD+= 4.9 + +.include "../../mk/bsd.prefs.mk" +.include "../../graphics/librsvg/available.mk" + +USE_LANGUAGES= c c++ +USE_TOOLS+= pkg-config + +# cairo/fontconfig are only needed for command line utilities +MESON_ARGS+= -Dcairo=disabled +MESON_ARGS+= -Dfontconfig=disabled + +MESON_ARGS+= -Dintrospection=disabled +MESON_ARGS+= -Dbenchmark=disabled + +PLIST_VARS+= graphite2 +.if ${LIBRSVG_TYPE} == "rust" +MESON_ARGS+= -Dgraphite=enabled +PLIST.graphite2= yes +.else +MESON_ARGS+= -Dgraphite=disabled +.endif + +PKGCONFIG_OVERRIDE+= output/meson-private/*.pc + +PKGCONFIG_OVERRIDE_STAGE= pre-install + +LDFLAGS.OpenBSD+= -lz + +.include "../../fonts/harfbuzz/options.mk" + +# gcc too old +BUILDLINK_TRANSFORM.MirBSD+= rm:-fvisibility-inlines-hidden + +PLIST_VARS+= coretext + +.if ${OPSYS} == "Darwin" +. if !empty(OS_VERSION:M[0-8].*) +# MacOS X < 10.5 does not have CoreText. +MESON_ARGS+= -Dcoretext=disabled + +. elif !empty(OS_VERSION:M9.*) +# MacOS X 10.5 has CoreText but it's +# buggy. CTLineCreateWithAttributedString() seemingly fails when +# trying to use a font which isn't installed into the system standard +# path. +# See http://forum.libcinder.org/topic/text-not-working-in-leopard-osx-10-5 +MESON_ARGS+= -Dcoretext=disabled + +. else +MESON_ARGS+= -Dcoretext=enabled +PLIST.coretext= yes +. endif +.endif + +PYTHON_FOR_BUILD_ONLY= tool +REPLACE_PYTHON+= src/*.py + +.include "../../devel/meson/build.mk" +.include "../../devel/glib2/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +#BUILDLINK_API_DEPENDS.cairo+= cairo>=1.8.0 +#.include "../../graphics/cairo/buildlink3.mk" +.include "../../graphics/freetype2/buildlink3.mk" +.if ${LIBRSVG_TYPE} == "rust" +# graphite2 support breaks graphics/librsvg-c +.include "../../graphics/graphite2/buildlink3.mk" +.endif diff --git a/fonts/harfbuzz/PLIST b/fonts/harfbuzz/PLIST index 1ab7d4d9221..544e00d3c13 100644 --- a/fonts/harfbuzz/PLIST +++ b/fonts/harfbuzz/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.44 2020/09/04 10:50:08 prlw1 Exp $ +@comment $NetBSD: PLIST,v 1.45 2020/11/06 15:06:49 nia Exp $ bin/hb-ot-shape-closure bin/hb-shape bin/hb-subset @@ -18,7 +18,6 @@ include/harfbuzz/hb-gobject-enums.h include/harfbuzz/hb-gobject-structs.h include/harfbuzz/hb-gobject.h ${PLIST.graphite2}include/harfbuzz/hb-graphite2.h -${PLIST.icu}include/harfbuzz/hb-icu.h include/harfbuzz/hb-map.h include/harfbuzz/hb-ot-color.h include/harfbuzz/hb-ot-deprecated.h @@ -44,9 +43,6 @@ ${PLIST.introspection}lib/girepository-1.0/HarfBuzz-0.0.typelib lib/libharfbuzz-gobject.so lib/libharfbuzz-gobject.so.0 lib/libharfbuzz-gobject.so.0.20702.0 -${PLIST.icu}lib/libharfbuzz-icu.so -${PLIST.icu}lib/libharfbuzz-icu.so.0 -${PLIST.icu}lib/libharfbuzz-icu.so.0.20702.0 lib/libharfbuzz-subset.so lib/libharfbuzz-subset.so.0 lib/libharfbuzz-subset.so.0.20702.0 @@ -54,7 +50,6 @@ lib/libharfbuzz.so lib/libharfbuzz.so.0 lib/libharfbuzz.so.0.20702.0 lib/pkgconfig/harfbuzz-gobject.pc -${PLIST.icu}lib/pkgconfig/harfbuzz-icu.pc lib/pkgconfig/harfbuzz-subset.pc lib/pkgconfig/harfbuzz.pc ${PLIST.introspection}share/gir-1.0/HarfBuzz-0.0.gir diff --git a/fonts/harfbuzz/options.mk b/fonts/harfbuzz/options.mk index b0462b235fa..81b150a78c9 100644 --- a/fonts/harfbuzz/options.mk +++ b/fonts/harfbuzz/options.mk @@ -1,12 +1,12 @@ -# $NetBSD: options.mk,v 1.9 2020/09/04 10:50:08 prlw1 Exp $ +# $NetBSD: options.mk,v 1.10 2020/11/06 15:06:49 nia Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.harfbuzz -PKG_SUPPORTED_OPTIONS+= doc icu introspection -PKG_SUGGESTED_OPTIONS= doc icu introspection +PKG_SUPPORTED_OPTIONS+= doc introspection +PKG_SUGGESTED_OPTIONS= doc introspection .include "../../mk/bsd.options.mk" -PLIST_VARS+= doc icu introspection +PLIST_VARS+= doc introspection .if !empty(PKG_OPTIONS:Mdoc) MESON_ARGS+= -Ddocs=enabled @@ -16,14 +16,6 @@ PLIST.doc= yes MESON_ARGS+= -Ddocs=disabled .endif -.if !empty(PKG_OPTIONS:Micu) -.include "../../textproc/icu/buildlink3.mk" -MESON_ARGS+= -Dicu=enabled -PLIST.icu= yes -.else -MESON_ARGS+= -Dicu=disabled -.endif - .if !empty(PKG_OPTIONS:Mintrospection) BUILDLINK_DEPMETHOD.gobject-introspection+= build .include "../../devel/gobject-introspection/buildlink3.mk" |