jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / opal / Makefile
blob2b82d9e925459464971ba35d354ee4971dcb3d30
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 2014 Alexander Pyhalov. All rights reserved.
14 # Copyright 2023 Friedrich Kink. All rights reserved.
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= opal
20 COMPONENT_VERSION= 3.16.2
21 COMPONENT_REVISION= 1
22 COMPONENT_SUMMARY= OPAL - Open Phone Abstraction Library
23 COMPONENT_PROJECT_URL = http://www.gnome.org
24 COMPONENT_FMRI= library/libopal
25 COMPONENT_CLASSIFICATION=Desktop (GNOME)/Libraries
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
28 COMPONENT_ARCHIVE_HASH= \
29 sha256:9225e881e7a450d39f739be7db97d0b1f845c754afdc2f26d8ebdbd5799dd3ed
30 COMPONENT_ARCHIVE_URL= \
31 https://sourceforge.net/projects/opalvoip/files/V3.16%20Procyon/Stable%202/$(COMPONENT_ARCHIVE)
32 COMPONENT_LICENSE= MPLv1.0
34 TEST_TARGET= $(NO_TESTS)
35 include $(WS_MAKE_RULES)/common.mk
37 PATH= $(PATH.gnu)
39 COMPONENT_BUILD_ARGS += VERBOSE=1
41 OPAL_FFMPEG_PATCH = \
42 $(GSED) -e '/<< mime.PrintContents/ s/mime/(const std::string\&)&/' -i src/im/msrp.cxx
44 COMPONENT_PREP_ACTION=( cd $(@D)/plugins && aclocal && autoconf && \
45 cd $(@D) && aclocal && autoconf && $(OPAL_FFMPEG_PATCH) )
47 # Missing files in build dir for configure without this.
48 COMPONENT_PRE_CONFIGURE_ACTION = ( CLONEY_MODE=copy $(CLONEY) $(SOURCE_DIR) $(@D) )
50 COMPONENT_POST_CONFIGURE_ACTION = ( \
51 echo "install: ; @\$$(MAKE) --file=$(SOURCE_DIR)/Makefile \$$(MAKECMDGOALS)" >> $(@D)/Makefile )
53 CONFIGURE_OPTIONS += --sysconfdir=/etc
54 CONFIGURE_OPTIONS += --disable-srtp
55 CONFIGURE_OPTIONS += --disable-spandsp
56 CONFIGURE_OPTIONS += --disable-libavutil
57 CONFIGURE_OPTIONS += --enable-localsrtp
58 CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
60 # opal comes with SILK SDK, which has own build system
61 COMPONENT_BUILD_ENV += SILK_CC="$(CC)"
62 COMPONENT_BUILD_ENV += SILK_CFLAGS="$(CFLAGS)"
63 COMPONENT_BUILD_ENV += SILK_LDFLAGS="$(LDFLAGS)"
65 # Auto-generated dependencies
66 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
67 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
68 REQUIRED_PACKAGES += codec/libtheora
69 REQUIRED_PACKAGES += codec/speex
70 REQUIRED_PACKAGES += library/desktop/ptlib
71 REQUIRED_PACKAGES += library/opus
72 REQUIRED_PACKAGES += library/speexdsp
73 REQUIRED_PACKAGES += library/video/libvpx
74 REQUIRED_PACKAGES += system/library
75 REQUIRED_PACKAGES += system/library/math