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
27 USE_DEFAULT_TEST_TRANSFORMS
= yes
28 include ..
/..
/..
/make-rules
/shared-macros.mk
31 COMPONENT_VERSION
= 1.8
32 COMPONENT_SUMMARY
= The New GNU Portable Threads Library
33 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
34 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_PROJECT_URL= https://www.gnupg.org/related_software/npth/
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
37 COMPONENT_ARCHIVE_HASH= sha256:8bd24b4f23a3065d6e5b26e98aba9ce783ea4fd781069c1b35d149694e90ca3e
38 COMPONENT_ARCHIVE_URL= https://gnupg.org/ftp/gcrypt/npth/$(COMPONENT_ARCHIVE)
39 COMPONENT_FMRI= library/npth
40 COMPONENT_CLASSIFICATION=System/Libraries
41 COMPONENT_LICENSE= LGPLv2.1
42 COMPONENT_LICENSE_FILE= COPYING.LIB
44 include $(WS_MAKE_RULES)/common.mk
46 # Enable C99 mode + -Xc for its additional warnings.
51 CPPFLAGS += $(CPP_LARGEFILES)
53 LDFLAGS= -lpthread -lposix4 -lrt
55 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
56 CONFIGURE_OPTIONS += --with-pic
58 CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
59 CONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
60 CONFIGURE_ENV += INSTALL="$(INSTALL)"
62 # Auto-generated dependencies
63 REQUIRED_PACKAGES += system/library