Makefile revision 3817
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch#
570f02698492be6d25035d7a6ff65b2302bdb76dTimo Sirainen# CDDL HEADER START
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk# The contents of this file are subject to the terms of the
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Common Development and Distribution License (the "License").
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# You may not use this file except in compliance with the License.
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk#
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk# or http://www.opensolaris.org/os/licensing.
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk# See the License for the specific language governing permissions
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# and limitations under the License.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# When distributing Covered Code, include this CDDL HEADER in each
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk# If applicable, add the following below this CDDL HEADER, with the
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk# fields enclosed by brackets "[]" replaced with your own identifying
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# information: Portions Copyright [yyyy] [name of copyright owner]
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# CDDL HEADER END
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk#
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkinclude ../../make-rules/shared-macros.mk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_NAME= libsndfile
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_VERSION= 1.0.23
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal VolkCOMPONENT_PROJECT_URL= http://www.mega-nerd.com/libsndfile/
96e19b9caa03df983ad0d9285053b897a439e3f7Pascal VolkCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_ARCHIVE_HASH= \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk sha256:54c9c375598538263395a691f9b30987a2faa3d8a166d27e6a09ba4700223d4d
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_ARCHIVE_URL= http://www.mega-nerd.com/libsndfile/files/$(COMPONENT_ARCHIVE)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_BUGDB= library/libsndfile
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkTPNO= 8890
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkinclude $(WS_MAKE_RULES)/prep.mk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkinclude $(WS_MAKE_RULES)/configure.mk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkinclude $(WS_MAKE_RULES)/ips.mk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Needed for __func__ in cpp_test.cc
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCXXFLAGS += $(studio_FEATURES_EXTENSIONS)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCFLAGS += $(studio_PIC)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# Master test results are the same for 32-bit and 64-bit, so override
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# here, rather than create multiple identical master files.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# The additional libsndfile specific set of transforms to be applied to the
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# test results to try to normalize them.
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkCOMPONENT_TEST_TRANSFORMS += \
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk '-e "s|\(^SunOS\).*|\1|" '
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkASLR_MODE = $(ASLR_ENABLE)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk# common targets
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkconfigure: $(CONFIGURE_32_and_64)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkbuild: $(BUILD_32_and_64)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volkinstall: $(INSTALL_32_and_64)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volktest: $(TEST_32_and_64)
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkREQUIRED_PACKAGES += codec/flac
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkREQUIRED_PACKAGES += codec/ogg-vorbis
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkREQUIRED_PACKAGES += database/sqlite-3
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkREQUIRED_PACKAGES += system/library
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal VolkREQUIRED_PACKAGES += system/library/math
fa9f5378ec558c451f1f1c47a4c41aa7c916c929Pascal Volk