vim: update to 9.1.0984
[oi-userland.git] / components / library / libsndfile / Makefile
blob1a6ec49c2d871565f1c971074560fcf34a9ad689
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 USE_COMMON_TEST_MASTER= no
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= libsndfile
29 COMPONENT_VERSION= 1.2.2
30 COMPONENT_REVISION= 2
31 COMPONENT_SUMMARY= libsndfile - a library for reading/writing sound files
32 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
33 COMPONENT_PROJECT_URL= https://libsndfile.github.io/libsndfile/
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
35 COMPONENT_ARCHIVE_HASH= sha256:3799ca9924d3125038880367bf1468e53a1b7e3686a934f098b7e1d286cdb80e
36 COMPONENT_ARCHIVE_URL= https://github.com/libsndfile/libsndfile/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
37 COMPONENT_FMRI= library/libsndfile
38 COMPONENT_CLASSIFICATION= System/Libraries
39 COMPONENT_LICENSE= LGPL-2.1-only
40 COMPONENT_LICENSE_FILE= COPYING
42 include $(WS_MAKE_RULES)/common.mk
44 # Install Octave files
45 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -d $(PROTO_DIR)/usr/share/octave/site/m ;
46 COMPONENT_POST_INSTALL_ACTION += \
47 for f in load play save ; do \
48 $(INSTALL) $(SOURCE_DIR)/Octave/sndfile_$$f.m $(PROTO_DIR)/usr/share/octave/site/m ; \
49 done ;
51 # Normalize test results
52 COMPONENT_TEST_TRANSFORMS += "-e '/^make\[/d'" # delete make logs
53 COMPONENT_TEST_TRANSFORMS += "-n"
54 COMPONENT_TEST_TRANSFORMS += "-e '/Pedantic header test/,\$$p'" # this is the actual test report
56 # Auto-generated dependencies
57 REQUIRED_PACKAGES += audio/lame
58 REQUIRED_PACKAGES += audio/mpg123
59 REQUIRED_PACKAGES += codec/flac
60 REQUIRED_PACKAGES += library/libogg
61 REQUIRED_PACKAGES += library/libvorbis
62 REQUIRED_PACKAGES += library/opus
63 REQUIRED_PACKAGES += system/library
64 REQUIRED_PACKAGES += system/library/math