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) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2016, Jim Klimov
28 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_NAME
= pbzip2
31 COMPONENT_VERSION
= 1.1.13
33 COMPONENT_SUMMARY
= parallel implementation of bzip2
34 COMPONENT_PROJECT_URL
= http
://compression.great-site.net
35 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
36 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
37 COMPONENT_ARCHIVE_HASH
= sha256
:8fd13eaaa266f7ee91f85c1ea97c86d9c9cc985969db9059cdebcb1e1b7bdbe6
38 COMPONENT_ARCHIVE_URL
= https
://launchpad.net
/pbzip2
/1.1/$(COMPONENT_VERSION
)/+download
/$(COMPONENT_ARCHIVE
)
39 COMPONENT_FMRI
= compress
/$(COMPONENT_NAME
)
40 COMPONENT_CLASSIFICATION
= Applications
/System Utilities
41 COMPONENT_LICENSE
= pbzip2 license
42 COMPONENT_LICENSE_FILE
= COPYING
44 TEST_TARGET
= $(NO_TESTS
)
45 include $(WS_MAKE_RULES
)/common.mk
47 # Trailing flags are those our CXXFLAGS override in original project Makefile
48 CXXFLAGS
+= $(CPP_LARGEFILES
) -DUSE_STACKSIZE_CUSTOMIZATION
-pthread
-D_POSIX_PTHREAD_SEMANTICS
50 COMPONENT_BUILD_ARGS
+= CC
="$(CC)"
51 COMPONENT_BUILD_ARGS
+= CXX
="$(CXX)"
52 COMPONENT_BUILD_ARGS
+= CXXFLAGS
="$(CXXFLAGS)"
54 ifeq ($(strip $(MACH
)),sparc
)
55 REQUIRED_PACKAGES
+= system
/library
/math
58 # Auto-generated dependencies
59 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
60 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
61 REQUIRED_PACKAGES
+= compress
/bzip2
62 REQUIRED_PACKAGES
+= system
/library