commit | author | age
|
6f765f
|
1 |
# |
AL |
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. |
|
5 |
# |
|
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. |
|
9 |
# |
|
10 |
|
|
11 |
# |
|
12 |
# Copyright 2014 (c) Aurelien Larcher. All rights reserved. |
|
13 |
# |
70d2c4
|
14 |
|
00eae3
|
15 |
BUILD_BITS= 64_and_32 |
dec49b
|
16 |
include ../../../make-rules/shared-macros.mk |
6f765f
|
17 |
|
AL |
18 |
COMPONENT_NAME= flac |
6d2490
|
19 |
COMPONENT_VERSION= 1.4.3 |
0d5c05
|
20 |
COMPONENT_REVISION= 2 |
70d2c4
|
21 |
COMPONENT_SUMMARY= An Open Source Lossless Audio Codec |
00eae3
|
22 |
COMPONENT_PROJECT_URL= https://xiph.org/flac |
6f765f
|
23 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
AL |
24 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
6d2490
|
25 |
COMPONENT_ARCHIVE_HASH= sha256:6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70 |
70d2c4
|
26 |
COMPONENT_ARCHIVE_URL= https://downloads.us.xiph.org/releases/flac/$(COMPONENT_ARCHIVE) |
AW |
27 |
COMPONENT_FMRI= codec/flac |
|
28 |
COMPONENT_CLASSIFICATION= System/Multimedia Libraries |
6f765f
|
29 |
COMPONENT_LICENSE= Xiph.org BSD-style, binaries & media player plugins also use GPL v2, LGPL v2.1, documentation uses FDL v1.2 |
AL |
30 |
|
c15519
|
31 |
include $(WS_MAKE_RULES)/common.mk |
6f765f
|
32 |
|
00eae3
|
33 |
CXXFLAGS += -fstack-protector-all |
6f765f
|
34 |
|
00eae3
|
35 |
#CONFIGURE_OPTIONS += --disable-static |
AW |
36 |
CONFIGURE_OPTIONS += --enable-ogg |
|
37 |
|
|
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 |
|
49 |
|
6d2490
|
50 |
# Note that the test needed to be run with standard user privileges. |
00eae3
|
51 |
COMPONENT_TEST_TRANSFORMS = \ |
AW |
52 |
' -n ' \ |
|
53 |
' -e "/unit test/p" ' \ |
|
54 |
' -e "/---/p" ' \ |
|
55 |
' -e "/passed/p" ' \ |
|
56 |
' -e "/+++/p" ' \ |
|
57 |
' -e "/PASSED/p" ' |
6f765f
|
58 |
|
dd6ec9
|
59 |
# Auto-generated dependencies |
c15519
|
60 |
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) |
AW |
61 |
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG) |
dd6ec9
|
62 |
REQUIRED_PACKAGES += library/libogg |
AL |
63 |
REQUIRED_PACKAGES += system/library |
|
64 |
REQUIRED_PACKAGES += system/library/math |