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 2022, Daniel Chan
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= ZenLib
18 COMPONENT_VERSION
= 0.4.41
20 COMPONENT_SUMMARY
= Small C
++ derivate classes to have an easier life
21 COMPONENT_PROJECT_URL
= https
://github.com
/MediaArea
/$(COMPONENT_NAME
)
22 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
23 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
24 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/archive
/refs
/tags/v
$(COMPONENT_VERSION
).
tar.gz
25 COMPONENT_ARCHIVE_HASH
= sha256
:45d5173fa0278f5264daa6836ae297aa303984482227d00b35c4f03929494c8f
26 COMPONENT_FMRI
= library
/libzen
27 COMPONENT_CLASSIFICATION
=System
/Libraries
28 COMPONENT_LICENSE
= GPLv3
29 COMPONENT_LICENSE_FILE
= License.txt
31 TEST_TARGET
= $(NO_TESTS
)
32 include $(WS_MAKE_RULES
)/common.mk
34 CONFIGURE_SCRIPT
= $(SOURCE_DIR
)/Project
/GNU
/Library
/configure
36 COMPONENT_PRE_CONFIGURE_ACTION
= ( cd
$(SOURCE_DIR
)/Project
/GNU
/Library
/ && .
/autogen.sh
&& cd
$(SOURCE_DIR
); )
38 CONFIGURE_OPTIONS
+= --enable-shared
39 CONFIGURE_OPTIONS
+= --disable-static
41 COMPONENT_POST_UNPACK_ACTION
= \
42 mv
$(COMPONENT_SRC
)/Source
/ZenLib
/Thread.
cpp $(COMPONENT_SRC
)/Source
/ZenLib
/Thread.
cpp.old
; \
43 dos2unix
$(COMPONENT_SRC
)/Source
/ZenLib
/Thread.
cpp.old
&> $(COMPONENT_SRC
)/Source
/ZenLib
/Thread.
cpp
45 # Auto-generated dependencies
46 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
47 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
48 REQUIRED_PACKAGES
+= system
/library
49 REQUIRED_PACKAGES
+= system
/library
/math