2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2021 Andreas Wacknitz
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= libqrencode
20 COMPONENT_VERSION
= 4.1.1
21 COMPONENT_PROJECT_URL
= https
://github.com
/fukuchi
/libqrencode
22 COMPONENT_SUMMARY
= A fast and compact QR Code encoding library
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
25 COMPONENT_ARCHIVE_HASH
= sha256
:5385bc1b8c2f20f3b91d258bf8ccc8cf62023935df2d2676b5b67049f31a049c
26 COMPONENT_ARCHIVE_URL
= https
://github.com
/fukuchi
/libqrencode
/archive
/refs
/tags/v
$(COMPONENT_VERSION
).
tar.gz
27 COMPONENT_CLASSIFICATION
= System
/Multimedia Libraries
28 COMPONENT_FMRI
= library
/libqrencode
29 COMPONENT_LICENSE
= LGPLv2.1
31 include $(WS_MAKE_RULES
)/common.mk
33 CMAKE_OPTIONS
+= -DBUILD_SHARED_LIBS
=ON
34 CMAKE_OPTIONS
+= -DWITH_TESTS
=ON
36 COMPONENT_TEST_TRANSFORMS
+= \
37 '-e "s/[0-9. ]*sec//g"' \
38 '-e "s/Total Test time (real) =//g"'
40 # Auto-generated dependencies
41 REQUIRED_PACKAGES
+= image
/library
/libpng16
42 REQUIRED_PACKAGES
+= system
/library