socat: update to 1.8.0.0; switch to openssl 3.1
[oi-userland.git] / components / network / socat / Makefile
blob674bb6d373d837a7698796aa841da59c6528099f
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 (c) 2012, Adam Stevko <adam.stevko@gmail.com>
13 # Copyright (c) 2018, Michal Nowak
16 OPENSSL_VERSION= 3.1
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= socat
21 COMPONENT_VERSION= 1.8.0.0
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
24 COMPONENT_ARCHIVE_HASH= sha256:e1de683dd22ee0e3a6c6bbff269abe18ab0c9d7eb650204f125155b9005faca7
25 COMPONENT_PROJECT_URL= http://www.dest-unreach.org/socat/
26 COMPONENT_ARCHIVE_URL= http://www.dest-unreach.org/socat/download/$(COMPONENT_ARCHIVE)
28 include $(WS_TOP)/make-rules/common.mk
30 LDFLAGS+= -L$(OPENSSL_LIBDIR)
32 CONFIGURE_OPTIONS+= --enable-openssl_base=$(OPENSSL_PREFIX)
34 # For the test target
35 COMPONENT_PRE_CONFIGURE_ACTION = \
36 ($(CLONEY) $(SOURCE_DIR) $(@D))
38 COMPONENT_TEST_TARGETS= test
40 # Disable colors in test output
41 COMPONENT_TEST_ENV += TERM=
43 COMPONENT_TEST_TRANSFORMS= \
44 '-ne "s/\.\.\. .* OK/\.\.\. OK/"' \
45 '-ne "s/\.\.\. .* NO RESULT/\.\.\. NO RESULT/"' \
46 '-ne "s/\.\.\. .* timed out/\.\.\. timed out/"' \
47 '-ne "/^test/p"' \
48 '-ne "/^summary/p"' \
49 '-ne "/^FAILED/p"'
51 # Auto-generated dependencies
52 REQUIRED_PACKAGES += $(OPENSSL_PKG)
53 REQUIRED_PACKAGES += $(READLINE_PKG)
54 REQUIRED_PACKAGES += SUNWcs
55 REQUIRED_PACKAGES += system/library