thunderbird: update to 128.3.0
[oi-userland.git] / components / archiver / bzip2 / Makefile
blobeeebb4f8ed5d60fcc2d1cabdd6d97972f57df45c
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2019, Michal Nowak
27 BUILD_BITS= 32_and_64
28 BUILD_STYLE= justmake
30 include ../../../make-rules/shared-macros.mk
32 COMPONENT_NAME= bzip2
33 COMPONENT_VERSION= 1.0.8
34 COMPONENT_REVISION= 1
35 COMPONENT_SUMMARY= high-quality block-sorting file compressor
36 COMPONENT_PROJECT_URL= https://sourceware.org/bzip2/
37 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
38 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
39 COMPONENT_ARCHIVE_HASH= sha256:ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269
40 COMPONENT_ARCHIVE_URL= https://sourceware.org/pub/bzip2/$(COMPONENT_ARCHIVE)
41 COMPONENT_FMRI= compress/bzip2
42 COMPONENT_CLASSIFICATION= Applications/System Utilities
43 COMPONENT_LICENSE= bzip2
44 COMPONENT_LICENSE_FILE= LICENSE
46 include $(WS_MAKE_RULES)/common.mk
48 # Enable ASLR for this component
49 ASLR_MODE = $(ASLR_ENABLE)
51 # we need to enable large file support and build PIC for our shared libraries
52 CFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
54 COMPONENT_BUILD_ENV += CC="$(CC)"
55 COMPONENT_BUILD_ARGS += CC="$(CC)"
56 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
57 COMPONENT_INSTALL_ARGS += PREFIX=$(PROTOUSRDIR)
59 COMPONENT_PRE_BUILD_ACTION= \
60 ( cp $(COMPONENT_DIR)/files/oldapi.c $(@D) )
62 # override the 64 bit install and have it make a directory for the lint lib
63 $(INSTALL_64):
64 $(MKDIR) $(PROTOUSRLIBDIR64)
65 touch $@
67 install: build $(INSTALL_32_and_64)
68 $(INSTALL) $(BUILD_DIR_32)/libbz2.so.1 $(PROTOUSRLIBDIR)
69 cd $(PROTOUSRLIBDIR); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
70 $(INSTALL) $(BUILD_DIR_64)/libbz2.so.1 $(PROTOUSRLIBDIR64)
71 cd $(PROTOUSRLIBDIR64); rm -f libbz2.so; ln -s libbz2.so.1 libbz2.so
73 # Auto-generated dependencies
74 REQUIRED_PACKAGES += shell/ksh93
75 REQUIRED_PACKAGES += system/library