add symbols-nerd fonts
[oi-userland.git] / components / web / haproxy / Makefile
blobe145905eca51c7f00fa2965dcb19a4187011b4c8
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.
12 # Copyright 2016 EveryCity Ltd. All rights reserved.
13 # Copyright 2016 Adam Stevko. All rights reserved.
14 # Copyright 2022 Niklas Poslovski
15 # Copyright 2024 Goetz Fischer, R-A-C. All rights reserved.
18 BUILD_STYLE= justmake
20 include ../../../make-rules/shared-macros.mk
22 COMPONENT_NAME= haproxy
23 COMPONENT_FMRI= web/loadbalancer/haproxy
24 COMPONENT_VERSION_MJR= 2.8
25 COMPONENT_VERSION_MNR= 12
26 COMPONENT_VERSION= $(COMPONENT_VERSION_MJR).$(COMPONENT_VERSION_MNR)
27 COMPONENT_SUMMARY= A reliable, high performance TCP/HTTP load balancer
28 COMPONENT_PROJECT_URL= https://www.haproxy.org/
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
31 COMPONENT_ARCHIVE_HASH= sha256:16c16c1d7ba6793c89a8fae7f20c595d19497bb18d75fedd9f2db77741b1fa75
32 COMPONENT_ARCHIVE_URL= https://www.haproxy.org/download/$(COMPONENT_VERSION_MJR)/src/$(COMPONENT_ARCHIVE)
33 COMPONENT_CLASSIFICATION= System/Services
34 COMPONENT_LICENSE= HAPROXY
35 COMPONENT_LICENSE_FILE= LICENSE
37 TEST_TARGET= $(NO_TESTS)
38 include $(WS_MAKE_RULES)/common.mk
40 LDFLAGS += -L$(OPENSSL_LIBDIR)
42 COMPONENT_PRE_BUILD_ACTION += $(CLONEY) $(SOURCE_DIR) $(@D)
44 COMPONENT_BUILD_ARGS += CC="$(CC)"
45 COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
46 COMPONENT_BUILD_ARGS += PREFIX="$(USRDIR)"
47 COMPONENT_BUILD_ARGS += SBINDIR="$(USRSBINDIR)"
48 COMPONENT_BUILD_ARGS += DOCDIR="$(USRDIR)/share/doc/haproxy"
49 COMPONENT_BUILD_ARGS += TARGET=solaris
50 COMPONENT_BUILD_ARGS += USE_OPENSSL=1
51 COMPONENT_BUILD_ARGS += USE_ZLIB=1
52 COMPONENT_BUILD_ARGS += USE_PCRE=1
53 COMPONENT_BUILD_ARGS += USE_REGPARM=1
54 COMPONENT_BUILD_ARGS += USE_PCRE_JIT=1
55 COMPONENT_BUILD_ARGS += PCRE_INC="$(USRINCDIR)/pcre"
56 COMPONENT_BUILD_ARGS += USE_LUA=1
57 COMPONENT_BUILD_ARGS += LUA_LIB_NAME=lua5.4
58 COMPONENT_BUILD_ARGS += LUA_INC="$(USRINCDIR)/lua5.4"
59 COMPONENT_BUILD_ARGS += ARCH=64
60 COMPONENT_BUILD_ARGS += SSL_INC="$(OPENSSL_INCDIR)"
61 COMPONENT_BUILD_ARGS += V=1
63 ifeq ($(strip $(MACH)),i386)
64 COMPONENT_BUILD_ARGS += CPU=x86_64
65 else
66 COMPONENT_BUILD_ARGS += CPU=ultrasparc
67 endif
69 COMPONENT_INSTALL_ARGS += $(COMPONENT_BUILD_ARGS)
71 COMPONENT_POST_INSTALL_ACTION += ( \
72 cd $(@D) && \
73 $(GMAKE) $(COMPONENT_BUILD_ARGS) admin/halog/halog && \
74 $(CP) admin/halog/halog $(PROTOUSRSBINDIR) && \
75 $(STRIP) $(PROTOUSRSBINDIR)/haproxy )
77 # Auto-generated dependencies
78 REQUIRED_PACKAGES += $(OPENSSL_PKG)
79 REQUIRED_PACKAGES += SUNWcs
80 REQUIRED_PACKAGES += library/pcre
81 REQUIRED_PACKAGES += library/zlib
82 REQUIRED_PACKAGES += runtime/lua-54
83 REQUIRED_PACKAGES += shell/ksh93
84 REQUIRED_PACKAGES += system/library
85 REQUIRED_PACKAGES += system/library/math