2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2022 Friedrich Kink
15 include ..
/..
/..
/make-rules
/shared-macros.mk
17 COMPONENT_NAME
= spandsp
18 COMPONENT_VERSION
= 3.0.0
20 COMPONENT_SUMMARY
= A DSP library for telephony
21 COMPONENT_DESCRIPTION
= \
22 SpanDSP is a low-level signal processing library that modulates and demodulates \
23 signals commonly used in telephony
, such
as the
"noise" generated by a fax modem \
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-master
26 COMPONENT_ARCHIVE
= master.zip
27 COMPONENT_ARCHIVE_HASH
= sha256
:fdee8fbba0b471500928cd88207a96e1eb89bbca6b518249cf58c11b767de2a1
28 COMPONENT_PROJECT_URL
= https
://github.com
/freeswitch
/spandsp
29 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/archive
/refs
/heads
/$(COMPONENT_ARCHIVE
)
30 COMPONENT_CLASSIFICATION
= System
/Multimedia Libraries
31 COMPONENT_FMRI
= library
/$(COMPONENT_NAME
)
32 COMPONENT_LICENSE
= LPGPLv2.1
33 COMPONENT_LICENSE_FILE
= COPYING
35 TEST_TARGET
= $(NO_TESTS
)
37 include $(WS_MAKE_RULES
)/common.mk
39 COMPONENT_PRE_CONFIGURE_ACTION
= ( \
41 $(GSED
) -i
-e
'/^elif/d' autogen.sh
; \
42 $(GSED
) -i
-e
'/^else/d' autogen.sh
; \
43 $(GSED
) -i
-e
'/ libtoolize/d' autogen.sh
; \
44 $(GSED
) -i
-e
'/ automake/d' autogen.sh
; \
45 $(GSED
) -i
-e
'/ autoconf/d' autogen.sh
; \
47 $(CLONEY
) $(SOURCE_DIR
) $(@D
); \
50 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
51 CONFIGURE_OPTIONS
+= --localstatedir
=/var
52 CONFIGURE_OPTIONS
+= --enable-static
=no
53 ifeq ($(strip $(MACH
)),i386
)
54 CONFIGURE_OPTIONS
+= --enable-mmx
55 CONFIGURE_OPTIONS
+= --enable-sse
56 CONFIGURE_OPTIONS
+= --enable-sse2
57 CONFIGURE_OPTIONS
+= --enable-sse3
60 CFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CFLAGS
)
61 CXXFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CXXFLAGS
)
62 LDFLAGS
+= $(JPEG_LDFLAGS
)
63 CONFIGURE_ENV
+= CPPFLAGS
="$(JPEG_CPPFLAGS)"
66 REQUIRED_PACKAGES
+= developer
/build
/libtool
68 # Auto-generated dependencies
69 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
70 REQUIRED_PACKAGES
+= image
/library
/libtiff
71 REQUIRED_PACKAGES
+= system
/library
72 REQUIRED_PACKAGES
+= system
/library
/math