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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# -*-makefile-*-
#
# Copyright (C) 2013 by Michael Olbrich <m.olbrich@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_OPUS) += opus
#
# Paths and names
#
OPUS_VERSION := 1.5.1
OPUS_MD5 := 06c0e626ea3ad72f7b006e9130c8b15d
OPUS := opus-$(OPUS_VERSION)
OPUS_SUFFIX := tar.gz
OPUS_URL := http://downloads.xiph.org/releases/opus/$(OPUS).$(OPUS_SUFFIX)
OPUS_SOURCE := $(SRCDIR)/$(OPUS).$(OPUS_SUFFIX)
OPUS_DIR := $(BUILDDIR)/$(OPUS)
OPUS_LICENSE := BSD-3-Clause
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
OPUS_INTRINSICS := y
ifdef PTXCONF_ARCH_PPC
OPUS_INTRINSICS :=
endif
ifdef PTXCONF_ARCH_ARM
ifndef PTXCONF_ARCH_ARM_NEON
OPUS_INTRINSICS :=
endif
endif
ifeq ($(OPUS_INTRINSICS),)
OPUS_ASM := y
endif
ifdef PTXCONF_ARCH_PPC
OPUS_ASM :=
endif
OPUS_RTCD := $(if $(OPUS_INTRINSICS)$(OPUS_ASM),y)
OPUS_CONF_TOOL := meson
OPUS_CONF_OPT := \
$(CROSS_MESON_USR) \
-Dasm=$(call ptx/endis, OPUS_ASM)d \
-Dassertions=false \
-Dcheck-asm=false \
-Dcustom-modes=false \
-Ddocdir=doc/opus \
-Ddocs=disabled \
-Denable-deep-plc=$(call ptx/truefalse, PTXCONF_OPUS_DEEP_PLC) \
-Denable-dnn-debug-float=false \
-Denable-dred=false \
-Denable-osce=$(call ptx/truefalse, PTXCONF_OPUS_OSCE) \
-Dextra-programs=disabled \
-Dfixed-point=$(call ptx/falsetrue, PTXCONF_HAS_HARDFLOAT) \
-Dfixed-point-debug=false \
-Dfloat-api=true \
-Dfloat-approx=true \
-Dfuzzing=false \
-Dhardening=true \
-Dintrinsics=$(call ptx/endis, OPUS_INTRINSICS)d \
-Drtcd=$(call ptx/endis, OPUS_RTCD)d \
-Dtests=disabled
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/opus.targetinstall:
@$(call targetinfo)
@$(call install_init, opus)
@$(call install_fixup, opus,PRIORITY,optional)
@$(call install_fixup, opus,SECTION,base)
@$(call install_fixup, opus,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
@$(call install_fixup, opus,DESCRIPTION,missing)
@$(call install_lib, opus, 0, 0, 0644, libopus)
@$(call install_finish, opus)
@$(call touch)
# vim: syntax=make
|