blob: 6be8dff68669c3a0ebdc9a96bb7e2bc3d4aca97c (
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
|
# $NetBSD: Makefile,v 1.22 2022/11/23 13:58:42 adam Exp $
DISTNAME= gtk-4.8.2
PKGNAME= ${DISTNAME:S/gtk/gtk4/}
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk/${PKGVERSION_NOREV:R}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= https://www.gtk.org/
COMMENT= Multi-platform toolkit for creating GUIs, version 4
LICENSE= gnu-lgpl-v2.1
# TEST_DEPENDS, but meson fails if it's not found
TOOL_DEPENDS+= ${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3
# TODO: add more python dependencies?
# gi-docgen| subprojects/gi-docgen/meson.build:10:0: Exception: python3 is missing modules: jinja2, markdown, markupsafe, pygments, toml, typogrify
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "options.mk"
USE_TOOLS+= gdbus-codegen msgfmt msgmerge pkg-config xgettext
USE_LANGUAGES= c c++
MESON_REQD+= 0.60.0
MESON_ARGS+= -Dgtk_doc=false
# needs gstreamer-gl
MESON_ARGS+= -Dmedia-gstreamer=disabled
# ffmpeg backend is disabled by default
MESON_ARGS+= -Dmedia-ffmpeg=enabled
PKGCONFIG_OVERRIDE+= output/meson-private/gtk4.pc
PKGCONFIG_OVERRIDE+= output/meson-private/gtk4-x11.pc
PKGCONFIG_OVERRIDE+= output/meson-private/gtk4-unix-print.pc
PKGCONFIG_OVERRIDE_STAGE= post-configure
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--export-dynamic
PLIST_VARS+= dylib no-dylib
.if ${SHLIB_TYPE} == "dylib"
PLIST.dylib= yes
SOEXT= dylib
.else
PLIST.no-dylib= yes
SOEXT= so
.endif
PLIST_SUBST+= SOEXT=${SOEXT}
PRINT_PLIST_AWK+= { gsub(/\.${SOEXT}/, ".$${SOEXT}") }
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/glib2/schemas.mk"
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../devel/libexecinfo/buildlink3.mk"
BUILDLINK_API_DEPENDS.pango+= pango>=1.47.0
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/cairo-gobject/buildlink3.mk"
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.include "../../graphics/graphene/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/libepoxy/buildlink3.mk"
# librsvg is required by a demo only.
#.include "../../graphics/librsvg/buildlink3.mk"
.include "../../multimedia/gst-plugins1-bad/buildlink3.mk"
.include "../../multimedia/ffmpeg5/buildlink3.mk"
.include "../../textproc/iso-codes/buildlink3.mk"
.include "../../devel/meson/build.mk"
.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"
|