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 2016 Alexander Pyhalov
14 # Copyright 2019 Michal Nowak
15 # Copyright 2023 Friedrich Kink
19 DEFAULT_COMPONENT_TEST_TRANSFORMS
= yes
20 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_VERSION
= 1.18.2
24 COMPONENT_SUMMARY
= Vector graphics library
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
27 COMPONENT_ARCHIVE_HASH
= sha256
:a62b9bb42425e844cc3d6ddde043ff39dbabedd1542eba57a2eb79f85889d45a
28 COMPONENT_ARCHIVE_URL
= https
://cairographics.org
/releases
/$(COMPONENT_ARCHIVE
)
29 COMPONENT_PROJECT_URL
= https
://cairographics.org
/
30 COMPONENT_FMRI
= library
/desktop
/cairo
31 COMPONENT_CLASSIFICATION
=Desktop
(GNOME
)/Libraries
32 COMPONENT_LICENSE
= LGPLv2.1
33 COMPONENT_LICENSE_FILE
= COPYING-LGPL-2.1
35 include $(WS_MAKE_RULES
)/common.mk
38 # to avoid the following error
39 # ld: fatal: recording name conflict: file 'src/libcairo.so.2.11800.0' and file '/usr/lib/amd64/libcairo.so' provide identical dependency names: libcairo.so.2
40 # ld: fatal: file processing errors. No output written to test/any2ppm
41 COMPONENT_POST_CONFIGURE_ACTION
= $(GSED
) -i
-e
'/^ LINK_ARGS/s:/usr/lib/amd64/libcairo.so :$(@D)/src/libcairo.so :' $(@D
)/build.ninja
42 COMPONENT_BUILD_ARGS
= -j1
46 COMPONENT_TEST_TRANSFORMS
+= '-e "s/[0-9]\.[0-9]*s//" '
47 COMPONENT_TEST_TRANSFORMS
+= '-e "s/[0-9]*\.[0-9]*s//" '
49 # Auto-generated dependencies
50 REQUIRED_PACKAGES
+= image
/library
/libpng16
51 REQUIRED_PACKAGES
+= library
/glib2
52 REQUIRED_PACKAGES
+= library
/graphics
/pixman
53 REQUIRED_PACKAGES
+= library
/lzo
54 REQUIRED_PACKAGES
+= library
/zlib
55 REQUIRED_PACKAGES
+= shell/ksh93
56 REQUIRED_PACKAGES
+= system
/library
57 REQUIRED_PACKAGES
+= system
/library
/fontconfig
58 REQUIRED_PACKAGES
+= system
/library
/freetype-2
59 REQUIRED_PACKAGES
+= system
/library
/math
60 REQUIRED_PACKAGES
+= x11
/library
/libx11
61 REQUIRED_PACKAGES
+= x11
/library
/libxcb
62 REQUIRED_PACKAGES
+= x11
/library
/libxext
63 REQUIRED_PACKAGES
+= x11
/library
/libxrender