rebuild gst-plugins-good1 for libvpx-1.15.0; fix gcc-14 problem
[oi-userland.git] / components / multimedia / flac / Makefile
blob3105eb20f67b8e9a3c07baac5f69399f76d47656
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2014 (c) Aurelien Larcher. All rights reserved.
15 BUILD_BITS= 64_and_32
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= flac
19 COMPONENT_VERSION= 1.4.3
20 COMPONENT_REVISION= 2
21 COMPONENT_SUMMARY= An Open Source Lossless Audio Codec
22 COMPONENT_PROJECT_URL= https://xiph.org/flac
23 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
25 COMPONENT_ARCHIVE_HASH= sha256:6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70
26 COMPONENT_ARCHIVE_URL= https://downloads.us.xiph.org/releases/flac/$(COMPONENT_ARCHIVE)
27 COMPONENT_FMRI= codec/flac
28 COMPONENT_CLASSIFICATION= System/Multimedia Libraries
29 COMPONENT_LICENSE= Xiph.org BSD-style, binaries & media player plugins also use GPL v2, LGPL v2.1, documentation uses FDL v1.2
31 include $(WS_MAKE_RULES)/common.mk
33 CXXFLAGS += -fstack-protector-all
35 #CONFIGURE_OPTIONS += --disable-static
36 CONFIGURE_OPTIONS += --enable-ogg
38 ifeq ($(MACH), i386)
39 CONFIGURE_OPTIONS += --enable-sse
40 ifeq ($(BITS), 32)
41 CONFIGURE_OPTIONS += --enable-asm-optimizations
42 else
43 CONFIGURE_OPTIONS += --disable-asm-optimizations
44 endif
45 else
46 CONFIGURE_OPTIONS += --disable-sse
47 CONFIGURE_OPTIONS += --disable-asm-optimizations
48 endif
50 # Note that the test needed to be run with standard user privileges.
51 COMPONENT_TEST_TRANSFORMS = \
52 ' -n ' \
53 ' -e "/unit test/p" ' \
54 ' -e "/---/p" ' \
55 ' -e "/passed/p" ' \
56 ' -e "/+++/p" ' \
57 ' -e "/PASSED/p" '
59 # Auto-generated dependencies
60 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
61 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
62 REQUIRED_PACKAGES += library/libogg
63 REQUIRED_PACKAGES += system/library
64 REQUIRED_PACKAGES += system/library/math