components/libsndfile/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Tue, 11 Apr 2017 06:59:37 -0700
changeset 7858 9f73487af259
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25869943 Update libsndfile to version 1.0.28
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     1
#
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     3
#
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     7
#
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    12
#
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    18
#
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    21
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7548
diff changeset
    23
# Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    25
BUILD_BITS= 64_and_32
6604
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    26
COMPILER= gcc
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    27
include ../../make-rules/shared-macros.mk
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    28
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		libsndfile
7858
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    30
COMPONENT_VERSION=	1.0.28
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.mega-nerd.com/libsndfile/
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 290
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
7858
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    33
    sha256:1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://www.mega-nerd.com/libsndfile/files/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    35
COMPONENT_BUGDB=	library/libsndfile
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7548
diff changeset
    36
COMPONENT_ANITYA_ID=	13277
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    37
7858
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    38
TPNO=			34734
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1303
diff changeset
    39
7430
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    40
TEST_TARGET= install $(TEST_32_and_64)
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    41
SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_32_and_64)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    42
include $(WS_MAKE_RULES)/common.mk
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    43
6604
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    44
# Needed to get tests/header_test.c to compile successfully on SPARC.
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    45
gcc_XREGS.sparc=	-mapp-regs
290
4a5d715e84b4 7052146 migrate libsndfile to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    46
7430
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    47
# Get correct libsndfile.so.1 from the proto area.
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    48
TEST_LIBPATH.32 =	$(PROTOUSRLIBDIR)
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    49
TEST_LIBPATH.64 =	$(PROTOUSRLIBDIR64)
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    50
COMPONENT_TEST_ENV +=	LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS))
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    51
6604
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    52
# Need to use GNU sed otherwise we get a:
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    53
# Error : sfversion <version> and PACKAGE_VERSION <version> don't match."
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    54
# failure from the test_wrapper.sh script.
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    55
COMPONENT_TEST_ENV +=   PATH="$(GNUBIN):$(PATH)"
7430
1d6d98b016b7 22589773 Enable libsndfile system-test target for future Userland PIT Testing
Rich Burridge <rich.burridge@oracle.com>
parents: 6740
diff changeset
    56
COMPONENT_SYSTEM_TEST_ENV +=   PATH="$(GNUBIN):$(PATH)"
6604
cd700b33a402 PSARC 2016/467 libsndfile version 1.0.27
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    57
7858
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    58
# Two tests fail for 32-bit SPARC, so we have 4 master test files.
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    59
COMPONENT_TEST_MASTER = \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    60
	$(COMPONENT_TEST_RESULTS_DIR)/results-$(BITS)-$(MACH).master
3725
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    61
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    62
COMPONENT_TEST_TRANSFORMS += \
7858
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    63
	'-e "s|libsndfile-1\.0\...|libsndfile-1\.0\.xx|g" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    64
	'-e "/FILE_OFFSET_BITS/d"' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    65
	'-n ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    66
	'-e "/-------/p" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    67
	'-e "/=======/p" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    68
	'-e "/ passed /p" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    69
	'-e "/ failed /p" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    70
	'-e "/^Testing/p" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    71
	'-e "/dev\/full/p" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    72
	'-e "/^\./p" ' \
9f73487af259 25869943 Update libsndfile to version 1.0.28
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    73
	'-e "/ok$$/p" '
3725
57a3df1e928a 20460414 GUILE should have some master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 2225
diff changeset
    74
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    75
REQUIRED_PACKAGES += codec/flac
7548
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7430
diff changeset
    76
ifeq ($(BUILD_TYPE), evaluation)
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7430
diff changeset
    77
REQUIRED_PACKAGES += codec/ogg-vorbis
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7430
diff changeset
    78
else
6740
b9a930b724d2 23245483 Move libvorbis 1.3.3 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents: 6604
diff changeset
    79
REQUIRED_PACKAGES += codec/libogg
b9a930b724d2 23245483 Move libvorbis 1.3.3 to Userland
Jay Cotton <Jay.Cotton@Oracle.COM>
parents: 6604
diff changeset
    80
REQUIRED_PACKAGES += codec/libvorbis
7548
ad7417efe433 25305787 developer/opensolaris/userland depends on obsolete/split codec/ogg-vorbis
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 7430
diff changeset
    81
endif
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    82
REQUIRED_PACKAGES += database/sqlite-3
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3725
diff changeset
    83
REQUIRED_PACKAGES += system/library/math