Fix installation on Darwin with the default PKG_OPTIONS. Background: On systems with CoreText (i.e., Darwin), pango unconditionally links with it and installs certain libraries; this is already handled in PLIST. Problem: On systems where cairo has been built with the "quartz" option, pango installs an additional header file. Fix: Given that the "quartz" option is off by default, and assuming that users who enable it likely do so globally in PKG_DEFAULT_OPTIONS, add a nominal "quartz" option to pango that conditionalizes whether to expect this additional header file. "Sounds good" from jperkin@. Tested on: * Mac OS X 10.9.3, with and without PKG_DEFAULT_OPTIONS+=quartz (from cairo on up the dependency chain) * NetBSD/amd64 6.1.4, with X sets and the default optionsdiff -r1.190 -r1.191 pkgsrc/devel/pango/Makefile
(schmonz)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.190 2014/05/28 02:35:56 pho Exp $ | 1 | # $NetBSD: Makefile,v 1.191 2014/06/27 00:41:47 schmonz Exp $ | |
2 | 2 | |||
3 | DISTNAME= pango-1.36.3 | 3 | DISTNAME= pango-1.36.3 | |
4 | PKGREVISION= 2 | 4 | PKGREVISION= 2 | |
5 | CATEGORIES= devel fonts | 5 | CATEGORIES= devel fonts | |
6 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/pango/${PKGVERSION_NOREV:R}/} | 6 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/pango/${PKGVERSION_NOREV:R}/} | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.pango.org/ | 10 | HOMEPAGE= http://www.pango.org/ | |
11 | COMMENT= Library for layout and rendering of text | 11 | COMMENT= Library for layout and rendering of text | |
12 | LICENSE= gnu-lgpl-v2 | 12 | LICENSE= gnu-lgpl-v2 | |
13 | 13 | |||
14 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 14 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
@@ -30,36 +30,28 @@ PKGCONFIG_OVERRIDE+= pangocairo-uninstal | @@ -30,36 +30,28 @@ PKGCONFIG_OVERRIDE+= pangocairo-uninstal | |||
30 | PKGCONFIG_OVERRIDE+= pangocairo.pc.in | 30 | PKGCONFIG_OVERRIDE+= pangocairo.pc.in | |
31 | PKGCONFIG_OVERRIDE+= pangoft2-uninstalled.pc.in | 31 | PKGCONFIG_OVERRIDE+= pangoft2-uninstalled.pc.in | |
32 | PKGCONFIG_OVERRIDE+= pangoft2.pc.in | 32 | PKGCONFIG_OVERRIDE+= pangoft2.pc.in | |
33 | PKGCONFIG_OVERRIDE+= pangowin32-uninstalled.pc.in | 33 | PKGCONFIG_OVERRIDE+= pangowin32-uninstalled.pc.in | |
34 | PKGCONFIG_OVERRIDE+= pangowin32.pc.in | 34 | PKGCONFIG_OVERRIDE+= pangowin32.pc.in | |
35 | PKGCONFIG_OVERRIDE+= pangox-uninstalled.pc.in | 35 | PKGCONFIG_OVERRIDE+= pangox-uninstalled.pc.in | |
36 | PKGCONFIG_OVERRIDE+= pangox.pc.in | 36 | PKGCONFIG_OVERRIDE+= pangox.pc.in | |
37 | PKGCONFIG_OVERRIDE+= pangoxft-uninstalled.pc.in | 37 | PKGCONFIG_OVERRIDE+= pangoxft-uninstalled.pc.in | |
38 | PKGCONFIG_OVERRIDE+= pangoxft.pc.in | 38 | PKGCONFIG_OVERRIDE+= pangoxft.pc.in | |
39 | 39 | |||
40 | CHECK_FILES_SKIP+= ${PREFIX}/libdata/pango/pango.modules | 40 | CHECK_FILES_SKIP+= ${PREFIX}/libdata/pango/pango.modules | |
41 | CHECK_PORTABILITY_SKIP+= docs/check.docs | 41 | CHECK_PORTABILITY_SKIP+= docs/check.docs | |
42 | 42 | |||
43 | PLIST_VARS+= coretext | |||
44 | ||||
45 | .include "options.mk" | 43 | .include "options.mk" | |
46 | 44 | |||
47 | .include "../../mk/bsd.prefs.mk" | |||
48 | ||||
49 | .if ${OPSYS} == "Darwin" | |||
50 | PLIST.coretext= yes | |||
51 | .endif | |||
52 | ||||
53 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.32.1 | 45 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.32.1 | |
54 | .include "../../devel/glib2/buildlink3.mk" | 46 | .include "../../devel/glib2/buildlink3.mk" | |
55 | BUILDLINK_DEPMETHOD.gobject-introspection:= build | 47 | BUILDLINK_DEPMETHOD.gobject-introspection:= build | |
56 | .include "../../devel/gobject-introspection/buildlink3.mk" | 48 | .include "../../devel/gobject-introspection/buildlink3.mk" | |
57 | .include "../../devel/zlib/buildlink3.mk" | 49 | .include "../../devel/zlib/buildlink3.mk" | |
58 | BUILDLINK_API_DEPENDS.fontconfig+= fontconfig>=2.10.91 | 50 | BUILDLINK_API_DEPENDS.fontconfig+= fontconfig>=2.10.91 | |
59 | .include "../../fonts/fontconfig/buildlink3.mk" | 51 | .include "../../fonts/fontconfig/buildlink3.mk" | |
60 | BUILDLINK_API_DEPENDS.harfbuzz+= harfbuzz>=0.9.9 | 52 | BUILDLINK_API_DEPENDS.harfbuzz+= harfbuzz>=0.9.9 | |
61 | .include "../../fonts/harfbuzz/buildlink3.mk" | 53 | .include "../../fonts/harfbuzz/buildlink3.mk" | |
62 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.12.10 | 54 | BUILDLINK_API_DEPENDS.cairo+= cairo>=1.12.10 | |
63 | .include "../../graphics/cairo/buildlink3.mk" | 55 | .include "../../graphics/cairo/buildlink3.mk" | |
64 | .include "../../graphics/cairo-gobject/buildlink3.mk" | 56 | .include "../../graphics/cairo-gobject/buildlink3.mk" | |
65 | .include "../../graphics/freetype2/buildlink3.mk" | 57 | .include "../../graphics/freetype2/buildlink3.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.61 2014/06/02 06:56:16 adam Exp $ | 1 | @comment $NetBSD: PLIST,v 1.62 2014/06/27 00:41:47 schmonz Exp $ | |
2 | bin/pango-querymodules | 2 | bin/pango-querymodules | |
3 | bin/pango-view | 3 | bin/pango-view | |
4 | include/pango-1.0/pango/pango-attributes.h | 4 | include/pango-1.0/pango/pango-attributes.h | |
5 | include/pango-1.0/pango/pango-bidi-type.h | 5 | include/pango-1.0/pango/pango-bidi-type.h | |
6 | include/pango-1.0/pango/pango-break.h | 6 | include/pango-1.0/pango/pango-break.h | |
7 | include/pango-1.0/pango/pango-context.h | 7 | include/pango-1.0/pango/pango-context.h | |
8 | include/pango-1.0/pango/pango-coverage.h | 8 | include/pango-1.0/pango/pango-coverage.h | |
9 | include/pango-1.0/pango/pango-engine.h | 9 | include/pango-1.0/pango/pango-engine.h | |
10 | include/pango-1.0/pango/pango-enum-types.h | 10 | include/pango-1.0/pango/pango-enum-types.h | |
11 | include/pango-1.0/pango/pango-features.h | 11 | include/pango-1.0/pango/pango-features.h | |
12 | include/pango-1.0/pango/pango-font.h | 12 | include/pango-1.0/pango/pango-font.h | |
13 | include/pango-1.0/pango/pango-fontmap.h | 13 | include/pango-1.0/pango/pango-fontmap.h | |
14 | include/pango-1.0/pango/pango-fontset.h | 14 | include/pango-1.0/pango/pango-fontset.h | |
@@ -18,27 +18,27 @@ include/pango-1.0/pango/pango-gravity.h | @@ -18,27 +18,27 @@ include/pango-1.0/pango/pango-gravity.h | |||
18 | include/pango-1.0/pango/pango-item.h | 18 | include/pango-1.0/pango/pango-item.h | |
19 | include/pango-1.0/pango/pango-language.h | 19 | include/pango-1.0/pango/pango-language.h | |
20 | include/pango-1.0/pango/pango-layout.h | 20 | include/pango-1.0/pango/pango-layout.h | |
21 | include/pango-1.0/pango/pango-matrix.h | 21 | include/pango-1.0/pango/pango-matrix.h | |
22 | include/pango-1.0/pango/pango-modules.h | 22 | include/pango-1.0/pango/pango-modules.h | |
23 | include/pango-1.0/pango/pango-ot.h | 23 | include/pango-1.0/pango/pango-ot.h | |
24 | include/pango-1.0/pango/pango-renderer.h | 24 | include/pango-1.0/pango/pango-renderer.h | |
25 | include/pango-1.0/pango/pango-script.h | 25 | include/pango-1.0/pango/pango-script.h | |
26 | include/pango-1.0/pango/pango-tabs.h | 26 | include/pango-1.0/pango/pango-tabs.h | |
27 | include/pango-1.0/pango/pango-types.h | 27 | include/pango-1.0/pango/pango-types.h | |
28 | include/pango-1.0/pango/pango-utils.h | 28 | include/pango-1.0/pango/pango-utils.h | |
29 | include/pango-1.0/pango/pango.h | 29 | include/pango-1.0/pango/pango.h | |
30 | include/pango-1.0/pango/pangocairo.h | 30 | include/pango-1.0/pango/pangocairo.h | |
31 | ${PLIST.coretext}include/pango-1.0/pango/pangocoretext.h | 31 | ${PLIST.quartz}include/pango-1.0/pango/pangocoretext.h | |
32 | ${PLIST.x11}include/pango-1.0/pango/pangoxft-render.h | 32 | ${PLIST.x11}include/pango-1.0/pango/pangoxft-render.h | |
33 | ${PLIST.x11}include/pango-1.0/pango/pangoxft.h | 33 | ${PLIST.x11}include/pango-1.0/pango/pangoxft.h | |
34 | include/pango-1.0/pango/pangofc-decoder.h | 34 | include/pango-1.0/pango/pangofc-decoder.h | |
35 | include/pango-1.0/pango/pangofc-font.h | 35 | include/pango-1.0/pango/pangofc-font.h | |
36 | include/pango-1.0/pango/pangofc-fontmap.h | 36 | include/pango-1.0/pango/pangofc-fontmap.h | |
37 | include/pango-1.0/pango/pangoft2.h | 37 | include/pango-1.0/pango/pangoft2.h | |
38 | lib/girepository-1.0/Pango-1.0.typelib | 38 | lib/girepository-1.0/Pango-1.0.typelib | |
39 | lib/girepository-1.0/PangoCairo-1.0.typelib | 39 | lib/girepository-1.0/PangoCairo-1.0.typelib | |
40 | ${PLIST.x11}lib/girepository-1.0/PangoXft-1.0.typelib | 40 | ${PLIST.x11}lib/girepository-1.0/PangoXft-1.0.typelib | |
41 | lib/girepository-1.0/PangoFT2-1.0.typelib | 41 | lib/girepository-1.0/PangoFT2-1.0.typelib | |
42 | lib/libpango-1.0.la | 42 | lib/libpango-1.0.la | |
43 | lib/libpangocairo-1.0.la | 43 | lib/libpangocairo-1.0.la | |
44 | lib/libpangoft2-1.0.la | 44 | lib/libpangoft2-1.0.la |
@@ -1,35 +1,49 @@ | @@ -1,35 +1,49 @@ | |||
1 | # $NetBSD: options.mk,v 1.12 2013/02/24 18:41:25 wiz Exp $ | 1 | # $NetBSD: options.mk,v 1.13 2014/06/27 00:41:47 schmonz Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.pango | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.pango | |
4 | PKG_SUPPORTED_OPTIONS= x11 libthai | 4 | PKG_SUPPORTED_OPTIONS= libthai quartz x11 | |
5 | PKG_SUGGESTED_OPTIONS= x11 | 5 | PKG_SUGGESTED_OPTIONS= x11 | |
6 | 6 | |||
7 | .include "../../mk/bsd.options.mk" | 7 | .include "../../mk/bsd.options.mk" | |
8 | 8 | |||
9 | PLIST_VARS+= x11 thai | 9 | PLIST_VARS+= coretext quartz x11 thai | |
10 | 10 | |||
11 | ### | 11 | ### | |
12 | ### X11 support | 12 | ### X11 support | |
13 | ### | 13 | ### | |
14 | .if !empty(PKG_OPTIONS:Mx11) | 14 | .if !empty(PKG_OPTIONS:Mx11) | |
15 | # fix for pangox.pc | 15 | # fix for pangox.pc | |
16 | CONFIGURE_ENV+= X_EXTRA_LIBS=${COMPILER_RPATH_FLAG}${X11BASE}/lib | 16 | CONFIGURE_ENV+= X_EXTRA_LIBS=${COMPILER_RPATH_FLAG}${X11BASE}/lib | |
17 | PLIST.x11= yes | 17 | PLIST.x11= yes | |
18 | BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.7nb3 | 18 | BUILDLINK_API_DEPENDS.Xft2+= Xft2>=2.1.7nb3 | |
19 | .include "../../x11/libXft/buildlink3.mk" | 19 | .include "../../x11/libXft/buildlink3.mk" | |
20 | .include "../../x11/libXrender/buildlink3.mk" | 20 | .include "../../x11/libXrender/buildlink3.mk" | |
21 | .include "../../x11/libX11/buildlink3.mk" | 21 | .include "../../x11/libX11/buildlink3.mk" | |
22 | BUILDLINK_DEPMETHOD.libXt?= build # only for configure | 22 | BUILDLINK_DEPMETHOD.libXt?= build # only for configure | |
23 | .include "../../x11/libXt/buildlink3.mk" | 23 | .include "../../x11/libXt/buildlink3.mk" | |
24 | .else | 24 | .else | |
25 | CONFIGURE_ARGS+= --without-x | 25 | CONFIGURE_ARGS+= --without-x | |
26 | CONFIGURE_ARGS+= --without-xft | 26 | CONFIGURE_ARGS+= --without-xft | |
27 | .endif | 27 | .endif | |
28 | 28 | |||
29 | ### | 29 | ### | |
30 | ### Thai language support | 30 | ### Thai language support | |
31 | ### | 31 | ### | |
32 | .if !empty(PKG_OPTIONS:Mlibthai) | 32 | .if !empty(PKG_OPTIONS:Mlibthai) | |
33 | PLIST.thai= yes | 33 | PLIST.thai= yes | |
34 | .include "../../devel/libthai/buildlink3.mk" | 34 | .include "../../devel/libthai/buildlink3.mk" | |
35 | .endif | 35 | .endif | |
36 | ||||
37 | .include "../../mk/bsd.prefs.mk" | |||
38 | ||||
39 | ### | |||
40 | ### Quartz "support" | |||
41 | ### | |||
42 | .if ${OPSYS} == "Darwin" | |||
43 | ### always looks for system CoreText | |||
44 | PLIST.coretext= yes | |||
45 | . if !empty(PKG_OPTIONS:Mquartz) | |||
46 | ### installs its coretext header file if cairo was built with "quartz" option | |||
47 | PLIST.quartz= yes | |||
48 | . endif | |||
49 | .endif |