2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Geoffrey Weiss
14 # Copyright (c) 2021 Tim Mooney. All rights reserved
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= gtksourceview
22 COMPONENT_MAJOR_MINOR
= 4.8
23 COMPONENT_VERSION
= $(COMPONENT_MAJOR_MINOR
).4
24 COMPONENT_SUMMARY
= Multiline text editing library
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
27 COMPONENT_PROJECT_URL
= https
://wiki.gnome.org
/Apps
/
28 COMPONENT_ARCHIVE_URL
= https
://download.gnome.org
/sources
/$(COMPONENT_NAME
)/$(COMPONENT_MAJOR_MINOR
)/$(COMPONENT_ARCHIVE
)
29 COMPONENT_ARCHIVE_HASH
= sha256
:7ec9d18fb283d1f84a3a3eff3b7a72b09a10c9c006597b3fbabbb5958420a87d
30 COMPONENT_FMRI
= library
/desktop
/gtksourceview4
31 COMPONENT_CLASSIFICATION
= Desktop
(GNOME
)/Libraries
32 COMPONENT_LICENSE
= GPLv2
33 COMPONENT_LICENSE_FILE
= COPYING
35 include $(WS_MAKE_RULES
)/common.mk
39 # gobject-introspection
40 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
41 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
42 COMPONENT_BUILD_ENV
+= GI_SCANNER_DISABLE_CACHE
=""
44 CONFIGURE_ENV
+= INTLTOOL_PERL
="$(PERL)"
46 CONFIGURE_OPTIONS
+= --libexecdir
=/usr
/lib
47 CONFIGURE_OPTIONS
+= --localstatedir
=/var
/lib
48 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
49 # this project uses 'gir' for the introspection flag
50 CONFIGURE_OPTIONS
.32 += -Dgir
=false
51 CONFIGURE_OPTIONS
.64 += -Dgir
=true
52 # fairly optional, disable if it causes problems for later builds
53 CONFIGURE_OPTIONS
.64 += -Dglade_catalog
=true
55 # if you do run the tests, use these transforms
56 # (first) delete the timing information from any line
57 # delete the "exit status N", it can cause issues too
58 # print lines that start with " N/NNN"
59 # print everything between "^Ok:" and "^Timeout:"
60 # delete the ninja log-related stuff at the end
63 COMPONENT_TEST_TRANSFORMS
+= \
66 '-e "/^Expected Fail:/p" ' \
68 '-e "/^Skipped:/p" ' \
69 '-e "/^Timeout:/p" ' \
70 '-e "/^Unexpected Pass:/p" ' \
71 '-e "/^Full log written.*/,/^ninja: build stopped.*/d" '
74 # build requirement for the 64-bit build
75 REQUIRED_PACKAGES
+= library
/desktop
/gobject
/gobject-introspection
76 REQUIRED_PACKAGES
+= developer
/vala
77 # required for the glade_catalog option
78 REQUIRED_PACKAGES
+= developer
/ui-designer
/glade
80 # Auto-generated dependencies
81 REQUIRED_PACKAGES
+= library
/desktop
/atk
82 REQUIRED_PACKAGES
+= library
/desktop
/cairo
83 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
84 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
85 REQUIRED_PACKAGES
+= library
/desktop
/pango
86 REQUIRED_PACKAGES
+= library
/fribidi
87 REQUIRED_PACKAGES
+= library
/glib2
88 REQUIRED_PACKAGES
+= library
/libxml2
89 REQUIRED_PACKAGES
+= system
/library
90 REQUIRED_PACKAGES
+= system
/library
/math