shared-macros.mk: simplify java settings
[oi-userland.git] / components / web / ejabberd / Makefile
blobd952d2a35ed0d9c42ace50dcfd8bf02813cc4640
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2021 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
25 # Copyright 2022 Niklas Poslovski
26 # Copyright 2024 Goetz Fischer, R-A-C. All rights reserved.
29 BUILD_BITS= 64
30 USE_PARALLEL_BUILD= yes
31 include ../../../make-rules/shared-macros.mk
33 COMPONENT_NAME= ejabberd
34 COMPONENT_VERSION= 24.2
35 HUMAN_VERSION= 24.02
36 COMPONENT_SUMMARY= ejabberd - Jabber/XMPP instant messaging server
37 COMPONENT_PROJECT_URL= https://www.ejabberd.im/
38 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
39 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
40 COMPONENT_ARCHIVE_HASH= sha256:b6d48d3bf2bef368e9321e35436381c86d78444b9042649c6c4aab0089395c07
41 COMPONENT_ARCHIVE_URL= https://static.process-one.net/ejabberd/downloads/$(HUMAN_VERSION)/ejabberd-$(HUMAN_VERSION).tar.gz
42 COMPONENT_FMRI= web/server/$(COMPONENT_NAME)
43 COMPONENT_CLASSIFICATION= Web Services/Communications
44 COMPONENT_LICENSE= GPLv2
45 COMPONENT_LICENSE_FILE= COPYING
47 TEST_TARGET= $(NO_TESTS)
48 include $(WS_MAKE_RULES)/common.mk
50 CXX += $(CC_BITS)
51 CFLAGS += -I$(USRINCDIR)/gd2
52 CXXFLAGS += -I$(USRINCDIR)/gd2
53 CPPFLAGS += -I$(OPENSSL_INCDIR) -I$(USRINCDIR)/gd2
54 LDFLAGS += -L$(OPENSSL_LIBDIR) -lnsl -lsocket
56 # testing these with gcc 13. can safely be omitted in doubt.
57 CFLAGS += -finline-functions -funroll-loops
58 CXXFLAGS += -finline-functions -funroll-loops -fno-exceptions -fno-rtti
60 CONFIGURE_ENV += "HOME=/tmp"
61 CONFIGURE_ENV += "CPP=$(CC) -E"
62 COMPONENT_BUILD_ENV += $(CONFIGURE_ENV)
63 COMPONENT_INSTALL_ENV += "HOME=/tmp"
65 COMPONENT_PRE_CONFIGURE_ACTION+= \
66 cd $(SOURCE_DIR); ./autogen.sh
68 COMPONENT_PRE_BUILD_ACTION+= \
69 $(CLONEY) $(SOURCE_DIR) $(@D)
71 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
72 CONFIGURE_OPTIONS += --with-erlang=$(USRBINDIR)
73 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
74 CONFIGURE_OPTIONS += --enable-odbc
75 CONFIGURE_OPTIONS += --enable-mysql
76 CONFIGURE_OPTIONS += --enable-pgsql
77 CONFIGURE_OPTIONS += --enable-sqlite
78 CONFIGURE_OPTIONS += --enable-pam
79 CONFIGURE_OPTIONS += --enable-redis
80 CONFIGURE_OPTIONS += --enable-new-sql-schema
81 CONFIGURE_OPTIONS += --enable-sip
82 CONFIGURE_OPTIONS += --enable-tools
84 CONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/bin
86 COMPONENT_BUILD_TARGETS = all
88 # Manually added build dependencies
89 REQUIRED_PACKAGES += runtime/erlang
91 # Auto-generated dependencies
92 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
93 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
94 REQUIRED_PACKAGES += SUNWcs
95 REQUIRED_PACKAGES += database/sqlite-3
96 REQUIRED_PACKAGES += library/expat
97 REQUIRED_PACKAGES += library/libyaml
98 REQUIRED_PACKAGES += library/security/openssl-31
99 REQUIRED_PACKAGES += shell/ksh93
100 REQUIRED_PACKAGES += system/library