summaryrefslogtreecommitdiff
path: root/devel/pango/Makefile
blob: cc52503d7592e80074f28c17975316db6b7854c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# $NetBSD: Makefile,v 1.243 2021/08/15 09:28:57 rillig Exp $

DISTNAME=	pango-1.48.7
CATEGORIES=	devel fonts
MASTER_SITES=	${MASTER_SITE_GNOME:=sources/pango/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.pango.org/
COMMENT=	Library for layout and rendering of text
LICENSE=	gnu-lgpl-v2

TOOL_DEPENDS+=		help2man-[0-9]*:../../converters/help2man

USE_LANGUAGES=		c c++
USE_TOOLS+=		pkg-config
INSTALLATION_DIRS=	${PKGMANDIR}/man1

SUBST_CLASSES+=		wrksrc
SUBST_STAGE.wrksrc=	pre-configure
SUBST_FILES.wrksrc=	output/utils/pango-view.sh
SUBST_VARS.wrksrc=	WRKSRC

MESON_REQD+=		0.55.3
MESON_ARGS+=		-Dcairo=enabled
MESON_ARGS+=		-Dfontconfig=enabled
MESON_ARGS+=		-Dintrospection=enabled

PKGCONFIG_OVERRIDE+=		output/meson-private/pango.pc
PKGCONFIG_OVERRIDE+=		output/meson-private/pangocairo.pc
PKGCONFIG_OVERRIDE+=		output/meson-private/pangofc.pc
PKGCONFIG_OVERRIDE+=		output/meson-private/pangoft2.pc
PKGCONFIG_OVERRIDE+=		output/meson-private/pangoot.pc
PKGCONFIG_OVERRIDE+=		output/meson-private/pangoxft.pc
PKGCONFIG_OVERRIDE_STAGE=	pre-install
MAKE_ENV+=			LD_LIBRARY_PATH=${WRKSRC}/output/${PKGBASE}

CHECK_FILES_SKIP+=		${PREFIX}/libdata/pango/pango.modules
CHECK_PORTABILITY_SKIP+=	docs/check.docs

PYTHON_FOR_BUILD_ONLY=	tool

BUILDLINK_TRANSFORM+=	rm:-Werror=implicit-fallthrough # clang10svn

post-extract:
	${MKDIR} -p ${WRKSRC}/output/utils
	${CP} ${FILESDIR}/pango-view.sh ${WRKSRC}/output/utils

post-install:
	${MV} ${DESTDIR}${PREFIX}/share/man/man1/pango-view.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/pango-view.1 || ${TRUE}

.include "options.mk"
.include "../../graphics/librsvg/available.mk"

BUILDLINK_API_DEPENDS.fribidi+=	fribidi>=0.19.7
.include "../../converters/fribidi/buildlink3.mk"
BUILDLINK_API_DEPENDS.glib2+=	glib2>=2.60
.include "../../devel/glib2/buildlink3.mk"
BUILDLINK_DEPMETHOD.gobject-introspection=	build
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
BUILDLINK_API_DEPENDS.fontconfig+=	fontconfig>=2.11.91
.include "../../fonts/fontconfig/buildlink3.mk"
BUILDLINK_API_DEPENDS.harfbuzz+= harfbuzz>=2.7.2
.include "../../fonts/harfbuzz/buildlink3.mk"
.if ${LIBRSVG_TYPE} == "rust"
.include "../../graphics/graphite2/buildlink3.mk"
.endif
BUILDLINK_API_DEPENDS.cairo+=	cairo>=1.12.10
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/cairo-gobject/buildlink3.mk"
# XXX freetype versioning is insane. needs libtool version >= 21.0.15,
# which corresponds to release version 2.8.1
BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.8.1
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../devel/meson/build.mk"
.include "../../mk/bsd.pkg.mk"