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