libreoffice: update to 25.2.0.3
[oi-userland.git] / components / multimedia / spandsp / Makefile
blob35f6a4083ad9abf0ab8108c33e276bc9b607c694
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
5 # 1.0 of the CDDL.
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
19 COMPONENT_REVISION= 3
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 \
24 or DTMF touchpad.
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= ( \
40 cd $(SOURCE_DIR); \
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; \
46 ./bootstrap.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
58 endif
60 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS)
61 CXXFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CXXFLAGS)
62 LDFLAGS += $(JPEG_LDFLAGS)
63 CONFIGURE_ENV += CPPFLAGS="$(JPEG_CPPFLAGS)"
65 # Build dependencies
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