jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / libproxy / Makefile
blobe3b5ce6a3b7e40e349d8b3ef7b8bf0fe6df52ecb
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright (c) 2015, 2023, Oracle and/or its affiliates.
14 # Copyright 2023 Andreas Wacknitz
17 BUILD_BITS= 64_and_32
18 BUILD_STYLE= cmake
19 USE_PARALLEL_BUILD= yes
20 USE_DEFAULT_TEST_TRANSFORMS= yes
21 USE_COMMON_TEST_MASTER= false
22 include ../../../make-rules/shared-macros.mk
24 COMPONENT_NAME= libproxy
25 COMPONENT_VERSION= 0.4.18
26 COMPONENT_REVISION= 2
27 COMPONENT_SUMMARY= Libproxy is a library that provides automatic proxy configuration management
28 COMPONENT_PROJECT_URL= https://libproxy.github.io/libproxy/
29 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
31 COMPONENT_ARCHIVE_HASH= sha256:69b5856e9ea42c38ac77e6b8c92ffc86a71d341fef74e77bef85f9cc6c47a4b1
32 COMPONENT_ARCHIVE_URL= https://github.com/libproxy/libproxy/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
33 COMPONENT_FMRI= library/libproxy
34 COMPONENT_CLASSIFICATION= System/Libraries
35 COMPONENT_LICENSE= LGPL-2.1-only
36 COMPONENT_LICENSE_FILE= COPYING
38 include $(WS_MAKE_RULES)/common.mk
40 PATH= $(PATH.gnu)
42 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
44 CFLAGS += $(XPG6MODE)
45 CXXFLAGS += -std=c++11
47 # Our Perl is 64-bit, so don't deliver Perl bindings for 32-bit build.
48 CMAKE_OPTIONS.32 = -DWITH_PERL=OFF
49 CMAKE_OPTIONS.64 = -DWITH_PERL=ON
51 # Our Python is 64-bit only, so don't deliver Python bindings for 32-bit build.
52 CMAKE_OPTIONS.32 = -DWITH_PYTHON3=OFF
53 CMAKE_OPTIONS.64 = -DWITH_PYTHON3=ON
54 CMAKE_OPTIONS.64 += -DPYTHON3_EXECUTABLE="$(PYTHON)"
55 CMAKE_OPTIONS.64 += -DPYTHON3_SITEPKG_DIR=$(PYTHON_LIB)
57 CMAKE_OPTIONS += -DINCLUDE_INSTALL_DIR="$(USRINCDIR)/$(COMPONENT_NAME)"
58 CMAKE_OPTIONS += -DPERL_VENDORINSTALL=ON
59 CMAKE_OPTIONS += -DPERL_EXECUTABLE=$(PERL)
60 CMAKE_OPTIONS += -DWITH_PYTHON2=OFF
61 CMAKE_OPTIONS += -DWITH_KDE=OFF
62 # Required for other components.
63 CMAKE_OPTIONS += -DWITH_GNOME3=ON
64 CMAKE_OPTIONS += -DWITH_VALA=ON
65 # Always build pacrunner as a module.
66 CMAKE_OPTIONS += -DBIPR=ON
68 LDFLAGS += -lsocket -lxnet -lnsl
70 # Assumes "make" is GNU make, turns into fork bomb if it finds illumos make
71 COMPONENT_BUILD_ENV += PATH=$(PATH)
73 COMPONENT_POST_INSTALL_ACTION= \
74 [ $(BITS) -eq 64 ] && $(PYTHON) -m py_compile $(PROTO_DIR)/$(PYTHON_LIB)/libproxy.py || true ;
76 # Drop 32-bit binaries
77 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOUSRBINDIR32) ;
79 # Move the 'proxy' binary to demos
80 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -d $(PROTOUSRDIR)/demo/jds/bin/ ;
81 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += $(MV) $(PROTOUSRBINDIR)/proxy $(PROTOUSRDIR)/demo/jds/bin/ ;
83 # Build dependencies
84 PYTHON_REQUIRED_PACKAGES += runtime/python
86 # Auto-generated dependencies
87 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
88 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
89 REQUIRED_PACKAGES += library/glib2
90 REQUIRED_PACKAGES += system/library