1800N/A#
1800N/A# CDDL HEADER START
1800N/A#
1800N/A# The contents of this file are subject to the terms of the
1800N/A# Common Development and Distribution License (the "License").
1800N/A# You may not use this file except in compliance with the License.
1800N/A#
1800N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1800N/A# or http://www.opensolaris.org/os/licensing.
1800N/A# See the License for the specific language governing permissions
1800N/A# and limitations under the License.
1800N/A#
1800N/A# When distributing Covered Code, include this CDDL HEADER in each
1800N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1800N/A# If applicable, add the following below this CDDL HEADER, with the
1800N/A# fields enclosed by brackets "[]" replaced with your own identifying
1800N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1800N/A#
1800N/A# CDDL HEADER END
1800N/A#
3996N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
1800N/A#
1800N/Ainclude ../../make-rules/shared-macros.mk
1800N/A
1800N/ACOMPONENT_NAME= pixz
1800N/ACOMPONENT_VERSION= 1.0
1800N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1800N/ACOMPONENT_PROJECT_URL= http://github.com/vasi/pixz/
1800N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1800N/ACOMPONENT_ARCHIVE_HASH= \
1800N/A sha256:912c60de88f7eca2e1c6fe13eec5371f723018dca933796c47cd50bf6a349fc9
1800N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)archive/$(COMPONENT_ARCHIVE)
1800N/ACOMPONENT_BUGDB= utility/pixz
1800N/A
3661N/ATPNO= 11623
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/justmake.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
1800N/A
1800N/APKG_PROTO_DIRS += $(BUILD_DIR_64)
1800N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
1800N/A
1800N/A# Userland default includes -mt which links with libthread which we don't need.
1800N/Astudio_MT =
1800N/A
1800N/A# pixz's Makefile hard-codes some gcc-only flags in MYCFLAGS and MYLDFLAGS,
1800N/A# then appends CFLAGS & LDFLAGS to each. Here we include their preset values
1800N/A# minus the gcc-only parts, so we can build with Studio.
1800N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
1800N/ACOMPONENT_BUILD_ARGS += MYCFLAGS='$(patsubst %,-I%/include,$(LIBPREFIX)) $(OPT)'
1800N/ACOMPONENT_BUILD_ARGS += MYLDFLAGS='$(patsubst %,-L%/lib,$(LIBPREFIX)) $(OPT)'
1800N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
1800N/ACOMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)"
1800N/A
1800N/A# common targets
1800N/Abuild: $(BUILD_64)
1800N/A
1800N/Ainstall: $(BUILD_64)
1800N/A
1800N/Atest: $(NO_TESTS)
1800N/A
1800N/A
3996N/AREQUIRED_PACKAGES += compress/xz
3996N/AREQUIRED_PACKAGES += library/libarchive
3996N/AREQUIRED_PACKAGES += system/library