shared-macros.mk: simplify java settings
[oi-userland.git] / components / sysutils / c_icap / Makefile
blob9207c1399cb4ad162e6b900f11e5697900e3069d
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
11 # Copyright 2022,2023 Friedrich Kink. All rights reserved.
14 include ../../../make-rules/shared-macros.mk
16 COMPONENT_NAME= c_icap
17 COMPONENT_VERSION= 0.6.3
18 COMPONENT_SUMMARY= The c-icap project
19 COMPONENT_DESCRIPTION= c-icap is an implementation of an ICAP server. It can be \
20 used with HTTP proxies that support the ICAP protocol to \
21 implement content adaptation and filtering services. \
22 Most of the commercial HTTP proxies must support the ICAP \
23 protocol. The open source Squid 3.x proxy server supports it.
24 COMPONENT_SRC= c-icap-server-C_ICAP_$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= C_ICAP_$(COMPONENT_VERSION).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:96400a52a531aa9a425ac3e30e738937dbbbdd3316a057965ef30dd1dea9c40f
27 COMPONENT_PROJECT_URL= https://c-icap.sourceforge.net/
28 COMPONENT_ARCHIVE_URL= https://github.com/c-icap/c-icap-server/archive/refs/tags/$(COMPONENT_ARCHIVE)
29 COMPONENT_FMRI= antivirus/$(COMPONENT_NAME)
30 COMPONENT_CLASSIFICATION= Applications/System Utilities
31 COMPONENT_LICENSE= GPLv2
32 COMPONENT_LICENSE_FILE= COPYING
34 TEST_TARGET= $(NO_TESTS)
35 include $(WS_MAKE_RULES)/common.mk
37 CXXFLAGS += -std=c++11
39 # Provide location for openssl 3.1 headers/libraries
40 CFLAGS += -I$(OPENSSL_INCDIR)
41 LDFLAGS += -L$(OPENSSL_LIBDIR)
43 COMPONENT_PREP_ACTION= ( cd $(@D) && PATH="$(PATH)" autoreconf -f -i -v -W all )
45 CONFIGURE_OPTIONS += CPPFLAGS=-I/usr/include/openldap
46 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
47 CONFIGURE_OPTIONS += --disable-dependency-tracking
49 # Auto-generated dependencies
50 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
51 REQUIRED_PACKAGES += $(OPENSSL_PKG)
52 REQUIRED_PACKAGES += compress/bzip2
53 REQUIRED_PACKAGES += compress/zstd
54 REQUIRED_PACKAGES += database/berkeleydb-5
55 REQUIRED_PACKAGES += database/lmdb
56 REQUIRED_PACKAGES += library/brotli
57 REQUIRED_PACKAGES += library/libmemcached
58 REQUIRED_PACKAGES += library/openldap
59 REQUIRED_PACKAGES += library/zlib
60 REQUIRED_PACKAGES += shell/ksh93
61 REQUIRED_PACKAGES += system/library
62 REQUIRED_PACKAGES += system/library/math