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 2024 Marcel Telka
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 # This is vte-2.91 ABI series
26 COMPONENT_SUMMARY
= Virtual terminal widget for GTK applications
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
28 COMPONENT_ARCHIVE_URL
= \
29 https
://gitlab.gnome.org
/GNOME
/$(COMPONENT_NAME
)/-/archive
/$(HUMAN_VERSION
)/$(COMPONENT_ARCHIVE
)
30 COMPONENT_ARCHIVE_HASH
= \
31 sha256
:c655778c2148c30f7416a450d7d9dad7bf481d3411896095aacd92a448c3ebf3
32 COMPONENT_FMRI
= library
/desktop
/vte-291
33 COMPONENT_CLASSIFICATION
= Desktop
(GNOME
)/Libraries
34 COMPONENT_LICENSE
= CC-BY-4.0 AND GPL-3.0
-only AND LGPL-3.0
-only AND MIT
36 include $(WS_MAKE_RULES
)/gnome.mk
37 include $(WS_MAKE_RULES
)/common.mk
40 update-license-file
: patch
42 printf
-- '--- COPYING.CC-BY-4-0 -----------------------------------------------------\n\n' ; \
43 $(CAT
) $(SOURCE_DIR
)/COPYING.CC-BY-4-0
; \
44 printf
'\n--- COPYING.GPL3 ----------------------------------------------------------\n\n' ; \
45 $(CAT
) $(SOURCE_DIR
)/COPYING.GPL3
; \
46 printf
'\n--- COPYING.LGPL3 ---------------------------------------------------------\n\n' ; \
47 $(CAT
) $(SOURCE_DIR
)/COPYING.LGPL3
; \
48 printf
'\n--- COPYING.XTERM ---------------------------------------------------------\n\n' ; \
49 $(CAT
) $(SOURCE_DIR
)/COPYING.XTERM \
50 ) > $(COMPONENT_DIR
)/$(COMPONENT_LICENSE_FILE
)
52 # We need IMAXBEL and so we need to define __EXTENSIONS__
53 CFLAGS
+= -D__EXTENSIONS__
55 # We have no /etc/profile.d support
56 # See also https://www.illumos.org/issues/3395
57 COMPONENT_POST_INSTALL_ACTION
+= $(RM
) -r
$(PROTOETCDIR
)/profile.d
;
59 # Replace ABI version number by ABIVER
60 ABIVER_RE
= $(subst .
,\.
,$(ABIVER
))
61 GENERATE_EXTRA_CMD
+= |
$(GSED
) -e
's/\([Vv]te-\)$(ABIVER_RE)/\1$$(ABIVER)/g'
63 # ABIVER is needed for manifest processing
64 PKG_MACROS
+= ABIVER
=$(ABIVER
)
66 # Dynamic library version number
67 SOVER
:= $(shell printf
'%s00.%s' $(wordlist
2,3,$(subst .
, ,$(COMPONENT_VERSION
))))
68 SOVER_RE
= $(subst .
,\.
,$(SOVER
))
70 # Replace library version number by SOVER
71 GENERATE_EXTRA_CMD
+= |
$(GSED
) -e
's/$(SOVER_RE)/$$(SOVER)/'
73 # SOVER is needed for manifest processing
74 PKG_MACROS
+= SOVER
=$(SOVER
)
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
78 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
79 REQUIRED_PACKAGES
+= $(ICU_LIBRARY_PKG
)
80 REQUIRED_PACKAGES
+= gnome
/accessibility
/at-spi2-core
81 REQUIRED_PACKAGES
+= library
/desktop
/cairo
82 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
83 REQUIRED_PACKAGES
+= library
/desktop
/graphene
84 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
85 REQUIRED_PACKAGES
+= library
/desktop
/gtk4
86 REQUIRED_PACKAGES
+= library
/desktop
/pango
87 REQUIRED_PACKAGES
+= library
/fribidi
88 REQUIRED_PACKAGES
+= library
/glib2
89 REQUIRED_PACKAGES
+= library
/gnutls-3
90 REQUIRED_PACKAGES
+= library
/lz4
91 REQUIRED_PACKAGES
+= library
/pcre2
92 REQUIRED_PACKAGES
+= system
/library
93 REQUIRED_PACKAGES
+= system
/library
/math