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