haproxy: add value ultrasparc to CPU variable
[oi-userland.git] / components / web / haproxy / Makefile
blob0bbbc6f5289ef1c212cf39ce76ff157c9d63f584
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
17 BUILD_STYLE= justmake
18 USE_OPENSSL11= yes
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= haproxy
22 COMPONENT_FMRI= web/loadbalancer/haproxy
23 COMPONENT_VERSION_MJR= 2.7
24 COMPONENT_VERSION_MNR= 4
25 COMPONENT_REVISION= 1
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:84cb806030569e866812eed38ebd1a8ea6fe1d9800001e59924ec3dd39553b9f
32 COMPONENT_ARCHIVE_URL= https://haproxy.org/download/$(COMPONENT_VERSION_MJR)/src/$(COMPONENT_ARCHIVE)
33 COMPONENT_CLASSIFICATION= System/Services
34 COMPONENT_LICENSE= HAPROXY
36 TEST_TARGET= $(NO_TESTS)
37 include $(WS_MAKE_RULES)/common.mk
39 CFLAGS += -I$(OPENSSL_INCDIR)
40 LDFLAGS += -L$(OPENSSL_LIBDIR)
42 COMPONENT_PRE_BUILD_ACTION += $(CLONEY) $(SOURCE_DIR) $(@D)
44 COMPONENT_BUILD_ARGS += CC="$(CC)"
45 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS) $(CPP_XPG6MODE)"
46 COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
48 COMPONENT_BUILD_ARGS += PREFIX="$(USRDIR)"
49 COMPONENT_BUILD_ARGS += SBINDIR="$(USRSBINDIR)"
50 COMPONENT_BUILD_ARGS += DOCDIR="$(USRDIR)/share/doc/haproxy"
51 COMPONENT_BUILD_ARGS += TARGET=solaris
52 COMPONENT_BUILD_ARGS += USE_OPENSSL=1
53 COMPONENT_BUILD_ARGS += USE_ZLIB=1
54 COMPONENT_BUILD_ARGS += USE_PCRE=1
55 COMPONENT_BUILD_ARGS += USE_REGPARM=1
56 COMPONENT_BUILD_ARGS += USE_PCRE_JIT=1
57 COMPONENT_BUILD_ARGS += PCRE_INC="$(USRINCDIR)/pcre"
58 COMPONENT_BUILD_ARGS += USE_LUA=1
59 COMPONENT_BUILD_ARGS += LUA_LIB_NAME=lua5.3
60 COMPONENT_BUILD_ARGS += LUA_INC="$(USRINCDIR)/lua5.3"
61 COMPONENT_BUILD_ARGS += ARCH=64
62 ifeq ($(strip $(MACH)),i386)
63 COMPONENT_BUILD_ARGS += CPU=x86_64
64 else
65 COMPONENT_BUILD_ARGS += CPU=ultrasparc
66 endif
68 COMPONENT_INSTALL_ARGS += $(COMPONENT_BUILD_ARGS)
70 COMPONENT_POST_INSTALL_ACTION += ( \
71 cd $(@D) && \
72 $(GMAKE) $(COMPONENT_BUILD_ARGS) admin/halog/halog && \
73 $(CP) admin/halog/halog $(PROTOUSRSBINDIR) )
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES += SUNWcs
77 REQUIRED_PACKAGES += library/pcre
78 REQUIRED_PACKAGES += library/security/openssl-11
79 REQUIRED_PACKAGES += library/zlib
80 REQUIRED_PACKAGES += runtime/lua-53
81 REQUIRED_PACKAGES += shell/ksh93
82 REQUIRED_PACKAGES += system/library
83 REQUIRED_PACKAGES += system/library/math