16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
|
23 COMPILER = gcc |
|
24 |
23 include ../../make-rules/shared-macros.mk |
25 include ../../make-rules/shared-macros.mk |
24 |
26 |
25 COMPONENT_NAME= libsndfile |
27 COMPONENT_NAME= libsndfile |
26 COMPONENT_VERSION= 1.0.23 |
28 COMPONENT_VERSION= 1.0.28 |
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
28 COMPONENT_PROJECT_URL= http://www.mega-nerd.com/libsndfile/ |
30 COMPONENT_PROJECT_URL= http://www.mega-nerd.com/libsndfile/ |
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
31 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
30 COMPONENT_ARCHIVE_HASH= \ |
32 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:54c9c375598538263395a691f9b30987a2faa3d8a166d27e6a09ba4700223d4d |
33 sha256:1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9 |
32 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) |
33 COMPONENT_BUGDB= library/libsndfile |
35 COMPONENT_BUGDB= library/libsndfile |
34 |
36 |
35 TPNO= 8890 |
37 TPNO= 34734 |
36 |
38 |
37 include $(WS_MAKE_RULES)/prep.mk |
39 include $(WS_MAKE_RULES)/prep.mk |
38 include $(WS_MAKE_RULES)/configure.mk |
40 include $(WS_MAKE_RULES)/configure.mk |
39 include $(WS_MAKE_RULES)/ips.mk |
41 include $(WS_MAKE_RULES)/ips.mk |
40 |
42 |
41 # Needed for __func__ in cpp_test.cc |
43 # Needed to get tests/header_test.c to compile successfully on SPARC. |
42 CXXFLAGS += $(studio_FEATURES_EXTENSIONS) |
44 gcc_XREGS.sparc= -mapp-regs |
43 CFLAGS += $(studio_PIC) |
|
44 |
45 |
45 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
46 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
46 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
47 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
47 |
48 |
48 # common targets |
49 # Get correct libsndfile.so.1 from the proto area. |
|
50 TEST_LIBPATH.32 = $(PROTOUSRLIBDIR) |
|
51 TEST_LIBPATH.64 = $(PROTOUSRLIBDIR64) |
|
52 COMPONENT_TEST_ENV += LD_LIBRARY_PATH=$(TEST_LIBPATH.$(BITS)) |
|
53 |
|
54 # Need to use GNU sed otherwise we get a: |
|
55 # Error : sfversion <version> and PACKAGE_VERSION <version> don't match." |
|
56 # failure from the test_wrapper.sh script. |
|
57 COMPONENT_TEST_ENV += PATH="$(GNUBIN):$(PATH)" |
|
58 |
49 build: $(BUILD_32_and_64) |
59 build: $(BUILD_32_and_64) |
50 |
60 |
51 install: $(INSTALL_32_and_64) |
61 install: $(INSTALL_32_and_64) |
52 |
62 |
53 test: $(TEST_32_and_64) |
63 test: install $(TEST_32_and_64) |
54 |
64 |
55 |
65 |
56 REQUIRED_PACKAGES += codec/flac |
66 REQUIRED_PACKAGES += codec/flac |
57 REQUIRED_PACKAGES += codec/ogg-vorbis |
67 REQUIRED_PACKAGES += codec/ogg-vorbis |
58 REQUIRED_PACKAGES += database/sqlite-3 |
68 REQUIRED_PACKAGES += database/sqlite-3 |
59 REQUIRED_PACKAGES += system/library |
69 REQUIRED_PACKAGES += system/library |
|
70 REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime |
60 REQUIRED_PACKAGES += system/library/math |
71 REQUIRED_PACKAGES += system/library/math |