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]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
25 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_VERSION
= 2.0.7
30 COMPONENT_SUMMARY
= The GNU Portable Threads Library
31 COMPONENT_DESCRIPTION
= A portable POSIX
/ANSI-C based library for Unix platforms providing non-preemptive priority-based scheduling for multiple threads
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/pth
/
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
35 COMPONENT_ARCHIVE_HASH
= sha256
:72353660c5a2caafd601b20e12e75d865fd88f6cf1a088b306a3963f0bc77232
36 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/gnu
/pth
/$(COMPONENT_ARCHIVE
)
37 COMPONENT_FMRI
= library
/pth
38 COMPONENT_CLASSIFICATION
= System
/Libraries
39 COMPONENT_LICENSE
= LGPLv2.1
40 COMPONENT_LICENSE_FILE
= COPYING
42 include $(WS_MAKE_RULES
)/common.mk
46 CFLAGS
+= $(CPP_LARGEFILES
)
48 CFLAGS
+= $(CPP_POSIX
)
49 CFLAGS
+= $(gcc_C99_ENABLE
)
51 CPPFLAGS
+= $(CPP_LARGEFILES
) $(CPP_POSIX
)
53 LDFLAGS
= -lpthread
-lposix4
-lrt
55 CONFIGURE_OPTIONS
+= --localstatedir
=/var
56 CONFIGURE_OPTIONS
+= --with-pic
57 CONFIGURE_OPTIONS
+= --enable-static
=no
59 CONFIGURE_ENV
+= LD
="$(CC) $(CFLAGS) $(LDFLAGS)"
60 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
61 CONFIGURE_ENV
+= CPP
="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
62 CONFIGURE_ENV
+= INSTALL
="$(INSTALL)"
66 # Auto-generated dependencies
67 REQUIRED_PACKAGES
+= SUNWcs
68 REQUIRED_PACKAGES
+= system
/library