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.
16 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_VERSION
= 1.4.3
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
39 CONFIGURE_OPTIONS
+= --enable-sse
41 CONFIGURE_OPTIONS
+= --enable-asm-optimizations
43 CONFIGURE_OPTIONS
+= --disable-asm-optimizations
46 CONFIGURE_OPTIONS
+= --disable-sse
47 CONFIGURE_OPTIONS
+= --disable-asm-optimizations
50 # Note that the test needed to be run with standard user privileges.
51 COMPONENT_TEST_TRANSFORMS
= \
53 ' -e "/unit test/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