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 |
# |
dec49b
|
14 |
include ../../../make-rules/shared-macros.mk |
6f765f
|
15 |
|
AL |
16 |
COMPONENT_NAME= flac |
dd6ec9
|
17 |
COMPONENT_VERSION= 1.3.2 |
15b8fe
|
18 |
COMPONENT_REVISION= 1 |
6f765f
|
19 |
COMPONENT_FMRI= codec/flac |
5e23ca
|
20 |
COMPONENT_CLASSIFICATION=System/Multimedia Libraries |
6f765f
|
21 |
COMPONENT_PROJECT_URL= http://flac.sourceforge.net/ |
AL |
22 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
23 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
|
24 |
COMPONENT_ARCHIVE_HASH= \ |
dd6ec9
|
25 |
sha256:91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f |
AL |
26 |
COMPONENT_ARCHIVE_URL=\ |
|
27 |
http://downloads.us.xiph.org/releases/flac/$(COMPONENT_ARCHIVE) |
6f765f
|
28 |
COMPONENT_BUGDB= $(COMPONENT_FMRI) |
AL |
29 |
COMPONENT_LICENSE= Xiph.org BSD-style, binaries & media player plugins also use GPL v2, LGPL v2.1, documentation uses FDL v1.2 |
|
30 |
COMPONENT_SUMMARY= An Open Source Lossless Audio Codec |
|
31 |
|
|
32 |
include $(WS_MAKE_RULES)/prep.mk |
|
33 |
include $(WS_MAKE_RULES)/configure.mk |
|
34 |
include $(WS_MAKE_RULES)/ips.mk |
|
35 |
|
|
36 |
CONFIGURE_OPTIONS += --disable-static |
|
37 |
CONFIGURE_OPTIONS += --enable-shared |
|
38 |
CONFIGURE_OPTIONS += --disable-xmms-plugin |
|
39 |
ifeq ($(MACH), i386) |
|
40 |
CONFIGURE_OPTIONS += --enable-sse |
|
41 |
ifeq ($(BITS), 32) |
|
42 |
CONFIGURE_OPTIONS += --enable-asm-optimizations |
|
43 |
else |
|
44 |
CONFIGURE_OPTIONS += --disable-asm-optimizations |
|
45 |
endif |
|
46 |
else |
|
47 |
CONFIGURE_OPTIONS += --disable-sse |
|
48 |
CONFIGURE_OPTIONS += --disable-asm-optimizations |
|
49 |
endif |
|
50 |
CONFIGURE_OPTIONS += --disable-altivec |
|
51 |
|
|
52 |
# common targets |
|
53 |
build: $(BUILD_32_and_64) |
|
54 |
|
|
55 |
install: $(INSTALL_32_and_64) |
|
56 |
|
dd6ec9
|
57 |
# Auto-generated dependencies |
AL |
58 |
REQUIRED_PACKAGES += library/libogg |
|
59 |
REQUIRED_PACKAGES += system/library |
f5010f
|
60 |
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG) |
969846
|
61 |
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG) |
dd6ec9
|
62 |
REQUIRED_PACKAGES += system/library/math |