21 |
21 |
22 # |
22 # |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
24 # |
24 # |
25 BUILD_BITS= 64_and_32 |
25 BUILD_BITS= 64_and_32 |
|
26 COMPILER= gcc |
26 include ../../make-rules/shared-macros.mk |
27 include ../../make-rules/shared-macros.mk |
27 |
28 |
28 COMPONENT_NAME= libsndfile |
29 COMPONENT_NAME= libsndfile |
29 COMPONENT_VERSION= 1.0.23 |
30 COMPONENT_VERSION= 1.0.27 |
30 COMPONENT_PROJECT_URL= http://www.mega-nerd.com/libsndfile/ |
31 COMPONENT_PROJECT_URL= http://www.mega-nerd.com/libsndfile/ |
31 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
32 sha256:54c9c375598538263395a691f9b30987a2faa3d8a166d27e6a09ba4700223d4d |
33 sha256:a391952f27f4a92ceb2b4c06493ac107896ed6c76be9a613a4731f076d30fac0 |
33 COMPONENT_ARCHIVE_URL= http://www.mega-nerd.com/libsndfile/files/$(COMPONENT_ARCHIVE) |
34 COMPONENT_ARCHIVE_URL= http://www.mega-nerd.com/libsndfile/files/$(COMPONENT_ARCHIVE) |
34 COMPONENT_BUGDB= library/libsndfile |
35 COMPONENT_BUGDB= library/libsndfile |
35 |
36 |
36 TPNO= 8890 |
37 TPNO= 30616 |
37 |
38 |
38 include $(WS_MAKE_RULES)/common.mk |
39 include $(WS_MAKE_RULES)/common.mk |
39 |
40 |
40 # Needed for __func__ in cpp_test.cc |
41 # Needed to get tests/header_test.c to compile successfully on SPARC. |
41 CXXFLAGS += $(studio_FEATURES_EXTENSIONS) |
42 gcc_XREGS.sparc= -mapp-regs |
42 CFLAGS += $(studio_PIC) |
|
43 |
43 |
44 # Master test results are the same for 32-bit and 64-bit, so override |
44 # Need to use GNU sed otherwise we get a: |
45 # here, rather than create multiple identical master files. |
45 # Error : sfversion <version> and PACKAGE_VERSION <version> don't match." |
|
46 # failure from the test_wrapper.sh script. |
|
47 COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)" |
|
48 |
46 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
49 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
47 |
50 |
48 # The additional libsndfile specific set of transforms to be applied to the |
|
49 # test results to try to normalize them. |
|
50 COMPONENT_TEST_TRANSFORMS += \ |
51 COMPONENT_TEST_TRANSFORMS += \ |
51 '-e "s|\(^SunOS\).*|\1|" ' |
52 '-e "s|\(^SunOS\).*|\1|" ' \ |
|
53 '-e "s|^.* CC .*$$|XXX_REMOVE_XXX|g" ' \ |
|
54 '-e "s|^.* CXX .*$$|XXX_REMOVE_XXX|g" ' \ |
|
55 '-e "s|^.* CCLD .*$$|XXX_REMOVE_XXX|g" ' \ |
|
56 '-e "s|^.* CXXLD .*$$|XXX_REMOVE_XXX|g" ' \ |
|
57 '-e "s|^.*source=.*libtool=no.*$$|XXX_REMOVE_XXX|g" ' \ |
|
58 '-e "s|^.*DEPDIR=.deps.*$$|XXX_REMOVE_XXX|g" ' \ |
|
59 '-e "s|^config.status: .*$$|XXX_REMOVE_XXX|g" ' \ |
|
60 '-e "s|^.*common.h:.*$$|XXX_REMOVE_XXX|g" ' \ |
|
61 '-e "s|^.*test_strncpy_crlf.c:.*$$|XXX_REMOVE_XXX|g" ' \ |
|
62 '-e "s|^.*In file included.*$$|XXX_REMOVE_XXX|g" ' \ |
|
63 '-e "s|^.*psf_strlcpy_crlf (.*$$|XXX_REMOVE_XXX|g" ' \ |
|
64 '-e "s|^.*\^.*$$|XXX_REMOVE_XXX|g" ' \ |
|
65 '-e "s|^.*argument:.*$$|XXX_REMOVE_XXX|g" ' \ |
|
66 '-e "s|^.*prototype:.*$$|XXX_REMOVE_XXX|g" ' \ |
|
67 '-e "s|^.*warning:.*$$|XXX_REMOVE_XXX|g" ' \ |
|
68 '-e "s|^make.*: Nothing to be.*$$|XXX_REMOVE_XXX|g" ' \ |
|
69 '-e "s|^make.*: Leaving directory.*$$|XXX_REMOVE_XXX|g" ' \ |
|
70 '-e "s|^make.*: Entering directory.*$$|XXX_REMOVE_XXX|g" ' \ |
|
71 '-e "/^XXX_REMOVE_XXX$$/d" ' |
52 |
72 |
53 REQUIRED_PACKAGES += codec/flac |
73 REQUIRED_PACKAGES += codec/flac |
54 REQUIRED_PACKAGES += codec/ogg-vorbis |
74 REQUIRED_PACKAGES += codec/ogg-vorbis |
55 REQUIRED_PACKAGES += database/sqlite-3 |
75 REQUIRED_PACKAGES += database/sqlite-3 |
56 REQUIRED_PACKAGES += system/library/math |
76 REQUIRED_PACKAGES += system/library/math |