1727N/A#
1727N/A# CDDL HEADER START
1727N/A#
1727N/A# The contents of this file are subject to the terms of the
1727N/A# Common Development and Distribution License (the "License").
1727N/A# You may not use this file except in compliance with the License.
1727N/A#
1727N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1727N/A# or http://www.opensolaris.org/os/licensing.
1727N/A# See the License for the specific language governing permissions
1727N/A# and limitations under the License.
1727N/A#
1727N/A# When distributing Covered Code, include this CDDL HEADER in each
1727N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1727N/A# If applicable, add the following below this CDDL HEADER, with the
1727N/A# fields enclosed by brackets "[]" replaced with your own identifying
1727N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1727N/A#
1727N/A# CDDL HEADER END
5680N/A#
5668N/A
1727N/A#
5668N/A# Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
1727N/A#
5680N/ABUILD_BITS= 64
1727N/Ainclude ../../make-rules/shared-macros.mk
1727N/A
1727N/ACOMPONENT_NAME= pixz
5668N/ACOMPONENT_VERSION= 1.0.6
1727N/ACOMPONENT_PROJECT_URL= http://github.com/vasi/pixz/
1727N/ACOMPONENT_ARCHIVE_HASH= \
5668N/A sha256:c54a406dddc6c2226779aeb4b5d5b5649c1d3787b39794fbae218f7535a1af63
5668N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
1727N/A
5668N/ATPNO= 27449
2899N/A
5680N/ASYSTEM_TEST_TARGET= build $(SYSTEM_TEST_64)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
1727N/A
1727N/APKG_PROTO_DIRS += $(BUILD_DIR_64)
1727N/A
5668N/A# Needed to make the tests work, now we use configure.mk not justmake.mk.
5668N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
5668N/A
1727N/A# Userland default includes -mt which links with libthread which we don't need.
1727N/Astudio_MT =
1727N/A
5668N/A# pixz's src/Makefile hard-codes some gcc-only flags in pixz_CFLAGS.
5668N/A# Here we exclude the gcc-only parts, so we can build with Studio.
5668N/A# PTHREAD_CFLAGS is defined in the pixz .../src/Makefile.
1727N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
5668N/ACOMPONENT_BUILD_ARGS += pixz_CFLAGS="$(PTHREAD_CFLAGS)"
1727N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
1727N/ACOMPONENT_BUILD_ARGS += LDFLAGS="$(CC_BITS)"
1727N/A
4911N/A# Create a small testball to use with the test script.
4911N/ACOMPONENT_PRE_TEST_ACTION = \
5668N/A (cd $(@D)/src; tar cvf pixz-test-tarball.tar *.c *.o)
4911N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION = \
5668N/A (cd $(@D)/src; tar cvf pixz-test-tarball.tar *.c *.o)
4911N/A
4911N/ACOMPONENT_TEST_TRANSFORMS += \
4911N/A '-e "/^real/d" ' \
4911N/A '-e "/^user/d" ' \
4911N/A '-e "/^sys/d" '
4911N/A
4911N/ACOMPONENT_TEST_ENV = PATH=$(GNUBIN):$(PATH)
4911N/ACOMPONENT_TEST_CMD = $(SOURCE_DIR)/test.sh
5668N/ACOMPONENT_TEST_ARGS = src/pixz-test-tarball.tar pixz.c
4911N/ACOMPONENT_TEST_TARGETS =
4911N/A
4911N/ACOMPONENT_SYSTEM_TEST_ENV = PATH=$(GNUBIN):$(PATH)
5680N/ACOMPONENT_SYSTEM_TEST_ENV += PIXZ_BIN=$(USRBINDIR)/pixz
4911N/ACOMPONENT_SYSTEM_TEST_CMD = $(SOURCE_DIR)/test.sh
5668N/ACOMPONENT_SYSTEM_TEST_ARGS = src/pixz-test-tarball.tar pixz.c
4911N/ACOMPONENT_SYSTEM_TEST_TARGETS =
4911N/A
3817N/AREQUIRED_PACKAGES += compress/xz
3817N/AREQUIRED_PACKAGES += library/libarchive
5668N/AREQUIRED_PACKAGES += system/library/math