python/hypothesis: update to 6.121.0
[oi-userland.git] / components / library / libsndfile / Makefile
blob3b76e577a6ea48873524ce90397b14fae7b0a38d
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2021 Andreas Wacknitz
25 BUILD_BITS= 64_and_32
26 USE_COMMON_TEST_MASTER= no
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= libsndfile
30 COMPONENT_VERSION= 1.2.2
31 COMPONENT_REVISION= 1
32 COMPONENT_SUMMARY= libsndfile - a library for reading/writing sound files
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_PROJECT_URL= https://libsndfile.github.io/libsndfile/
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
36 COMPONENT_ARCHIVE_HASH= sha256:3799ca9924d3125038880367bf1468e53a1b7e3686a934f098b7e1d286cdb80e
37 COMPONENT_ARCHIVE_URL= https://github.com/libsndfile/libsndfile/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
38 COMPONENT_FMRI= library/libsndfile
39 COMPONENT_CLASSIFICATION= System/Libraries
40 COMPONENT_LICENSE= LGPL-2.1-only
41 COMPONENT_LICENSE_FILE= COPYING
43 include $(WS_MAKE_RULES)/common.mk
45 # Drop 32-bit binaries
46 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOUSRBINDIR32) ;
47 # Install Octave files
48 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -d $(PROTO_DIR)/usr/share/octave/site/m ;
49 COMPONENT_POST_INSTALL_ACTION += \
50 for f in load play save ; do \
51 $(INSTALL) $(SOURCE_DIR)/Octave/sndfile_$$f.m $(PROTO_DIR)/usr/share/octave/site/m ; \
52 done ;
54 # Normalize test results
55 COMPONENT_TEST_TRANSFORMS += "-e '/^make\[/d'" # delete make logs
56 COMPONENT_TEST_TRANSFORMS += "-n"
57 COMPONENT_TEST_TRANSFORMS += "-e '/Pedantic header test/,\$$p'" # this is the actual test report
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES += audio/lame
61 REQUIRED_PACKAGES += audio/mpg123
62 REQUIRED_PACKAGES += codec/flac
63 REQUIRED_PACKAGES += library/libogg
64 REQUIRED_PACKAGES += library/libvorbis
65 REQUIRED_PACKAGES += library/opus
66 REQUIRED_PACKAGES += system/library
67 REQUIRED_PACKAGES += system/library/math