4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
28 USE_DEFAULT_TEST_TRANSFORMS
= yes
29 include ..
/..
/..
/make-rules
/shared-macros.mk
32 COMPONENT_VERSION
= 1.7
33 COMPONENT_SUMMARY
= The New GNU Portable Threads Library
34 COMPONENT_DESCRIPTION
= A portable library that uses the system
's standard threads library to provid non-preemptive priority-based scheduling for multiple threads using the npth API
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
36 COMPONENT_PROJECT_URL= https://www.gnupg.org/related_software/npth/
37 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
38 COMPONENT_ARCHIVE_HASH= sha256:8589f56937b75ce33b28d312fccbf302b3b71ec3f3945fde6aaa74027914ad05
39 COMPONENT_ARCHIVE_URL= https://gnupg.org/ftp/gcrypt/npth/$(COMPONENT_ARCHIVE)
40 COMPONENT_FMRI= library/npth
41 COMPONENT_CLASSIFICATION=System/Libraries
42 COMPONENT_LICENSE= LGPLv2.1
43 COMPONENT_LICENSE_FILE= COPYING.LIB
45 include $(WS_MAKE_RULES)/common.mk
47 # Enable C99 mode + -Xc for its additional warnings.
52 CPPFLAGS += $(CPP_LARGEFILES)
54 LDFLAGS= -lpthread -lposix4 -lrt
56 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
57 CONFIGURE_OPTIONS += --with-pic
59 CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
60 CONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
61 CONFIGURE_ENV += INSTALL="$(INSTALL)"
63 # Auto-generated dependencies
64 REQUIRED_PACKAGES += system/library