freeipmi: update to 1.6.15
[oi-userland.git] / components / library / ptlib / Makefile
bloba88a43d8799b50b2eb34b06a6b29baaa76c2ddb0
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 2016 Aurelien Larcher. All rights reserved.
15 # Copyright 2023 Friedrich Kink. All rights reserved.
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= ptlib
21 COMPONENT_VERSION= 2.16.2
22 COMPONENT_REVISION= 2
23 COMPONENT_SUMMARY= PTLib Class Library
24 COMPONENT_PROJECT_URL = https://sourceforge.net/projects/opalvoip/
25 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
26 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
27 COMPONENT_ARCHIVE_HASH= sha256:eb444e1d72db69c8db1b9b302faa86ba4603cf310a82c934a78238e4f91405d0
28 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/V3.16%20Procyon/Stable%202/$(COMPONENT_ARCHIVE)
29 COMPONENT_FMRI= library/desktop/ptlib
30 COMPONENT_CLASSIFICATION=Desktop (GNOME)/Libraries
31 COMPONENT_LICENSE= MPLv1.0
33 TEST_TARGET= $(NO_TESTS)
34 include $(WS_MAKE_RULES)/common.mk
36 PATH= $(PATH.gnu)
38 COMPONENT_PREP_ACTION= ( cd $(@D) && aclocal && autoconf )
40 CFLAGS += -I$(OPENSSL_INCDIR)
41 LDFLAGS += -L$(OPENSSL_LIBDIR)
43 COMPONENT_BUILD_ARGS += VERBOSE=1
45 # Missing files in build dir for configure without this.
46 COMPONENT_PRE_CONFIGURE_ACTION = ( CLONEY_MODE=copy $(CLONEY) $(SOURCE_DIR) $(@D) )
47 COMPONENT_POST_CONFIGURE_ACTION = ( echo "install: ; @\$$(MAKE) --file=$(SOURCE_DIR)/Makefile \$$(MAKECMDGOALS)" >> $(@D)/Makefile )
49 CONFIGURE_OPTIONS += --sysconfdir=/etc
50 CONFIGURE_OPTIONS += --enable-plugins
51 CONFIGURE_OPTIONS += --enable-resolver
52 CONFIGURE_OPTIONS += --enable-cpp11
53 CONFIGURE_OPTIONS += --enable-exceptions
54 #CONFIGURE_OPTIONS += --enable-opal
55 CONFIGURE_OPTIONS += --enable-openssl
56 CONFIGURE_OPTIONS += --enable-sunaudio
57 CONFIGURE_OPTIONS += --enable-pulse
58 CONFIGURE_OPTIONS += --enable-url
59 CONFIGURE_OPTIONS += --enable-http
60 CONFIGURE_OPTIONS += --enable-httpforms
61 CONFIGURE_OPTIONS += --enable-httpsvc
62 CONFIGURE_OPTIONS += --disable-v4l2
63 CONFIGURE_OPTIONS += --enable-v4l
64 CONFIGURE_OPTIONS += --enable-lua
65 CONFIGURE_OPTIONS += PKG_CONFIG_PATH=/usr/lib/$(MACH64)/pkgconfig
66 CONFIGURE_OPTIONS += OPENLDAP_LIBS="-llber-2.6 -lldap-2.6"
67 CONFIGURE_OPTIONS += OPENLDAP_CFLAGS="-I/usr/include/openldap"
68 # to ensure gstreamer-1.0
69 CONFIGURE_OPTIONS += GSTREAMER_LIBS="-lgstreamer-1.0 -lgobject-2.0 -lglib-2.0"
70 CONFIGURE_OPTIONS += GSTREAMER_CFLAGS="-pthread -DFFI_NO_RAW_API -I/usr/include/gstreamer-1.0 -I/usr/lib/amd64/libffi-3.2.1/include -I/usr/include/glib-2.0 -I/usr/lib/amd64/glib-2.0/include -I/usr/include/pcre"
72 ENV += -i
74 # Auto-generated dependencies
75 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
76 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
77 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
78 REQUIRED_PACKAGES += $(OPENSSL_PKG)
79 REQUIRED_PACKAGES += library/audio/gstreamer1
80 REQUIRED_PACKAGES += library/audio/pulseaudio
81 REQUIRED_PACKAGES += library/expat
82 REQUIRED_PACKAGES += library/glib2
83 REQUIRED_PACKAGES += library/ncurses
84 REQUIRED_PACKAGES += library/openldap
85 REQUIRED_PACKAGES += library/sdl
86 REQUIRED_PACKAGES += library/unixodbc
87 REQUIRED_PACKAGES += runtime/lua
88 REQUIRED_PACKAGES += system/library
89 REQUIRED_PACKAGES += system/library/libpcap
90 REQUIRED_PACKAGES += system/library/math
91 REQUIRED_PACKAGES += system/library/security/libsasl